From fe5a00e95a84329c166991c7dd5a8ebb65878a74 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 2 Oct 2019 00:47:52 -0700 Subject: [PATCH] Regenerate logging client --- .../logging/v2/ConfigServiceV2Grpc.java | 39 +- .../logging/v2/LoggingServiceV2Grpc.java | 24 +- .../logging/type/BillingExclusionName.java | 185 ++ .../google/logging/type/BillingLogName.java | 179 ++ .../com/google/logging/type/BillingName.java | 159 ++ .../google/logging/type/BillingSinkName.java | 179 ++ .../google/logging/type/ExclusionName.java | 23 + .../google/logging/type/ExclusionNames.java | 37 + .../logging/type/FolderExclusionName.java | 179 ++ .../google/logging/type/FolderLogName.java | 179 ++ .../com/google/logging/type/FolderName.java | 159 ++ .../google/logging/type/FolderSinkName.java | 179 ++ .../com/google/logging/type/HttpRequest.java | 2473 +++++++++++++++++ .../logging/type/HttpRequestOrBuilder.java | 291 ++ .../google/logging/type/HttpRequestProto.java | 88 + .../java/com/google/logging/type/LogName.java | 23 + .../com/google/logging/type/LogNames.java | 37 + .../com/google/logging/type/LogSeverity.java | 294 ++ .../google/logging/type/LogSeverityProto.java | 52 + .../com/google/logging/type/MetricName.java | 23 + .../com/google/logging/type/MetricNames.java | 28 + .../type/OrganizationExclusionName.java | 181 ++ .../logging/type/OrganizationLogName.java | 179 ++ .../google/logging/type/OrganizationName.java | 159 ++ .../logging/type/OrganizationSinkName.java | 179 ++ .../com/google/logging/type/ParentName.java | 23 + .../com/google/logging/type/ParentNames.java | 37 + .../logging/type/ProjectExclusionName.java | 179 ++ .../google/logging/type/ProjectLogName.java | 179 ++ .../logging/type/ProjectMetricName.java | 179 ++ .../com/google/logging/type/ProjectName.java | 159 ++ .../google/logging/type/ProjectSinkName.java | 179 ++ .../com/google/logging/type/SinkName.java | 23 + .../com/google/logging/type/SinkNames.java | 37 + .../logging/type/UntypedExclusionName.java | 99 + .../google/logging/type/UntypedLogName.java | 99 + .../logging/type/UntypedMetricName.java | 99 + .../logging/type/UntypedParentName.java | 99 + .../google/logging/type/UntypedSinkName.java | 99 + .../google/logging/v2/BigQueryOptions.java | 535 ++++ .../logging/v2/BigQueryOptionsOrBuilder.java | 27 + .../google/logging/v2/CreateSinkRequest.java | 52 +- .../v2/CreateSinkRequestOrBuilder.java | 13 +- .../logging/v2/ListExclusionsRequest.java | 36 +- .../v2/ListExclusionsRequestOrBuilder.java | 10 +- .../logging/v2/ListExclusionsResponse.java | 14 +- .../v2/ListExclusionsResponseOrBuilder.java | 4 +- .../logging/v2/ListLogEntriesRequest.java | 52 +- .../v2/ListLogEntriesRequestOrBuilder.java | 16 +- .../logging/v2/ListLogMetricsRequest.java | 36 +- .../v2/ListLogMetricsRequestOrBuilder.java | 10 +- .../logging/v2/ListLogMetricsResponse.java | 14 +- .../v2/ListLogMetricsResponseOrBuilder.java | 4 +- .../google/logging/v2/ListLogsResponse.java | 52 +- .../logging/v2/ListLogsResponseOrBuilder.java | 16 +- .../google/logging/v2/ListSinksRequest.java | 36 +- .../logging/v2/ListSinksRequestOrBuilder.java | 10 +- .../google/logging/v2/ListSinksResponse.java | 14 +- .../v2/ListSinksResponseOrBuilder.java | 4 +- .../java/com/google/logging/v2/LogEntry.java | 825 +++--- .../google/logging/v2/LogEntryOperation.java | 56 +- .../v2/LogEntryOperationOrBuilder.java | 16 +- .../google/logging/v2/LogEntryOrBuilder.java | 212 +- .../com/google/logging/v2/LogEntryProto.java | 75 +- .../com/google/logging/v2/LogExclusion.java | 667 ++++- .../logging/v2/LogExclusionOrBuilder.java | 96 +- .../java/com/google/logging/v2/LogMetric.java | 673 ++++- .../google/logging/v2/LogMetricOrBuilder.java | 102 +- .../java/com/google/logging/v2/LogSink.java | 1153 +++++++- .../google/logging/v2/LogSinkOrBuilder.java | 167 +- .../google/logging/v2/LoggingConfigProto.java | 319 ++- .../logging/v2/LoggingMetricsProto.java | 120 +- .../com/google/logging/v2/LoggingProto.java | 148 +- .../logging/v2/UpdateExclusionRequest.java | 84 +- .../v2/UpdateExclusionRequestOrBuilder.java | 21 +- .../google/logging/v2/UpdateSinkRequest.java | 44 +- .../v2/UpdateSinkRequestOrBuilder.java | 11 +- .../logging/v2/WriteLogEntriesRequest.java | 92 +- .../v2/WriteLogEntriesRequestOrBuilder.java | 20 +- .../google/logging/type/http_request.proto | 94 + .../google/logging/type/log_severity.proto | 72 + .../proto/google/logging/v2/log_entry.proto | 97 +- .../proto/google/logging/v2/logging.proto | 74 +- .../google/logging/v2/logging_config.proto | 266 +- .../google/logging/v2/logging_metrics.proto | 52 +- .../google/cloud/logging/v2/ConfigClient.java | 42 +- .../cloud/logging/v2/LoggingClient.java | 28 +- .../google/cloud/logging/v2/package-info.java | 24 +- .../cloud/logging/v2/ConfigClientTest.java | 6 +- .../cloud/logging/v2/LoggingClientTest.java | 6 +- .../cloud/logging/v2/MetricsClientTest.java | 6 +- .../google-cloud-logging/synth.metadata | 10 +- 92 files changed, 11917 insertions(+), 1734 deletions(-) create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingExclusionName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingLogName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingSinkName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ExclusionName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ExclusionNames.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderExclusionName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderLogName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderSinkName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/HttpRequest.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/HttpRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/HttpRequestProto.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogNames.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogSeverity.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogSeverityProto.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/MetricName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/MetricNames.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationExclusionName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationLogName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationSinkName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ParentName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ParentNames.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectExclusionName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectLogName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectMetricName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectSinkName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/SinkName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/SinkNames.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedExclusionName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedLogName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedMetricName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedParentName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedSinkName.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/type/http_request.proto create mode 100644 google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/type/log_severity.proto diff --git a/google-api-grpc/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java b/google-api-grpc/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java index 89c98fb5f6eb..e9869c86627a 100644 --- a/google-api-grpc/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java +++ b/google-api-grpc/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java @@ -11,8 +11,7 @@ * * *
- * Service for configuring sinks used to export log entries out of
- * Logging.
+ * Service for configuring sinks used to route log entries.
  * 
*/ @javax.annotation.Generated( @@ -551,8 +550,7 @@ public static ConfigServiceV2FutureStub newFutureStub(io.grpc.Channel channel) { * * *
-   * Service for configuring sinks used to export log entries out of
-   * Logging.
+   * Service for configuring sinks used to route log entries.
    * 
*/ public abstract static class ConfigServiceV2ImplBase implements io.grpc.BindableService { @@ -587,9 +585,9 @@ public void getSink( * * *
-     * Creates a sink that exports specified log entries to a destination.  The
+     * Creates a sink that exports specified log entries to a destination. The
      * export of newly-ingested log entries begins immediately, unless the sink's
-     * `writer_identity` is not permitted to write to the destination.  A sink can
+     * `writer_identity` is not permitted to write to the destination. A sink can
      * export log entries only from the resource owning the sink.
      * 
*/ @@ -603,7 +601,7 @@ public void createSink( * * *
-     * Updates a sink.  This method replaces the following fields in the existing
+     * Updates a sink. This method replaces the following fields in the existing
      * sink with values from the new sink: `destination`, and `filter`.
      * The updated sink might also have a new `writer_identity`; see the
      * `unique_writer_identity` field.
@@ -769,8 +767,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
    *
    *
    * 
-   * Service for configuring sinks used to export log entries out of
-   * Logging.
+   * Service for configuring sinks used to route log entries.
    * 
*/ public static final class ConfigServiceV2Stub @@ -824,9 +821,9 @@ public void getSink( * * *
-     * Creates a sink that exports specified log entries to a destination.  The
+     * Creates a sink that exports specified log entries to a destination. The
      * export of newly-ingested log entries begins immediately, unless the sink's
-     * `writer_identity` is not permitted to write to the destination.  A sink can
+     * `writer_identity` is not permitted to write to the destination. A sink can
      * export log entries only from the resource owning the sink.
      * 
*/ @@ -843,7 +840,7 @@ public void createSink( * * *
-     * Updates a sink.  This method replaces the following fields in the existing
+     * Updates a sink. This method replaces the following fields in the existing
      * sink with values from the new sink: `destination`, and `filter`.
      * The updated sink might also have a new `writer_identity`; see the
      * `unique_writer_identity` field.
@@ -963,8 +960,7 @@ public void deleteExclusion(
    *
    *
    * 
-   * Service for configuring sinks used to export log entries out of
-   * Logging.
+   * Service for configuring sinks used to route log entries.
    * 
*/ public static final class ConfigServiceV2BlockingStub @@ -1010,9 +1006,9 @@ public com.google.logging.v2.LogSink getSink(com.google.logging.v2.GetSinkReques * * *
-     * Creates a sink that exports specified log entries to a destination.  The
+     * Creates a sink that exports specified log entries to a destination. The
      * export of newly-ingested log entries begins immediately, unless the sink's
-     * `writer_identity` is not permitted to write to the destination.  A sink can
+     * `writer_identity` is not permitted to write to the destination. A sink can
      * export log entries only from the resource owning the sink.
      * 
*/ @@ -1026,7 +1022,7 @@ public com.google.logging.v2.LogSink createSink( * * *
-     * Updates a sink.  This method replaces the following fields in the existing
+     * Updates a sink. This method replaces the following fields in the existing
      * sink with values from the new sink: `destination`, and `filter`.
      * The updated sink might also have a new `writer_identity`; see the
      * `unique_writer_identity` field.
@@ -1123,8 +1119,7 @@ public com.google.protobuf.Empty deleteExclusion(
    *
    *
    * 
-   * Service for configuring sinks used to export log entries out of
-   * Logging.
+   * Service for configuring sinks used to route log entries.
    * 
*/ public static final class ConfigServiceV2FutureStub @@ -1174,9 +1169,9 @@ protected ConfigServiceV2FutureStub build( * * *
-     * Creates a sink that exports specified log entries to a destination.  The
+     * Creates a sink that exports specified log entries to a destination. The
      * export of newly-ingested log entries begins immediately, unless the sink's
-     * `writer_identity` is not permitted to write to the destination.  A sink can
+     * `writer_identity` is not permitted to write to the destination. A sink can
      * export log entries only from the resource owning the sink.
      * 
*/ @@ -1190,7 +1185,7 @@ protected ConfigServiceV2FutureStub build( * * *
-     * Updates a sink.  This method replaces the following fields in the existing
+     * Updates a sink. This method replaces the following fields in the existing
      * sink with values from the new sink: `destination`, and `filter`.
      * The updated sink might also have a new `writer_identity`; see the
      * `unique_writer_identity` field.
diff --git a/google-api-grpc/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java b/google-api-grpc/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java
index 08dc93153874..0970571c5839 100644
--- a/google-api-grpc/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java
+++ b/google-api-grpc/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java
@@ -365,9 +365,9 @@ public void writeLogEntries(
      *
      *
      * 
-     * Lists log entries.  Use this method to retrieve log entries from
-     * Logging.  For ways to export log entries, see
-     * [Exporting Logs](/logging/docs/export).
+     * Lists log entries.  Use this method to retrieve log entries that originated
+     * from a project/folder/organization/billing account.  For ways to export log
+     * entries, see [Exporting Logs](/logging/docs/export).
      * 
*/ public void listLogEntries( @@ -514,9 +514,9 @@ public void writeLogEntries( * * *
-     * Lists log entries.  Use this method to retrieve log entries from
-     * Logging.  For ways to export log entries, see
-     * [Exporting Logs](/logging/docs/export).
+     * Lists log entries.  Use this method to retrieve log entries that originated
+     * from a project/folder/organization/billing account.  For ways to export log
+     * entries, see [Exporting Logs](/logging/docs/export).
      * 
*/ public void listLogEntries( @@ -624,9 +624,9 @@ public com.google.logging.v2.WriteLogEntriesResponse writeLogEntries( * * *
-     * Lists log entries.  Use this method to retrieve log entries from
-     * Logging.  For ways to export log entries, see
-     * [Exporting Logs](/logging/docs/export).
+     * Lists log entries.  Use this method to retrieve log entries that originated
+     * from a project/folder/organization/billing account.  For ways to export log
+     * entries, see [Exporting Logs](/logging/docs/export).
      * 
*/ public com.google.logging.v2.ListLogEntriesResponse listLogEntries( @@ -729,9 +729,9 @@ public com.google.common.util.concurrent.ListenableFuture - * Lists log entries. Use this method to retrieve log entries from - * Logging. For ways to export log entries, see - * [Exporting Logs](/logging/docs/export). + * Lists log entries. Use this method to retrieve log entries that originated + * from a project/folder/organization/billing account. For ways to export log + * entries, see [Exporting Logs](/logging/docs/export). *
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingExclusionName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingExclusionName.java new file mode 100644 index 000000000000..ee68686d32cd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingExclusionName.java @@ -0,0 +1,185 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class BillingExclusionName extends ExclusionName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "billingAccounts/{billing_account}/exclusions/{exclusion}"); + + private volatile Map fieldValuesMap; + + private final String billingAccount; + private final String exclusion; + + public String getBillingAccount() { + return billingAccount; + } + + public String getExclusion() { + return exclusion; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private BillingExclusionName(Builder builder) { + billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); + exclusion = Preconditions.checkNotNull(builder.getExclusion()); + } + + public static BillingExclusionName of(String billingAccount, String exclusion) { + return newBuilder().setBillingAccount(billingAccount).setExclusion(exclusion).build(); + } + + public static String format(String billingAccount, String exclusion) { + return newBuilder() + .setBillingAccount(billingAccount) + .setExclusion(exclusion) + .build() + .toString(); + } + + public static BillingExclusionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "BillingExclusionName.parse: formattedString not in valid format"); + return of(matchMap.get("billing_account"), matchMap.get("exclusion")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (BillingExclusionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("billingAccount", billingAccount); + fieldMapBuilder.put("exclusion", exclusion); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("billing_account", billingAccount, "exclusion", exclusion); + } + + /** Builder for BillingExclusionName. */ + public static class Builder { + + private String billingAccount; + private String exclusion; + + public String getBillingAccount() { + return billingAccount; + } + + public String getExclusion() { + return exclusion; + } + + public Builder setBillingAccount(String billingAccount) { + this.billingAccount = billingAccount; + return this; + } + + public Builder setExclusion(String exclusion) { + this.exclusion = exclusion; + return this; + } + + private Builder() {} + + private Builder(BillingExclusionName billingExclusionName) { + billingAccount = billingExclusionName.billingAccount; + exclusion = billingExclusionName.exclusion; + } + + public BillingExclusionName build() { + return new BillingExclusionName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof BillingExclusionName) { + BillingExclusionName that = (BillingExclusionName) o; + return (this.billingAccount.equals(that.billingAccount)) + && (this.exclusion.equals(that.exclusion)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= billingAccount.hashCode(); + h *= 1000003; + h ^= exclusion.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingLogName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingLogName.java new file mode 100644 index 000000000000..99698895d4c2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingLogName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class BillingLogName extends LogName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("billingAccounts/{billing_account}/logs/{log}"); + + private volatile Map fieldValuesMap; + + private final String billingAccount; + private final String log; + + public String getBillingAccount() { + return billingAccount; + } + + public String getLog() { + return log; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private BillingLogName(Builder builder) { + billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); + log = Preconditions.checkNotNull(builder.getLog()); + } + + public static BillingLogName of(String billingAccount, String log) { + return newBuilder().setBillingAccount(billingAccount).setLog(log).build(); + } + + public static String format(String billingAccount, String log) { + return newBuilder().setBillingAccount(billingAccount).setLog(log).build().toString(); + } + + public static BillingLogName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "BillingLogName.parse: formattedString not in valid format"); + return of(matchMap.get("billing_account"), matchMap.get("log")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (BillingLogName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("billingAccount", billingAccount); + fieldMapBuilder.put("log", log); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("billing_account", billingAccount, "log", log); + } + + /** Builder for BillingLogName. */ + public static class Builder { + + private String billingAccount; + private String log; + + public String getBillingAccount() { + return billingAccount; + } + + public String getLog() { + return log; + } + + public Builder setBillingAccount(String billingAccount) { + this.billingAccount = billingAccount; + return this; + } + + public Builder setLog(String log) { + this.log = log; + return this; + } + + private Builder() {} + + private Builder(BillingLogName billingLogName) { + billingAccount = billingLogName.billingAccount; + log = billingLogName.log; + } + + public BillingLogName build() { + return new BillingLogName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof BillingLogName) { + BillingLogName that = (BillingLogName) o; + return (this.billingAccount.equals(that.billingAccount)) && (this.log.equals(that.log)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= billingAccount.hashCode(); + h *= 1000003; + h ^= log.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingName.java new file mode 100644 index 000000000000..d767ed1d4c08 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingName.java @@ -0,0 +1,159 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class BillingName extends ParentName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("billingAccounts/{billing_account}"); + + private volatile Map fieldValuesMap; + + private final String billingAccount; + + public String getBillingAccount() { + return billingAccount; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private BillingName(Builder builder) { + billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); + } + + public static BillingName of(String billingAccount) { + return newBuilder().setBillingAccount(billingAccount).build(); + } + + public static String format(String billingAccount) { + return newBuilder().setBillingAccount(billingAccount).build().toString(); + } + + public static BillingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "BillingName.parse: formattedString not in valid format"); + return of(matchMap.get("billing_account")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (BillingName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("billingAccount", billingAccount); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("billing_account", billingAccount); + } + + /** Builder for BillingName. */ + public static class Builder { + + private String billingAccount; + + public String getBillingAccount() { + return billingAccount; + } + + public Builder setBillingAccount(String billingAccount) { + this.billingAccount = billingAccount; + return this; + } + + private Builder() {} + + private Builder(BillingName billingName) { + billingAccount = billingName.billingAccount; + } + + public BillingName build() { + return new BillingName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof BillingName) { + BillingName that = (BillingName) o; + return (this.billingAccount.equals(that.billingAccount)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= billingAccount.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingSinkName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingSinkName.java new file mode 100644 index 000000000000..4215feb07a21 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/BillingSinkName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class BillingSinkName extends SinkName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("billingAccounts/{billing_account}/sinks/{sink}"); + + private volatile Map fieldValuesMap; + + private final String billingAccount; + private final String sink; + + public String getBillingAccount() { + return billingAccount; + } + + public String getSink() { + return sink; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private BillingSinkName(Builder builder) { + billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); + sink = Preconditions.checkNotNull(builder.getSink()); + } + + public static BillingSinkName of(String billingAccount, String sink) { + return newBuilder().setBillingAccount(billingAccount).setSink(sink).build(); + } + + public static String format(String billingAccount, String sink) { + return newBuilder().setBillingAccount(billingAccount).setSink(sink).build().toString(); + } + + public static BillingSinkName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "BillingSinkName.parse: formattedString not in valid format"); + return of(matchMap.get("billing_account"), matchMap.get("sink")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (BillingSinkName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("billingAccount", billingAccount); + fieldMapBuilder.put("sink", sink); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("billing_account", billingAccount, "sink", sink); + } + + /** Builder for BillingSinkName. */ + public static class Builder { + + private String billingAccount; + private String sink; + + public String getBillingAccount() { + return billingAccount; + } + + public String getSink() { + return sink; + } + + public Builder setBillingAccount(String billingAccount) { + this.billingAccount = billingAccount; + return this; + } + + public Builder setSink(String sink) { + this.sink = sink; + return this; + } + + private Builder() {} + + private Builder(BillingSinkName billingSinkName) { + billingAccount = billingSinkName.billingAccount; + sink = billingSinkName.sink; + } + + public BillingSinkName build() { + return new BillingSinkName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof BillingSinkName) { + BillingSinkName that = (BillingSinkName) o; + return (this.billingAccount.equals(that.billingAccount)) && (this.sink.equals(that.sink)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= billingAccount.hashCode(); + h *= 1000003; + h ^= sink.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ExclusionName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ExclusionName.java new file mode 100644 index 000000000000..6678c36d5278 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ExclusionName.java @@ -0,0 +1,23 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.resourcenames.ResourceName; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public abstract class ExclusionName implements ResourceName { + protected ExclusionName() {} +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ExclusionNames.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ExclusionNames.java new file mode 100644 index 000000000000..a313b49c322d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ExclusionNames.java @@ -0,0 +1,37 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ExclusionNames { + private ExclusionNames() {} + + public static ExclusionName parse(String resourceNameString) { + if (ProjectExclusionName.isParsableFrom(resourceNameString)) { + return ProjectExclusionName.parse(resourceNameString); + } + if (OrganizationExclusionName.isParsableFrom(resourceNameString)) { + return OrganizationExclusionName.parse(resourceNameString); + } + if (FolderExclusionName.isParsableFrom(resourceNameString)) { + return FolderExclusionName.parse(resourceNameString); + } + if (BillingExclusionName.isParsableFrom(resourceNameString)) { + return BillingExclusionName.parse(resourceNameString); + } + return UntypedExclusionName.parse(resourceNameString); + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderExclusionName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderExclusionName.java new file mode 100644 index 000000000000..517847767102 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderExclusionName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class FolderExclusionName extends ExclusionName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("folders/{folder}/exclusions/{exclusion}"); + + private volatile Map fieldValuesMap; + + private final String folder; + private final String exclusion; + + public String getFolder() { + return folder; + } + + public String getExclusion() { + return exclusion; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private FolderExclusionName(Builder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + exclusion = Preconditions.checkNotNull(builder.getExclusion()); + } + + public static FolderExclusionName of(String folder, String exclusion) { + return newBuilder().setFolder(folder).setExclusion(exclusion).build(); + } + + public static String format(String folder, String exclusion) { + return newBuilder().setFolder(folder).setExclusion(exclusion).build().toString(); + } + + public static FolderExclusionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "FolderExclusionName.parse: formattedString not in valid format"); + return of(matchMap.get("folder"), matchMap.get("exclusion")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (FolderExclusionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("folder", folder); + fieldMapBuilder.put("exclusion", exclusion); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("folder", folder, "exclusion", exclusion); + } + + /** Builder for FolderExclusionName. */ + public static class Builder { + + private String folder; + private String exclusion; + + public String getFolder() { + return folder; + } + + public String getExclusion() { + return exclusion; + } + + public Builder setFolder(String folder) { + this.folder = folder; + return this; + } + + public Builder setExclusion(String exclusion) { + this.exclusion = exclusion; + return this; + } + + private Builder() {} + + private Builder(FolderExclusionName folderExclusionName) { + folder = folderExclusionName.folder; + exclusion = folderExclusionName.exclusion; + } + + public FolderExclusionName build() { + return new FolderExclusionName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof FolderExclusionName) { + FolderExclusionName that = (FolderExclusionName) o; + return (this.folder.equals(that.folder)) && (this.exclusion.equals(that.exclusion)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= folder.hashCode(); + h *= 1000003; + h ^= exclusion.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderLogName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderLogName.java new file mode 100644 index 000000000000..360789e9a5a0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderLogName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class FolderLogName extends LogName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("folders/{folder}/logs/{log}"); + + private volatile Map fieldValuesMap; + + private final String folder; + private final String log; + + public String getFolder() { + return folder; + } + + public String getLog() { + return log; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private FolderLogName(Builder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + log = Preconditions.checkNotNull(builder.getLog()); + } + + public static FolderLogName of(String folder, String log) { + return newBuilder().setFolder(folder).setLog(log).build(); + } + + public static String format(String folder, String log) { + return newBuilder().setFolder(folder).setLog(log).build().toString(); + } + + public static FolderLogName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "FolderLogName.parse: formattedString not in valid format"); + return of(matchMap.get("folder"), matchMap.get("log")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (FolderLogName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("folder", folder); + fieldMapBuilder.put("log", log); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("folder", folder, "log", log); + } + + /** Builder for FolderLogName. */ + public static class Builder { + + private String folder; + private String log; + + public String getFolder() { + return folder; + } + + public String getLog() { + return log; + } + + public Builder setFolder(String folder) { + this.folder = folder; + return this; + } + + public Builder setLog(String log) { + this.log = log; + return this; + } + + private Builder() {} + + private Builder(FolderLogName folderLogName) { + folder = folderLogName.folder; + log = folderLogName.log; + } + + public FolderLogName build() { + return new FolderLogName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof FolderLogName) { + FolderLogName that = (FolderLogName) o; + return (this.folder.equals(that.folder)) && (this.log.equals(that.log)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= folder.hashCode(); + h *= 1000003; + h ^= log.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderName.java new file mode 100644 index 000000000000..f735f0733a9c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderName.java @@ -0,0 +1,159 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class FolderName extends ParentName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("folders/{folder}"); + + private volatile Map fieldValuesMap; + + private final String folder; + + public String getFolder() { + return folder; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private FolderName(Builder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + } + + public static FolderName of(String folder) { + return newBuilder().setFolder(folder).build(); + } + + public static String format(String folder) { + return newBuilder().setFolder(folder).build().toString(); + } + + public static FolderName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "FolderName.parse: formattedString not in valid format"); + return of(matchMap.get("folder")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (FolderName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("folder", folder); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("folder", folder); + } + + /** Builder for FolderName. */ + public static class Builder { + + private String folder; + + public String getFolder() { + return folder; + } + + public Builder setFolder(String folder) { + this.folder = folder; + return this; + } + + private Builder() {} + + private Builder(FolderName folderName) { + folder = folderName.folder; + } + + public FolderName build() { + return new FolderName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof FolderName) { + FolderName that = (FolderName) o; + return (this.folder.equals(that.folder)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= folder.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderSinkName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderSinkName.java new file mode 100644 index 000000000000..3143b60dcf22 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/FolderSinkName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class FolderSinkName extends SinkName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("folders/{folder}/sinks/{sink}"); + + private volatile Map fieldValuesMap; + + private final String folder; + private final String sink; + + public String getFolder() { + return folder; + } + + public String getSink() { + return sink; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private FolderSinkName(Builder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + sink = Preconditions.checkNotNull(builder.getSink()); + } + + public static FolderSinkName of(String folder, String sink) { + return newBuilder().setFolder(folder).setSink(sink).build(); + } + + public static String format(String folder, String sink) { + return newBuilder().setFolder(folder).setSink(sink).build().toString(); + } + + public static FolderSinkName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "FolderSinkName.parse: formattedString not in valid format"); + return of(matchMap.get("folder"), matchMap.get("sink")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (FolderSinkName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("folder", folder); + fieldMapBuilder.put("sink", sink); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("folder", folder, "sink", sink); + } + + /** Builder for FolderSinkName. */ + public static class Builder { + + private String folder; + private String sink; + + public String getFolder() { + return folder; + } + + public String getSink() { + return sink; + } + + public Builder setFolder(String folder) { + this.folder = folder; + return this; + } + + public Builder setSink(String sink) { + this.sink = sink; + return this; + } + + private Builder() {} + + private Builder(FolderSinkName folderSinkName) { + folder = folderSinkName.folder; + sink = folderSinkName.sink; + } + + public FolderSinkName build() { + return new FolderSinkName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof FolderSinkName) { + FolderSinkName that = (FolderSinkName) o; + return (this.folder.equals(that.folder)) && (this.sink.equals(that.sink)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= folder.hashCode(); + h *= 1000003; + h ^= sink.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/HttpRequest.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/HttpRequest.java new file mode 100644 index 000000000000..a4ef422f85a6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/HttpRequest.java @@ -0,0 +1,2473 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/type/http_request.proto + +package com.google.logging.type; + +/** + * + * + *
+ * A common proto for logging HTTP requests. Only contains semantics
+ * defined by the HTTP specification. Product-specific logging
+ * information MUST be defined in a separate message.
+ * 
+ * + * Protobuf type {@code google.logging.type.HttpRequest} + */ +public final class HttpRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.type.HttpRequest) + HttpRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use HttpRequest.newBuilder() to construct. + private HttpRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HttpRequest() { + requestMethod_ = ""; + requestUrl_ = ""; + userAgent_ = ""; + remoteIp_ = ""; + serverIp_ = ""; + referer_ = ""; + protocol_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HttpRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + 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(); + + requestMethod_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + requestUrl_ = s; + break; + } + case 24: + { + requestSize_ = input.readInt64(); + break; + } + case 32: + { + status_ = input.readInt32(); + break; + } + case 40: + { + responseSize_ = input.readInt64(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + userAgent_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + remoteIp_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + referer_ = s; + break; + } + case 72: + { + cacheHit_ = input.readBool(); + break; + } + case 80: + { + cacheValidatedWithOriginServer_ = input.readBool(); + break; + } + case 88: + { + cacheLookup_ = input.readBool(); + break; + } + case 96: + { + cacheFillBytes_ = input.readInt64(); + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + serverIp_ = s; + break; + } + case 114: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (latency_ != null) { + subBuilder = latency_.toBuilder(); + } + latency_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latency_); + latency_ = subBuilder.buildPartial(); + } + + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + + protocol_ = 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.type.HttpRequestProto + .internal_static_google_logging_type_HttpRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.type.HttpRequestProto + .internal_static_google_logging_type_HttpRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.type.HttpRequest.class, + com.google.logging.type.HttpRequest.Builder.class); + } + + public static final int REQUEST_METHOD_FIELD_NUMBER = 1; + private volatile java.lang.Object requestMethod_; + /** + * + * + *
+   * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
+   * 
+ * + * string request_method = 1; + */ + public java.lang.String getRequestMethod() { + java.lang.Object ref = requestMethod_; + 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(); + requestMethod_ = s; + return s; + } + } + /** + * + * + *
+   * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
+   * 
+ * + * string request_method = 1; + */ + public com.google.protobuf.ByteString getRequestMethodBytes() { + java.lang.Object ref = requestMethod_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestMethod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_URL_FIELD_NUMBER = 2; + private volatile java.lang.Object requestUrl_; + /** + * + * + *
+   * The scheme (http, https), the host name, the path and the query
+   * portion of the URL that was requested.
+   * Example: `"http://example.com/some/info?color=red"`.
+   * 
+ * + * string request_url = 2; + */ + public java.lang.String getRequestUrl() { + java.lang.Object ref = requestUrl_; + 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(); + requestUrl_ = s; + return s; + } + } + /** + * + * + *
+   * The scheme (http, https), the host name, the path and the query
+   * portion of the URL that was requested.
+   * Example: `"http://example.com/some/info?color=red"`.
+   * 
+ * + * string request_url = 2; + */ + public com.google.protobuf.ByteString getRequestUrlBytes() { + java.lang.Object ref = requestUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_SIZE_FIELD_NUMBER = 3; + private long requestSize_; + /** + * + * + *
+   * The size of the HTTP request message in bytes, including the request
+   * headers and the request body.
+   * 
+ * + * int64 request_size = 3; + */ + public long getRequestSize() { + return requestSize_; + } + + public static final int STATUS_FIELD_NUMBER = 4; + private int status_; + /** + * + * + *
+   * The response code indicating the status of response.
+   * Examples: 200, 404.
+   * 
+ * + * int32 status = 4; + */ + public int getStatus() { + return status_; + } + + public static final int RESPONSE_SIZE_FIELD_NUMBER = 5; + private long responseSize_; + /** + * + * + *
+   * The size of the HTTP response message sent back to the client, in bytes,
+   * including the response headers and the response body.
+   * 
+ * + * int64 response_size = 5; + */ + public long getResponseSize() { + return responseSize_; + } + + public static final int USER_AGENT_FIELD_NUMBER = 6; + private volatile java.lang.Object userAgent_; + /** + * + * + *
+   * The user agent sent by the client. Example:
+   * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
+   * CLR 1.0.3705)"`.
+   * 
+ * + * string user_agent = 6; + */ + public java.lang.String getUserAgent() { + java.lang.Object ref = userAgent_; + 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(); + userAgent_ = s; + return s; + } + } + /** + * + * + *
+   * The user agent sent by the client. Example:
+   * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
+   * CLR 1.0.3705)"`.
+   * 
+ * + * string user_agent = 6; + */ + public com.google.protobuf.ByteString getUserAgentBytes() { + java.lang.Object ref = userAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REMOTE_IP_FIELD_NUMBER = 7; + private volatile java.lang.Object remoteIp_; + /** + * + * + *
+   * The IP address (IPv4 or IPv6) of the client that issued the HTTP
+   * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
+   * 
+ * + * string remote_ip = 7; + */ + public java.lang.String getRemoteIp() { + java.lang.Object ref = remoteIp_; + 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(); + remoteIp_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address (IPv4 or IPv6) of the client that issued the HTTP
+   * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
+   * 
+ * + * string remote_ip = 7; + */ + public com.google.protobuf.ByteString getRemoteIpBytes() { + java.lang.Object ref = remoteIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + remoteIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVER_IP_FIELD_NUMBER = 13; + private volatile java.lang.Object serverIp_; + /** + * + * + *
+   * The IP address (IPv4 or IPv6) of the origin server that the request was
+   * sent to.
+   * 
+ * + * string server_ip = 13; + */ + public java.lang.String getServerIp() { + java.lang.Object ref = serverIp_; + 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(); + serverIp_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address (IPv4 or IPv6) of the origin server that the request was
+   * sent to.
+   * 
+ * + * string server_ip = 13; + */ + public com.google.protobuf.ByteString getServerIpBytes() { + java.lang.Object ref = serverIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFERER_FIELD_NUMBER = 8; + private volatile java.lang.Object referer_; + /** + * + * + *
+   * The referer URL of the request, as defined in
+   * [HTTP/1.1 Header Field
+   * Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
+   * 
+ * + * string referer = 8; + */ + public java.lang.String getReferer() { + java.lang.Object ref = referer_; + 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(); + referer_ = s; + return s; + } + } + /** + * + * + *
+   * The referer URL of the request, as defined in
+   * [HTTP/1.1 Header Field
+   * Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
+   * 
+ * + * string referer = 8; + */ + public com.google.protobuf.ByteString getRefererBytes() { + java.lang.Object ref = referer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + referer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LATENCY_FIELD_NUMBER = 14; + private com.google.protobuf.Duration latency_; + /** + * + * + *
+   * The request processing latency on the server, from the time the request was
+   * received until the response was sent.
+   * 
+ * + * .google.protobuf.Duration latency = 14; + */ + public boolean hasLatency() { + return latency_ != null; + } + /** + * + * + *
+   * The request processing latency on the server, from the time the request was
+   * received until the response was sent.
+   * 
+ * + * .google.protobuf.Duration latency = 14; + */ + public com.google.protobuf.Duration getLatency() { + return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_; + } + /** + * + * + *
+   * The request processing latency on the server, from the time the request was
+   * received until the response was sent.
+   * 
+ * + * .google.protobuf.Duration latency = 14; + */ + public com.google.protobuf.DurationOrBuilder getLatencyOrBuilder() { + return getLatency(); + } + + public static final int CACHE_LOOKUP_FIELD_NUMBER = 11; + private boolean cacheLookup_; + /** + * + * + *
+   * Whether or not a cache lookup was attempted.
+   * 
+ * + * bool cache_lookup = 11; + */ + public boolean getCacheLookup() { + return cacheLookup_; + } + + public static final int CACHE_HIT_FIELD_NUMBER = 9; + private boolean cacheHit_; + /** + * + * + *
+   * Whether or not an entity was served from cache
+   * (with or without validation).
+   * 
+ * + * bool cache_hit = 9; + */ + public boolean getCacheHit() { + return cacheHit_; + } + + public static final int CACHE_VALIDATED_WITH_ORIGIN_SERVER_FIELD_NUMBER = 10; + private boolean cacheValidatedWithOriginServer_; + /** + * + * + *
+   * Whether or not the response was validated with the origin server before
+   * being served from cache. This field is only meaningful if `cache_hit` is
+   * True.
+   * 
+ * + * bool cache_validated_with_origin_server = 10; + */ + public boolean getCacheValidatedWithOriginServer() { + return cacheValidatedWithOriginServer_; + } + + public static final int CACHE_FILL_BYTES_FIELD_NUMBER = 12; + private long cacheFillBytes_; + /** + * + * + *
+   * The number of HTTP response bytes inserted into cache. Set only when a
+   * cache fill was attempted.
+   * 
+ * + * int64 cache_fill_bytes = 12; + */ + public long getCacheFillBytes() { + return cacheFillBytes_; + } + + public static final int PROTOCOL_FIELD_NUMBER = 15; + private volatile java.lang.Object protocol_; + /** + * + * + *
+   * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
+   * 
+ * + * string protocol = 15; + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + 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(); + protocol_ = s; + return s; + } + } + /** + * + * + *
+   * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
+   * 
+ * + * string protocol = 15; + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = 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 (!getRequestMethodBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestMethod_); + } + if (!getRequestUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestUrl_); + } + if (requestSize_ != 0L) { + output.writeInt64(3, requestSize_); + } + if (status_ != 0) { + output.writeInt32(4, status_); + } + if (responseSize_ != 0L) { + output.writeInt64(5, responseSize_); + } + if (!getUserAgentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, userAgent_); + } + if (!getRemoteIpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, remoteIp_); + } + if (!getRefererBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, referer_); + } + if (cacheHit_ != false) { + output.writeBool(9, cacheHit_); + } + if (cacheValidatedWithOriginServer_ != false) { + output.writeBool(10, cacheValidatedWithOriginServer_); + } + if (cacheLookup_ != false) { + output.writeBool(11, cacheLookup_); + } + if (cacheFillBytes_ != 0L) { + output.writeInt64(12, cacheFillBytes_); + } + if (!getServerIpBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, serverIp_); + } + if (latency_ != null) { + output.writeMessage(14, getLatency()); + } + if (!getProtocolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, protocol_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestMethodBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestMethod_); + } + if (!getRequestUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestUrl_); + } + if (requestSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, requestSize_); + } + if (status_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, status_); + } + if (responseSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, responseSize_); + } + if (!getUserAgentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, userAgent_); + } + if (!getRemoteIpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, remoteIp_); + } + if (!getRefererBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, referer_); + } + if (cacheHit_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, cacheHit_); + } + if (cacheValidatedWithOriginServer_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 10, cacheValidatedWithOriginServer_); + } + if (cacheLookup_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, cacheLookup_); + } + if (cacheFillBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, cacheFillBytes_); + } + if (!getServerIpBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, serverIp_); + } + if (latency_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLatency()); + } + if (!getProtocolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, protocol_); + } + 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.type.HttpRequest)) { + return super.equals(obj); + } + com.google.logging.type.HttpRequest other = (com.google.logging.type.HttpRequest) obj; + + if (!getRequestMethod().equals(other.getRequestMethod())) return false; + if (!getRequestUrl().equals(other.getRequestUrl())) return false; + if (getRequestSize() != other.getRequestSize()) return false; + if (getStatus() != other.getStatus()) return false; + if (getResponseSize() != other.getResponseSize()) return false; + if (!getUserAgent().equals(other.getUserAgent())) return false; + if (!getRemoteIp().equals(other.getRemoteIp())) return false; + if (!getServerIp().equals(other.getServerIp())) return false; + if (!getReferer().equals(other.getReferer())) return false; + if (hasLatency() != other.hasLatency()) return false; + if (hasLatency()) { + if (!getLatency().equals(other.getLatency())) return false; + } + if (getCacheLookup() != other.getCacheLookup()) return false; + if (getCacheHit() != other.getCacheHit()) return false; + if (getCacheValidatedWithOriginServer() != other.getCacheValidatedWithOriginServer()) + return false; + if (getCacheFillBytes() != other.getCacheFillBytes()) return false; + if (!getProtocol().equals(other.getProtocol())) 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) + REQUEST_METHOD_FIELD_NUMBER; + hash = (53 * hash) + getRequestMethod().hashCode(); + hash = (37 * hash) + REQUEST_URL_FIELD_NUMBER; + hash = (53 * hash) + getRequestUrl().hashCode(); + hash = (37 * hash) + REQUEST_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestSize()); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + RESPONSE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResponseSize()); + hash = (37 * hash) + USER_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getUserAgent().hashCode(); + hash = (37 * hash) + REMOTE_IP_FIELD_NUMBER; + hash = (53 * hash) + getRemoteIp().hashCode(); + hash = (37 * hash) + SERVER_IP_FIELD_NUMBER; + hash = (53 * hash) + getServerIp().hashCode(); + hash = (37 * hash) + REFERER_FIELD_NUMBER; + hash = (53 * hash) + getReferer().hashCode(); + if (hasLatency()) { + hash = (37 * hash) + LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getLatency().hashCode(); + } + hash = (37 * hash) + CACHE_LOOKUP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCacheLookup()); + hash = (37 * hash) + CACHE_HIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCacheHit()); + hash = (37 * hash) + CACHE_VALIDATED_WITH_ORIGIN_SERVER_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCacheValidatedWithOriginServer()); + hash = (37 * hash) + CACHE_FILL_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCacheFillBytes()); + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getProtocol().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.type.HttpRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.type.HttpRequest 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.type.HttpRequest parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.type.HttpRequest 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.type.HttpRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.type.HttpRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.type.HttpRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.type.HttpRequest 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.type.HttpRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.type.HttpRequest 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.type.HttpRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.type.HttpRequest 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.type.HttpRequest 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; + } + /** + * + * + *
+   * A common proto for logging HTTP requests. Only contains semantics
+   * defined by the HTTP specification. Product-specific logging
+   * information MUST be defined in a separate message.
+   * 
+ * + * Protobuf type {@code google.logging.type.HttpRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.type.HttpRequest) + com.google.logging.type.HttpRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.type.HttpRequestProto + .internal_static_google_logging_type_HttpRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.type.HttpRequestProto + .internal_static_google_logging_type_HttpRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.type.HttpRequest.class, + com.google.logging.type.HttpRequest.Builder.class); + } + + // Construct using com.google.logging.type.HttpRequest.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(); + requestMethod_ = ""; + + requestUrl_ = ""; + + requestSize_ = 0L; + + status_ = 0; + + responseSize_ = 0L; + + userAgent_ = ""; + + remoteIp_ = ""; + + serverIp_ = ""; + + referer_ = ""; + + if (latencyBuilder_ == null) { + latency_ = null; + } else { + latency_ = null; + latencyBuilder_ = null; + } + cacheLookup_ = false; + + cacheHit_ = false; + + cacheValidatedWithOriginServer_ = false; + + cacheFillBytes_ = 0L; + + protocol_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.type.HttpRequestProto + .internal_static_google_logging_type_HttpRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.type.HttpRequest getDefaultInstanceForType() { + return com.google.logging.type.HttpRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.type.HttpRequest build() { + com.google.logging.type.HttpRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.type.HttpRequest buildPartial() { + com.google.logging.type.HttpRequest result = new com.google.logging.type.HttpRequest(this); + result.requestMethod_ = requestMethod_; + result.requestUrl_ = requestUrl_; + result.requestSize_ = requestSize_; + result.status_ = status_; + result.responseSize_ = responseSize_; + result.userAgent_ = userAgent_; + result.remoteIp_ = remoteIp_; + result.serverIp_ = serverIp_; + result.referer_ = referer_; + if (latencyBuilder_ == null) { + result.latency_ = latency_; + } else { + result.latency_ = latencyBuilder_.build(); + } + result.cacheLookup_ = cacheLookup_; + result.cacheHit_ = cacheHit_; + result.cacheValidatedWithOriginServer_ = cacheValidatedWithOriginServer_; + result.cacheFillBytes_ = cacheFillBytes_; + result.protocol_ = protocol_; + 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.type.HttpRequest) { + return mergeFrom((com.google.logging.type.HttpRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.type.HttpRequest other) { + if (other == com.google.logging.type.HttpRequest.getDefaultInstance()) return this; + if (!other.getRequestMethod().isEmpty()) { + requestMethod_ = other.requestMethod_; + onChanged(); + } + if (!other.getRequestUrl().isEmpty()) { + requestUrl_ = other.requestUrl_; + onChanged(); + } + if (other.getRequestSize() != 0L) { + setRequestSize(other.getRequestSize()); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (other.getResponseSize() != 0L) { + setResponseSize(other.getResponseSize()); + } + if (!other.getUserAgent().isEmpty()) { + userAgent_ = other.userAgent_; + onChanged(); + } + if (!other.getRemoteIp().isEmpty()) { + remoteIp_ = other.remoteIp_; + onChanged(); + } + if (!other.getServerIp().isEmpty()) { + serverIp_ = other.serverIp_; + onChanged(); + } + if (!other.getReferer().isEmpty()) { + referer_ = other.referer_; + onChanged(); + } + if (other.hasLatency()) { + mergeLatency(other.getLatency()); + } + if (other.getCacheLookup() != false) { + setCacheLookup(other.getCacheLookup()); + } + if (other.getCacheHit() != false) { + setCacheHit(other.getCacheHit()); + } + if (other.getCacheValidatedWithOriginServer() != false) { + setCacheValidatedWithOriginServer(other.getCacheValidatedWithOriginServer()); + } + if (other.getCacheFillBytes() != 0L) { + setCacheFillBytes(other.getCacheFillBytes()); + } + if (!other.getProtocol().isEmpty()) { + protocol_ = other.protocol_; + 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.type.HttpRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.type.HttpRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestMethod_ = ""; + /** + * + * + *
+     * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
+     * 
+ * + * string request_method = 1; + */ + public java.lang.String getRequestMethod() { + java.lang.Object ref = requestMethod_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestMethod_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
+     * 
+ * + * string request_method = 1; + */ + public com.google.protobuf.ByteString getRequestMethodBytes() { + java.lang.Object ref = requestMethod_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestMethod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
+     * 
+ * + * string request_method = 1; + */ + public Builder setRequestMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestMethod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
+     * 
+ * + * string request_method = 1; + */ + public Builder clearRequestMethod() { + + requestMethod_ = getDefaultInstance().getRequestMethod(); + onChanged(); + return this; + } + /** + * + * + *
+     * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
+     * 
+ * + * string request_method = 1; + */ + public Builder setRequestMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestMethod_ = value; + onChanged(); + return this; + } + + private java.lang.Object requestUrl_ = ""; + /** + * + * + *
+     * The scheme (http, https), the host name, the path and the query
+     * portion of the URL that was requested.
+     * Example: `"http://example.com/some/info?color=red"`.
+     * 
+ * + * string request_url = 2; + */ + public java.lang.String getRequestUrl() { + java.lang.Object ref = requestUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The scheme (http, https), the host name, the path and the query
+     * portion of the URL that was requested.
+     * Example: `"http://example.com/some/info?color=red"`.
+     * 
+ * + * string request_url = 2; + */ + public com.google.protobuf.ByteString getRequestUrlBytes() { + java.lang.Object ref = requestUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The scheme (http, https), the host name, the path and the query
+     * portion of the URL that was requested.
+     * Example: `"http://example.com/some/info?color=red"`.
+     * 
+ * + * string request_url = 2; + */ + public Builder setRequestUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestUrl_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The scheme (http, https), the host name, the path and the query
+     * portion of the URL that was requested.
+     * Example: `"http://example.com/some/info?color=red"`.
+     * 
+ * + * string request_url = 2; + */ + public Builder clearRequestUrl() { + + requestUrl_ = getDefaultInstance().getRequestUrl(); + onChanged(); + return this; + } + /** + * + * + *
+     * The scheme (http, https), the host name, the path and the query
+     * portion of the URL that was requested.
+     * Example: `"http://example.com/some/info?color=red"`.
+     * 
+ * + * string request_url = 2; + */ + public Builder setRequestUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestUrl_ = value; + onChanged(); + return this; + } + + private long requestSize_; + /** + * + * + *
+     * The size of the HTTP request message in bytes, including the request
+     * headers and the request body.
+     * 
+ * + * int64 request_size = 3; + */ + public long getRequestSize() { + return requestSize_; + } + /** + * + * + *
+     * The size of the HTTP request message in bytes, including the request
+     * headers and the request body.
+     * 
+ * + * int64 request_size = 3; + */ + public Builder setRequestSize(long value) { + + requestSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The size of the HTTP request message in bytes, including the request
+     * headers and the request body.
+     * 
+ * + * int64 request_size = 3; + */ + public Builder clearRequestSize() { + + requestSize_ = 0L; + onChanged(); + return this; + } + + private int status_; + /** + * + * + *
+     * The response code indicating the status of response.
+     * Examples: 200, 404.
+     * 
+ * + * int32 status = 4; + */ + public int getStatus() { + return status_; + } + /** + * + * + *
+     * The response code indicating the status of response.
+     * Examples: 200, 404.
+     * 
+ * + * int32 status = 4; + */ + public Builder setStatus(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The response code indicating the status of response.
+     * Examples: 200, 404.
+     * 
+ * + * int32 status = 4; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private long responseSize_; + /** + * + * + *
+     * The size of the HTTP response message sent back to the client, in bytes,
+     * including the response headers and the response body.
+     * 
+ * + * int64 response_size = 5; + */ + public long getResponseSize() { + return responseSize_; + } + /** + * + * + *
+     * The size of the HTTP response message sent back to the client, in bytes,
+     * including the response headers and the response body.
+     * 
+ * + * int64 response_size = 5; + */ + public Builder setResponseSize(long value) { + + responseSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The size of the HTTP response message sent back to the client, in bytes,
+     * including the response headers and the response body.
+     * 
+ * + * int64 response_size = 5; + */ + public Builder clearResponseSize() { + + responseSize_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object userAgent_ = ""; + /** + * + * + *
+     * The user agent sent by the client. Example:
+     * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
+     * CLR 1.0.3705)"`.
+     * 
+ * + * string user_agent = 6; + */ + public java.lang.String getUserAgent() { + java.lang.Object ref = userAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The user agent sent by the client. Example:
+     * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
+     * CLR 1.0.3705)"`.
+     * 
+ * + * string user_agent = 6; + */ + public com.google.protobuf.ByteString getUserAgentBytes() { + java.lang.Object ref = userAgent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The user agent sent by the client. Example:
+     * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
+     * CLR 1.0.3705)"`.
+     * 
+ * + * string user_agent = 6; + */ + public Builder setUserAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userAgent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The user agent sent by the client. Example:
+     * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
+     * CLR 1.0.3705)"`.
+     * 
+ * + * string user_agent = 6; + */ + public Builder clearUserAgent() { + + userAgent_ = getDefaultInstance().getUserAgent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The user agent sent by the client. Example:
+     * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
+     * CLR 1.0.3705)"`.
+     * 
+ * + * string user_agent = 6; + */ + public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userAgent_ = value; + onChanged(); + return this; + } + + private java.lang.Object remoteIp_ = ""; + /** + * + * + *
+     * The IP address (IPv4 or IPv6) of the client that issued the HTTP
+     * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
+     * 
+ * + * string remote_ip = 7; + */ + public java.lang.String getRemoteIp() { + java.lang.Object ref = remoteIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address (IPv4 or IPv6) of the client that issued the HTTP
+     * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
+     * 
+ * + * string remote_ip = 7; + */ + public com.google.protobuf.ByteString getRemoteIpBytes() { + java.lang.Object ref = remoteIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + remoteIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address (IPv4 or IPv6) of the client that issued the HTTP
+     * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
+     * 
+ * + * string remote_ip = 7; + */ + public Builder setRemoteIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + remoteIp_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address (IPv4 or IPv6) of the client that issued the HTTP
+     * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
+     * 
+ * + * string remote_ip = 7; + */ + public Builder clearRemoteIp() { + + remoteIp_ = getDefaultInstance().getRemoteIp(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address (IPv4 or IPv6) of the client that issued the HTTP
+     * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
+     * 
+ * + * string remote_ip = 7; + */ + public Builder setRemoteIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + remoteIp_ = value; + onChanged(); + return this; + } + + private java.lang.Object serverIp_ = ""; + /** + * + * + *
+     * The IP address (IPv4 or IPv6) of the origin server that the request was
+     * sent to.
+     * 
+ * + * string server_ip = 13; + */ + public java.lang.String getServerIp() { + java.lang.Object ref = serverIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serverIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address (IPv4 or IPv6) of the origin server that the request was
+     * sent to.
+     * 
+ * + * string server_ip = 13; + */ + public com.google.protobuf.ByteString getServerIpBytes() { + java.lang.Object ref = serverIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address (IPv4 or IPv6) of the origin server that the request was
+     * sent to.
+     * 
+ * + * string server_ip = 13; + */ + public Builder setServerIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serverIp_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address (IPv4 or IPv6) of the origin server that the request was
+     * sent to.
+     * 
+ * + * string server_ip = 13; + */ + public Builder clearServerIp() { + + serverIp_ = getDefaultInstance().getServerIp(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address (IPv4 or IPv6) of the origin server that the request was
+     * sent to.
+     * 
+ * + * string server_ip = 13; + */ + public Builder setServerIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serverIp_ = value; + onChanged(); + return this; + } + + private java.lang.Object referer_ = ""; + /** + * + * + *
+     * The referer URL of the request, as defined in
+     * [HTTP/1.1 Header Field
+     * Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
+     * 
+ * + * string referer = 8; + */ + public java.lang.String getReferer() { + java.lang.Object ref = referer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + referer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The referer URL of the request, as defined in
+     * [HTTP/1.1 Header Field
+     * Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
+     * 
+ * + * string referer = 8; + */ + public com.google.protobuf.ByteString getRefererBytes() { + java.lang.Object ref = referer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + referer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The referer URL of the request, as defined in
+     * [HTTP/1.1 Header Field
+     * Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
+     * 
+ * + * string referer = 8; + */ + public Builder setReferer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + referer_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The referer URL of the request, as defined in
+     * [HTTP/1.1 Header Field
+     * Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
+     * 
+ * + * string referer = 8; + */ + public Builder clearReferer() { + + referer_ = getDefaultInstance().getReferer(); + onChanged(); + return this; + } + /** + * + * + *
+     * The referer URL of the request, as defined in
+     * [HTTP/1.1 Header Field
+     * Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
+     * 
+ * + * string referer = 8; + */ + public Builder setRefererBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + referer_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Duration latency_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + latencyBuilder_; + /** + * + * + *
+     * The request processing latency on the server, from the time the request was
+     * received until the response was sent.
+     * 
+ * + * .google.protobuf.Duration latency = 14; + */ + public boolean hasLatency() { + return latencyBuilder_ != null || latency_ != null; + } + /** + * + * + *
+     * The request processing latency on the server, from the time the request was
+     * received until the response was sent.
+     * 
+ * + * .google.protobuf.Duration latency = 14; + */ + public com.google.protobuf.Duration getLatency() { + if (latencyBuilder_ == null) { + return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_; + } else { + return latencyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The request processing latency on the server, from the time the request was
+     * received until the response was sent.
+     * 
+ * + * .google.protobuf.Duration latency = 14; + */ + public Builder setLatency(com.google.protobuf.Duration value) { + if (latencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latency_ = value; + onChanged(); + } else { + latencyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The request processing latency on the server, from the time the request was
+     * received until the response was sent.
+     * 
+ * + * .google.protobuf.Duration latency = 14; + */ + public Builder setLatency(com.google.protobuf.Duration.Builder builderForValue) { + if (latencyBuilder_ == null) { + latency_ = builderForValue.build(); + onChanged(); + } else { + latencyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The request processing latency on the server, from the time the request was
+     * received until the response was sent.
+     * 
+ * + * .google.protobuf.Duration latency = 14; + */ + public Builder mergeLatency(com.google.protobuf.Duration value) { + if (latencyBuilder_ == null) { + if (latency_ != null) { + latency_ = + com.google.protobuf.Duration.newBuilder(latency_).mergeFrom(value).buildPartial(); + } else { + latency_ = value; + } + onChanged(); + } else { + latencyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The request processing latency on the server, from the time the request was
+     * received until the response was sent.
+     * 
+ * + * .google.protobuf.Duration latency = 14; + */ + public Builder clearLatency() { + if (latencyBuilder_ == null) { + latency_ = null; + onChanged(); + } else { + latency_ = null; + latencyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The request processing latency on the server, from the time the request was
+     * received until the response was sent.
+     * 
+ * + * .google.protobuf.Duration latency = 14; + */ + public com.google.protobuf.Duration.Builder getLatencyBuilder() { + + onChanged(); + return getLatencyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The request processing latency on the server, from the time the request was
+     * received until the response was sent.
+     * 
+ * + * .google.protobuf.Duration latency = 14; + */ + public com.google.protobuf.DurationOrBuilder getLatencyOrBuilder() { + if (latencyBuilder_ != null) { + return latencyBuilder_.getMessageOrBuilder(); + } else { + return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_; + } + } + /** + * + * + *
+     * The request processing latency on the server, from the time the request was
+     * received until the response was sent.
+     * 
+ * + * .google.protobuf.Duration latency = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getLatencyFieldBuilder() { + if (latencyBuilder_ == null) { + latencyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getLatency(), getParentForChildren(), isClean()); + latency_ = null; + } + return latencyBuilder_; + } + + private boolean cacheLookup_; + /** + * + * + *
+     * Whether or not a cache lookup was attempted.
+     * 
+ * + * bool cache_lookup = 11; + */ + public boolean getCacheLookup() { + return cacheLookup_; + } + /** + * + * + *
+     * Whether or not a cache lookup was attempted.
+     * 
+ * + * bool cache_lookup = 11; + */ + public Builder setCacheLookup(boolean value) { + + cacheLookup_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not a cache lookup was attempted.
+     * 
+ * + * bool cache_lookup = 11; + */ + public Builder clearCacheLookup() { + + cacheLookup_ = false; + onChanged(); + return this; + } + + private boolean cacheHit_; + /** + * + * + *
+     * Whether or not an entity was served from cache
+     * (with or without validation).
+     * 
+ * + * bool cache_hit = 9; + */ + public boolean getCacheHit() { + return cacheHit_; + } + /** + * + * + *
+     * Whether or not an entity was served from cache
+     * (with or without validation).
+     * 
+ * + * bool cache_hit = 9; + */ + public Builder setCacheHit(boolean value) { + + cacheHit_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not an entity was served from cache
+     * (with or without validation).
+     * 
+ * + * bool cache_hit = 9; + */ + public Builder clearCacheHit() { + + cacheHit_ = false; + onChanged(); + return this; + } + + private boolean cacheValidatedWithOriginServer_; + /** + * + * + *
+     * Whether or not the response was validated with the origin server before
+     * being served from cache. This field is only meaningful if `cache_hit` is
+     * True.
+     * 
+ * + * bool cache_validated_with_origin_server = 10; + */ + public boolean getCacheValidatedWithOriginServer() { + return cacheValidatedWithOriginServer_; + } + /** + * + * + *
+     * Whether or not the response was validated with the origin server before
+     * being served from cache. This field is only meaningful if `cache_hit` is
+     * True.
+     * 
+ * + * bool cache_validated_with_origin_server = 10; + */ + public Builder setCacheValidatedWithOriginServer(boolean value) { + + cacheValidatedWithOriginServer_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not the response was validated with the origin server before
+     * being served from cache. This field is only meaningful if `cache_hit` is
+     * True.
+     * 
+ * + * bool cache_validated_with_origin_server = 10; + */ + public Builder clearCacheValidatedWithOriginServer() { + + cacheValidatedWithOriginServer_ = false; + onChanged(); + return this; + } + + private long cacheFillBytes_; + /** + * + * + *
+     * The number of HTTP response bytes inserted into cache. Set only when a
+     * cache fill was attempted.
+     * 
+ * + * int64 cache_fill_bytes = 12; + */ + public long getCacheFillBytes() { + return cacheFillBytes_; + } + /** + * + * + *
+     * The number of HTTP response bytes inserted into cache. Set only when a
+     * cache fill was attempted.
+     * 
+ * + * int64 cache_fill_bytes = 12; + */ + public Builder setCacheFillBytes(long value) { + + cacheFillBytes_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of HTTP response bytes inserted into cache. Set only when a
+     * cache fill was attempted.
+     * 
+ * + * int64 cache_fill_bytes = 12; + */ + public Builder clearCacheFillBytes() { + + cacheFillBytes_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object protocol_ = ""; + /** + * + * + *
+     * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
+     * 
+ * + * string protocol = 15; + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
+     * 
+ * + * string protocol = 15; + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
+     * 
+ * + * string protocol = 15; + */ + public Builder setProtocol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + protocol_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
+     * 
+ * + * string protocol = 15; + */ + public Builder clearProtocol() { + + protocol_ = getDefaultInstance().getProtocol(); + onChanged(); + return this; + } + /** + * + * + *
+     * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
+     * 
+ * + * string protocol = 15; + */ + public Builder setProtocolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + protocol_ = 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.type.HttpRequest) + } + + // @@protoc_insertion_point(class_scope:google.logging.type.HttpRequest) + private static final com.google.logging.type.HttpRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.type.HttpRequest(); + } + + public static com.google.logging.type.HttpRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpRequest(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.type.HttpRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/HttpRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/HttpRequestOrBuilder.java new file mode 100644 index 000000000000..6de2a6e92f1b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/HttpRequestOrBuilder.java @@ -0,0 +1,291 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/type/http_request.proto + +package com.google.logging.type; + +public interface HttpRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.type.HttpRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
+   * 
+ * + * string request_method = 1; + */ + java.lang.String getRequestMethod(); + /** + * + * + *
+   * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
+   * 
+ * + * string request_method = 1; + */ + com.google.protobuf.ByteString getRequestMethodBytes(); + + /** + * + * + *
+   * The scheme (http, https), the host name, the path and the query
+   * portion of the URL that was requested.
+   * Example: `"http://example.com/some/info?color=red"`.
+   * 
+ * + * string request_url = 2; + */ + java.lang.String getRequestUrl(); + /** + * + * + *
+   * The scheme (http, https), the host name, the path and the query
+   * portion of the URL that was requested.
+   * Example: `"http://example.com/some/info?color=red"`.
+   * 
+ * + * string request_url = 2; + */ + com.google.protobuf.ByteString getRequestUrlBytes(); + + /** + * + * + *
+   * The size of the HTTP request message in bytes, including the request
+   * headers and the request body.
+   * 
+ * + * int64 request_size = 3; + */ + long getRequestSize(); + + /** + * + * + *
+   * The response code indicating the status of response.
+   * Examples: 200, 404.
+   * 
+ * + * int32 status = 4; + */ + int getStatus(); + + /** + * + * + *
+   * The size of the HTTP response message sent back to the client, in bytes,
+   * including the response headers and the response body.
+   * 
+ * + * int64 response_size = 5; + */ + long getResponseSize(); + + /** + * + * + *
+   * The user agent sent by the client. Example:
+   * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
+   * CLR 1.0.3705)"`.
+   * 
+ * + * string user_agent = 6; + */ + java.lang.String getUserAgent(); + /** + * + * + *
+   * The user agent sent by the client. Example:
+   * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
+   * CLR 1.0.3705)"`.
+   * 
+ * + * string user_agent = 6; + */ + com.google.protobuf.ByteString getUserAgentBytes(); + + /** + * + * + *
+   * The IP address (IPv4 or IPv6) of the client that issued the HTTP
+   * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
+   * 
+ * + * string remote_ip = 7; + */ + java.lang.String getRemoteIp(); + /** + * + * + *
+   * The IP address (IPv4 or IPv6) of the client that issued the HTTP
+   * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
+   * 
+ * + * string remote_ip = 7; + */ + com.google.protobuf.ByteString getRemoteIpBytes(); + + /** + * + * + *
+   * The IP address (IPv4 or IPv6) of the origin server that the request was
+   * sent to.
+   * 
+ * + * string server_ip = 13; + */ + java.lang.String getServerIp(); + /** + * + * + *
+   * The IP address (IPv4 or IPv6) of the origin server that the request was
+   * sent to.
+   * 
+ * + * string server_ip = 13; + */ + com.google.protobuf.ByteString getServerIpBytes(); + + /** + * + * + *
+   * The referer URL of the request, as defined in
+   * [HTTP/1.1 Header Field
+   * Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
+   * 
+ * + * string referer = 8; + */ + java.lang.String getReferer(); + /** + * + * + *
+   * The referer URL of the request, as defined in
+   * [HTTP/1.1 Header Field
+   * Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
+   * 
+ * + * string referer = 8; + */ + com.google.protobuf.ByteString getRefererBytes(); + + /** + * + * + *
+   * The request processing latency on the server, from the time the request was
+   * received until the response was sent.
+   * 
+ * + * .google.protobuf.Duration latency = 14; + */ + boolean hasLatency(); + /** + * + * + *
+   * The request processing latency on the server, from the time the request was
+   * received until the response was sent.
+   * 
+ * + * .google.protobuf.Duration latency = 14; + */ + com.google.protobuf.Duration getLatency(); + /** + * + * + *
+   * The request processing latency on the server, from the time the request was
+   * received until the response was sent.
+   * 
+ * + * .google.protobuf.Duration latency = 14; + */ + com.google.protobuf.DurationOrBuilder getLatencyOrBuilder(); + + /** + * + * + *
+   * Whether or not a cache lookup was attempted.
+   * 
+ * + * bool cache_lookup = 11; + */ + boolean getCacheLookup(); + + /** + * + * + *
+   * Whether or not an entity was served from cache
+   * (with or without validation).
+   * 
+ * + * bool cache_hit = 9; + */ + boolean getCacheHit(); + + /** + * + * + *
+   * Whether or not the response was validated with the origin server before
+   * being served from cache. This field is only meaningful if `cache_hit` is
+   * True.
+   * 
+ * + * bool cache_validated_with_origin_server = 10; + */ + boolean getCacheValidatedWithOriginServer(); + + /** + * + * + *
+   * The number of HTTP response bytes inserted into cache. Set only when a
+   * cache fill was attempted.
+   * 
+ * + * int64 cache_fill_bytes = 12; + */ + long getCacheFillBytes(); + + /** + * + * + *
+   * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
+   * 
+ * + * string protocol = 15; + */ + java.lang.String getProtocol(); + /** + * + * + *
+   * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
+   * 
+ * + * string protocol = 15; + */ + com.google.protobuf.ByteString getProtocolBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/HttpRequestProto.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/HttpRequestProto.java new file mode 100644 index 000000000000..b2931facf4dd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/HttpRequestProto.java @@ -0,0 +1,88 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/type/http_request.proto + +package com.google.logging.type; + +public final class HttpRequestProto { + private HttpRequestProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_type_HttpRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_type_HttpRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/logging/type/http_request.proto" + + "\022\023google.logging.type\032\036google/protobuf/d" + + "uration.proto\032\034google/api/annotations.pr" + + "oto\"\357\002\n\013HttpRequest\022\026\n\016request_method\030\001 " + + "\001(\t\022\023\n\013request_url\030\002 \001(\t\022\024\n\014request_size" + + "\030\003 \001(\003\022\016\n\006status\030\004 \001(\005\022\025\n\rresponse_size\030" + + "\005 \001(\003\022\022\n\nuser_agent\030\006 \001(\t\022\021\n\tremote_ip\030\007" + + " \001(\t\022\021\n\tserver_ip\030\r \001(\t\022\017\n\007referer\030\010 \001(\t" + + "\022*\n\007latency\030\016 \001(\0132\031.google.protobuf.Dura" + + "tion\022\024\n\014cache_lookup\030\013 \001(\010\022\021\n\tcache_hit\030" + + "\t \001(\010\022*\n\"cache_validated_with_origin_ser" + + "ver\030\n \001(\010\022\030\n\020cache_fill_bytes\030\014 \001(\003\022\020\n\010p" + + "rotocol\030\017 \001(\tB\237\001\n\027com.google.logging.typ" + + "eB\020HttpRequestProtoP\001Z8google.golang.org" + + "/genproto/googleapis/logging/type;ltype\252" + + "\002\031Google.Cloud.Logging.Type\312\002\031Google\\Clo" + + "ud\\Logging\\Typeb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_logging_type_HttpRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_logging_type_HttpRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_type_HttpRequest_descriptor, + new java.lang.String[] { + "RequestMethod", + "RequestUrl", + "RequestSize", + "Status", + "ResponseSize", + "UserAgent", + "RemoteIp", + "ServerIp", + "Referer", + "Latency", + "CacheLookup", + "CacheHit", + "CacheValidatedWithOriginServer", + "CacheFillBytes", + "Protocol", + }); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogName.java new file mode 100644 index 000000000000..b1a7c84dfa73 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogName.java @@ -0,0 +1,23 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.resourcenames.ResourceName; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public abstract class LogName implements ResourceName { + protected LogName() {} +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogNames.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogNames.java new file mode 100644 index 000000000000..313d7109e9f4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogNames.java @@ -0,0 +1,37 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class LogNames { + private LogNames() {} + + public static LogName parse(String resourceNameString) { + if (ProjectLogName.isParsableFrom(resourceNameString)) { + return ProjectLogName.parse(resourceNameString); + } + if (OrganizationLogName.isParsableFrom(resourceNameString)) { + return OrganizationLogName.parse(resourceNameString); + } + if (FolderLogName.isParsableFrom(resourceNameString)) { + return FolderLogName.parse(resourceNameString); + } + if (BillingLogName.isParsableFrom(resourceNameString)) { + return BillingLogName.parse(resourceNameString); + } + return UntypedLogName.parse(resourceNameString); + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogSeverity.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogSeverity.java new file mode 100644 index 000000000000..53da687390d4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogSeverity.java @@ -0,0 +1,294 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/type/log_severity.proto + +package com.google.logging.type; + +/** + * + * + *
+ * The severity of the event described in a log entry, expressed as one of the
+ * standard severity levels listed below.  For your reference, the levels are
+ * assigned the listed numeric values. The effect of using numeric values other
+ * than those listed is undefined.
+ * You can filter for log entries by severity.  For example, the following
+ * filter expression will match log entries with severities `INFO`, `NOTICE`,
+ * and `WARNING`:
+ *     severity > DEBUG AND severity <= WARNING
+ * If you are writing log entries, you should map other severity encodings to
+ * one of these standard levels. For example, you might map all of Java's FINE,
+ * FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
+ * original severity level in the log entry payload if you wish.
+ * 
+ * + * Protobuf enum {@code google.logging.type.LogSeverity} + */ +public enum LogSeverity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * (0) The log entry has no assigned severity level.
+   * 
+ * + * DEFAULT = 0; + */ + DEFAULT(0), + /** + * + * + *
+   * (100) Debug or trace information.
+   * 
+ * + * DEBUG = 100; + */ + DEBUG(100), + /** + * + * + *
+   * (200) Routine information, such as ongoing status or performance.
+   * 
+ * + * INFO = 200; + */ + INFO(200), + /** + * + * + *
+   * (300) Normal but significant events, such as start up, shut down, or
+   * a configuration change.
+   * 
+ * + * NOTICE = 300; + */ + NOTICE(300), + /** + * + * + *
+   * (400) Warning events might cause problems.
+   * 
+ * + * WARNING = 400; + */ + WARNING(400), + /** + * + * + *
+   * (500) Error events are likely to cause problems.
+   * 
+ * + * ERROR = 500; + */ + ERROR(500), + /** + * + * + *
+   * (600) Critical events cause more severe problems or outages.
+   * 
+ * + * CRITICAL = 600; + */ + CRITICAL(600), + /** + * + * + *
+   * (700) A person must take an action immediately.
+   * 
+ * + * ALERT = 700; + */ + ALERT(700), + /** + * + * + *
+   * (800) One or more systems are unusable.
+   * 
+ * + * EMERGENCY = 800; + */ + EMERGENCY(800), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * (0) The log entry has no assigned severity level.
+   * 
+ * + * DEFAULT = 0; + */ + public static final int DEFAULT_VALUE = 0; + /** + * + * + *
+   * (100) Debug or trace information.
+   * 
+ * + * DEBUG = 100; + */ + public static final int DEBUG_VALUE = 100; + /** + * + * + *
+   * (200) Routine information, such as ongoing status or performance.
+   * 
+ * + * INFO = 200; + */ + public static final int INFO_VALUE = 200; + /** + * + * + *
+   * (300) Normal but significant events, such as start up, shut down, or
+   * a configuration change.
+   * 
+ * + * NOTICE = 300; + */ + public static final int NOTICE_VALUE = 300; + /** + * + * + *
+   * (400) Warning events might cause problems.
+   * 
+ * + * WARNING = 400; + */ + public static final int WARNING_VALUE = 400; + /** + * + * + *
+   * (500) Error events are likely to cause problems.
+   * 
+ * + * ERROR = 500; + */ + public static final int ERROR_VALUE = 500; + /** + * + * + *
+   * (600) Critical events cause more severe problems or outages.
+   * 
+ * + * CRITICAL = 600; + */ + public static final int CRITICAL_VALUE = 600; + /** + * + * + *
+   * (700) A person must take an action immediately.
+   * 
+ * + * ALERT = 700; + */ + public static final int ALERT_VALUE = 700; + /** + * + * + *
+   * (800) One or more systems are unusable.
+   * 
+ * + * EMERGENCY = 800; + */ + public static final int EMERGENCY_VALUE = 800; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static LogSeverity valueOf(int value) { + return forNumber(value); + } + + public static LogSeverity forNumber(int value) { + switch (value) { + case 0: + return DEFAULT; + case 100: + return DEBUG; + case 200: + return INFO; + case 300: + return NOTICE; + case 400: + return WARNING; + case 500: + return ERROR; + case 600: + return CRITICAL; + case 700: + return ALERT; + case 800: + return EMERGENCY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LogSeverity findValueByNumber(int number) { + return LogSeverity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.logging.type.LogSeverityProto.getDescriptor().getEnumTypes().get(0); + } + + private static final LogSeverity[] VALUES = values(); + + public static LogSeverity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LogSeverity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.logging.type.LogSeverity) +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogSeverityProto.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogSeverityProto.java new file mode 100644 index 000000000000..542508b8e0b3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/LogSeverityProto.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/type/log_severity.proto + +package com.google.logging.type; + +public final class LogSeverityProto { + private LogSeverityProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/logging/type/log_severity.proto" + + "\022\023google.logging.type\032\034google/api/annota" + + "tions.proto*\202\001\n\013LogSeverity\022\013\n\007DEFAULT\020\000" + + "\022\t\n\005DEBUG\020d\022\t\n\004INFO\020\310\001\022\013\n\006NOTICE\020\254\002\022\014\n\007W" + + "ARNING\020\220\003\022\n\n\005ERROR\020\364\003\022\r\n\010CRITICAL\020\330\004\022\n\n\005" + + "ALERT\020\274\005\022\016\n\tEMERGENCY\020\240\006B\237\001\n\027com.google." + + "logging.typeB\020LogSeverityProtoP\001Z8google" + + ".golang.org/genproto/googleapis/logging/" + + "type;ltype\252\002\031Google.Cloud.Logging.Type\312\002" + + "\031Google\\Cloud\\Logging\\Typeb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/MetricName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/MetricName.java new file mode 100644 index 000000000000..fa16d4f4ecaf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/MetricName.java @@ -0,0 +1,23 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.resourcenames.ResourceName; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public abstract class MetricName implements ResourceName { + protected MetricName() {} +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/MetricNames.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/MetricNames.java new file mode 100644 index 000000000000..b86413af585a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/MetricNames.java @@ -0,0 +1,28 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class MetricNames { + private MetricNames() {} + + public static MetricName parse(String resourceNameString) { + if (ProjectMetricName.isParsableFrom(resourceNameString)) { + return ProjectMetricName.parse(resourceNameString); + } + return UntypedMetricName.parse(resourceNameString); + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationExclusionName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationExclusionName.java new file mode 100644 index 000000000000..5224a9613291 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationExclusionName.java @@ -0,0 +1,181 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class OrganizationExclusionName extends ExclusionName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}/exclusions/{exclusion}"); + + private volatile Map fieldValuesMap; + + private final String organization; + private final String exclusion; + + public String getOrganization() { + return organization; + } + + public String getExclusion() { + return exclusion; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private OrganizationExclusionName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + exclusion = Preconditions.checkNotNull(builder.getExclusion()); + } + + public static OrganizationExclusionName of(String organization, String exclusion) { + return newBuilder().setOrganization(organization).setExclusion(exclusion).build(); + } + + public static String format(String organization, String exclusion) { + return newBuilder().setOrganization(organization).setExclusion(exclusion).build().toString(); + } + + public static OrganizationExclusionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, + "OrganizationExclusionName.parse: formattedString not in valid format"); + return of(matchMap.get("organization"), matchMap.get("exclusion")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (OrganizationExclusionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("organization", organization); + fieldMapBuilder.put("exclusion", exclusion); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("organization", organization, "exclusion", exclusion); + } + + /** Builder for OrganizationExclusionName. */ + public static class Builder { + + private String organization; + private String exclusion; + + public String getOrganization() { + return organization; + } + + public String getExclusion() { + return exclusion; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setExclusion(String exclusion) { + this.exclusion = exclusion; + return this; + } + + private Builder() {} + + private Builder(OrganizationExclusionName organizationExclusionName) { + organization = organizationExclusionName.organization; + exclusion = organizationExclusionName.exclusion; + } + + public OrganizationExclusionName build() { + return new OrganizationExclusionName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof OrganizationExclusionName) { + OrganizationExclusionName that = (OrganizationExclusionName) o; + return (this.organization.equals(that.organization)) + && (this.exclusion.equals(that.exclusion)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= organization.hashCode(); + h *= 1000003; + h ^= exclusion.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationLogName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationLogName.java new file mode 100644 index 000000000000..4453b2b50a39 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationLogName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class OrganizationLogName extends LogName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}/logs/{log}"); + + private volatile Map fieldValuesMap; + + private final String organization; + private final String log; + + public String getOrganization() { + return organization; + } + + public String getLog() { + return log; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private OrganizationLogName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + log = Preconditions.checkNotNull(builder.getLog()); + } + + public static OrganizationLogName of(String organization, String log) { + return newBuilder().setOrganization(organization).setLog(log).build(); + } + + public static String format(String organization, String log) { + return newBuilder().setOrganization(organization).setLog(log).build().toString(); + } + + public static OrganizationLogName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "OrganizationLogName.parse: formattedString not in valid format"); + return of(matchMap.get("organization"), matchMap.get("log")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (OrganizationLogName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("organization", organization); + fieldMapBuilder.put("log", log); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("organization", organization, "log", log); + } + + /** Builder for OrganizationLogName. */ + public static class Builder { + + private String organization; + private String log; + + public String getOrganization() { + return organization; + } + + public String getLog() { + return log; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLog(String log) { + this.log = log; + return this; + } + + private Builder() {} + + private Builder(OrganizationLogName organizationLogName) { + organization = organizationLogName.organization; + log = organizationLogName.log; + } + + public OrganizationLogName build() { + return new OrganizationLogName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof OrganizationLogName) { + OrganizationLogName that = (OrganizationLogName) o; + return (this.organization.equals(that.organization)) && (this.log.equals(that.log)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= organization.hashCode(); + h *= 1000003; + h ^= log.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationName.java new file mode 100644 index 000000000000..46ddd7c5aa5a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationName.java @@ -0,0 +1,159 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class OrganizationName extends ParentName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}"); + + private volatile Map fieldValuesMap; + + private final String organization; + + public String getOrganization() { + return organization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private OrganizationName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + } + + public static OrganizationName of(String organization) { + return newBuilder().setOrganization(organization).build(); + } + + public static String format(String organization) { + return newBuilder().setOrganization(organization).build().toString(); + } + + public static OrganizationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "OrganizationName.parse: formattedString not in valid format"); + return of(matchMap.get("organization")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (OrganizationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("organization", organization); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("organization", organization); + } + + /** Builder for OrganizationName. */ + public static class Builder { + + private String organization; + + public String getOrganization() { + return organization; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + private Builder() {} + + private Builder(OrganizationName organizationName) { + organization = organizationName.organization; + } + + public OrganizationName build() { + return new OrganizationName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof OrganizationName) { + OrganizationName that = (OrganizationName) o; + return (this.organization.equals(that.organization)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= organization.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationSinkName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationSinkName.java new file mode 100644 index 000000000000..5be93718a715 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/OrganizationSinkName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class OrganizationSinkName extends SinkName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}/sinks/{sink}"); + + private volatile Map fieldValuesMap; + + private final String organization; + private final String sink; + + public String getOrganization() { + return organization; + } + + public String getSink() { + return sink; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private OrganizationSinkName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + sink = Preconditions.checkNotNull(builder.getSink()); + } + + public static OrganizationSinkName of(String organization, String sink) { + return newBuilder().setOrganization(organization).setSink(sink).build(); + } + + public static String format(String organization, String sink) { + return newBuilder().setOrganization(organization).setSink(sink).build().toString(); + } + + public static OrganizationSinkName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "OrganizationSinkName.parse: formattedString not in valid format"); + return of(matchMap.get("organization"), matchMap.get("sink")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (OrganizationSinkName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("organization", organization); + fieldMapBuilder.put("sink", sink); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("organization", organization, "sink", sink); + } + + /** Builder for OrganizationSinkName. */ + public static class Builder { + + private String organization; + private String sink; + + public String getOrganization() { + return organization; + } + + public String getSink() { + return sink; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setSink(String sink) { + this.sink = sink; + return this; + } + + private Builder() {} + + private Builder(OrganizationSinkName organizationSinkName) { + organization = organizationSinkName.organization; + sink = organizationSinkName.sink; + } + + public OrganizationSinkName build() { + return new OrganizationSinkName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof OrganizationSinkName) { + OrganizationSinkName that = (OrganizationSinkName) o; + return (this.organization.equals(that.organization)) && (this.sink.equals(that.sink)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= organization.hashCode(); + h *= 1000003; + h ^= sink.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ParentName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ParentName.java new file mode 100644 index 000000000000..a0d0ba2744ac --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ParentName.java @@ -0,0 +1,23 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.resourcenames.ResourceName; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public abstract class ParentName implements ResourceName { + protected ParentName() {} +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ParentNames.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ParentNames.java new file mode 100644 index 000000000000..da7a9ac73d61 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ParentNames.java @@ -0,0 +1,37 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ParentNames { + private ParentNames() {} + + public static ParentName parse(String resourceNameString) { + if (ProjectName.isParsableFrom(resourceNameString)) { + return ProjectName.parse(resourceNameString); + } + if (OrganizationName.isParsableFrom(resourceNameString)) { + return OrganizationName.parse(resourceNameString); + } + if (FolderName.isParsableFrom(resourceNameString)) { + return FolderName.parse(resourceNameString); + } + if (BillingName.isParsableFrom(resourceNameString)) { + return BillingName.parse(resourceNameString); + } + return UntypedParentName.parse(resourceNameString); + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectExclusionName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectExclusionName.java new file mode 100644 index 000000000000..ea646c904f30 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectExclusionName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectExclusionName extends ExclusionName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/exclusions/{exclusion}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String exclusion; + + public String getProject() { + return project; + } + + public String getExclusion() { + return exclusion; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectExclusionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + exclusion = Preconditions.checkNotNull(builder.getExclusion()); + } + + public static ProjectExclusionName of(String project, String exclusion) { + return newBuilder().setProject(project).setExclusion(exclusion).build(); + } + + public static String format(String project, String exclusion) { + return newBuilder().setProject(project).setExclusion(exclusion).build().toString(); + } + + public static ProjectExclusionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ProjectExclusionName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("exclusion")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectExclusionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("exclusion", exclusion); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "exclusion", exclusion); + } + + /** Builder for ProjectExclusionName. */ + public static class Builder { + + private String project; + private String exclusion; + + public String getProject() { + return project; + } + + public String getExclusion() { + return exclusion; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setExclusion(String exclusion) { + this.exclusion = exclusion; + return this; + } + + private Builder() {} + + private Builder(ProjectExclusionName projectExclusionName) { + project = projectExclusionName.project; + exclusion = projectExclusionName.exclusion; + } + + public ProjectExclusionName build() { + return new ProjectExclusionName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectExclusionName) { + ProjectExclusionName that = (ProjectExclusionName) o; + return (this.project.equals(that.project)) && (this.exclusion.equals(that.exclusion)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= exclusion.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectLogName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectLogName.java new file mode 100644 index 000000000000..7e408b4cfd18 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectLogName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectLogName extends LogName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/logs/{log}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String log; + + public String getProject() { + return project; + } + + public String getLog() { + return log; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectLogName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + log = Preconditions.checkNotNull(builder.getLog()); + } + + public static ProjectLogName of(String project, String log) { + return newBuilder().setProject(project).setLog(log).build(); + } + + public static String format(String project, String log) { + return newBuilder().setProject(project).setLog(log).build().toString(); + } + + public static ProjectLogName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ProjectLogName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("log")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectLogName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("log", log); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "log", log); + } + + /** Builder for ProjectLogName. */ + public static class Builder { + + private String project; + private String log; + + public String getProject() { + return project; + } + + public String getLog() { + return log; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLog(String log) { + this.log = log; + return this; + } + + private Builder() {} + + private Builder(ProjectLogName projectLogName) { + project = projectLogName.project; + log = projectLogName.log; + } + + public ProjectLogName build() { + return new ProjectLogName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectLogName) { + ProjectLogName that = (ProjectLogName) o; + return (this.project.equals(that.project)) && (this.log.equals(that.log)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= log.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectMetricName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectMetricName.java new file mode 100644 index 000000000000..9f42a1a10a99 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectMetricName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectMetricName extends MetricName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/metrics/{metric}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String metric; + + public String getProject() { + return project; + } + + public String getMetric() { + return metric; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectMetricName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + metric = Preconditions.checkNotNull(builder.getMetric()); + } + + public static ProjectMetricName of(String project, String metric) { + return newBuilder().setProject(project).setMetric(metric).build(); + } + + public static String format(String project, String metric) { + return newBuilder().setProject(project).setMetric(metric).build().toString(); + } + + public static ProjectMetricName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ProjectMetricName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("metric")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectMetricName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("metric", metric); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "metric", metric); + } + + /** Builder for ProjectMetricName. */ + public static class Builder { + + private String project; + private String metric; + + public String getProject() { + return project; + } + + public String getMetric() { + return metric; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setMetric(String metric) { + this.metric = metric; + return this; + } + + private Builder() {} + + private Builder(ProjectMetricName projectMetricName) { + project = projectMetricName.project; + metric = projectMetricName.metric; + } + + public ProjectMetricName build() { + return new ProjectMetricName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectMetricName) { + ProjectMetricName that = (ProjectMetricName) o; + return (this.project.equals(that.project)) && (this.metric.equals(that.metric)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= metric.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectName.java new file mode 100644 index 000000000000..d874ea48785a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectName.java @@ -0,0 +1,159 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectName extends ParentName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + + private volatile Map fieldValuesMap; + + private final String project; + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project); + } + + /** Builder for ProjectName. */ + public static class Builder { + + private String project; + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder() {} + + private Builder(ProjectName projectName) { + project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectName) { + ProjectName that = (ProjectName) o; + return (this.project.equals(that.project)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectSinkName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectSinkName.java new file mode 100644 index 000000000000..ee4fd0b229b4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/ProjectSinkName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectSinkName extends SinkName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/sinks/{sink}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String sink; + + public String getProject() { + return project; + } + + public String getSink() { + return sink; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectSinkName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + sink = Preconditions.checkNotNull(builder.getSink()); + } + + public static ProjectSinkName of(String project, String sink) { + return newBuilder().setProject(project).setSink(sink).build(); + } + + public static String format(String project, String sink) { + return newBuilder().setProject(project).setSink(sink).build().toString(); + } + + public static ProjectSinkName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "ProjectSinkName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("sink")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectSinkName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("sink", sink); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "sink", sink); + } + + /** Builder for ProjectSinkName. */ + public static class Builder { + + private String project; + private String sink; + + public String getProject() { + return project; + } + + public String getSink() { + return sink; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setSink(String sink) { + this.sink = sink; + return this; + } + + private Builder() {} + + private Builder(ProjectSinkName projectSinkName) { + project = projectSinkName.project; + sink = projectSinkName.sink; + } + + public ProjectSinkName build() { + return new ProjectSinkName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectSinkName) { + ProjectSinkName that = (ProjectSinkName) o; + return (this.project.equals(that.project)) && (this.sink.equals(that.sink)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= sink.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/SinkName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/SinkName.java new file mode 100644 index 000000000000..4e8723692aa5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/SinkName.java @@ -0,0 +1,23 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.resourcenames.ResourceName; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public abstract class SinkName implements ResourceName { + protected SinkName() {} +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/SinkNames.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/SinkNames.java new file mode 100644 index 000000000000..3f83e73bb4d0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/SinkNames.java @@ -0,0 +1,37 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class SinkNames { + private SinkNames() {} + + public static SinkName parse(String resourceNameString) { + if (ProjectSinkName.isParsableFrom(resourceNameString)) { + return ProjectSinkName.parse(resourceNameString); + } + if (OrganizationSinkName.isParsableFrom(resourceNameString)) { + return OrganizationSinkName.parse(resourceNameString); + } + if (FolderSinkName.isParsableFrom(resourceNameString)) { + return FolderSinkName.parse(resourceNameString); + } + if (BillingSinkName.isParsableFrom(resourceNameString)) { + return BillingSinkName.parse(resourceNameString); + } + return UntypedSinkName.parse(resourceNameString); + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedExclusionName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedExclusionName.java new file mode 100644 index 000000000000..d3382d93ac59 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedExclusionName.java @@ -0,0 +1,99 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class UntypedExclusionName extends ExclusionName { + + private final String rawValue; + private Map valueMap; + + private UntypedExclusionName(String rawValue) { + this.rawValue = Preconditions.checkNotNull(rawValue); + this.valueMap = ImmutableMap.of("", rawValue); + } + + public static UntypedExclusionName from(ResourceName resourceName) { + return new UntypedExclusionName(resourceName.toString()); + } + + public static UntypedExclusionName parse(String formattedString) { + return new UntypedExclusionName(formattedString); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (UntypedExclusionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return true; + } + + /** Return a map with a single value rawValue keyed on an empty String "". */ + public Map getFieldValuesMap() { + return valueMap; + } + + /** Return the initial rawValue if @param fieldName is an empty String, else return null. */ + public String getFieldValue(String fieldName) { + return valueMap.get(fieldName); + } + + @Override + public String toString() { + return rawValue; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof UntypedExclusionName) { + UntypedExclusionName that = (UntypedExclusionName) o; + return this.rawValue.equals(that.rawValue); + } + return false; + } + + @Override + public int hashCode() { + return rawValue.hashCode(); + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedLogName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedLogName.java new file mode 100644 index 000000000000..94873fd3ca63 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedLogName.java @@ -0,0 +1,99 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class UntypedLogName extends LogName { + + private final String rawValue; + private Map valueMap; + + private UntypedLogName(String rawValue) { + this.rawValue = Preconditions.checkNotNull(rawValue); + this.valueMap = ImmutableMap.of("", rawValue); + } + + public static UntypedLogName from(ResourceName resourceName) { + return new UntypedLogName(resourceName.toString()); + } + + public static UntypedLogName parse(String formattedString) { + return new UntypedLogName(formattedString); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (UntypedLogName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return true; + } + + /** Return a map with a single value rawValue keyed on an empty String "". */ + public Map getFieldValuesMap() { + return valueMap; + } + + /** Return the initial rawValue if @param fieldName is an empty String, else return null. */ + public String getFieldValue(String fieldName) { + return valueMap.get(fieldName); + } + + @Override + public String toString() { + return rawValue; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof UntypedLogName) { + UntypedLogName that = (UntypedLogName) o; + return this.rawValue.equals(that.rawValue); + } + return false; + } + + @Override + public int hashCode() { + return rawValue.hashCode(); + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedMetricName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedMetricName.java new file mode 100644 index 000000000000..995e199c6a3c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedMetricName.java @@ -0,0 +1,99 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class UntypedMetricName extends MetricName { + + private final String rawValue; + private Map valueMap; + + private UntypedMetricName(String rawValue) { + this.rawValue = Preconditions.checkNotNull(rawValue); + this.valueMap = ImmutableMap.of("", rawValue); + } + + public static UntypedMetricName from(ResourceName resourceName) { + return new UntypedMetricName(resourceName.toString()); + } + + public static UntypedMetricName parse(String formattedString) { + return new UntypedMetricName(formattedString); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (UntypedMetricName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return true; + } + + /** Return a map with a single value rawValue keyed on an empty String "". */ + public Map getFieldValuesMap() { + return valueMap; + } + + /** Return the initial rawValue if @param fieldName is an empty String, else return null. */ + public String getFieldValue(String fieldName) { + return valueMap.get(fieldName); + } + + @Override + public String toString() { + return rawValue; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof UntypedMetricName) { + UntypedMetricName that = (UntypedMetricName) o; + return this.rawValue.equals(that.rawValue); + } + return false; + } + + @Override + public int hashCode() { + return rawValue.hashCode(); + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedParentName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedParentName.java new file mode 100644 index 000000000000..f7a26588ca9c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedParentName.java @@ -0,0 +1,99 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class UntypedParentName extends ParentName { + + private final String rawValue; + private Map valueMap; + + private UntypedParentName(String rawValue) { + this.rawValue = Preconditions.checkNotNull(rawValue); + this.valueMap = ImmutableMap.of("", rawValue); + } + + public static UntypedParentName from(ResourceName resourceName) { + return new UntypedParentName(resourceName.toString()); + } + + public static UntypedParentName parse(String formattedString) { + return new UntypedParentName(formattedString); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (UntypedParentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return true; + } + + /** Return a map with a single value rawValue keyed on an empty String "". */ + public Map getFieldValuesMap() { + return valueMap; + } + + /** Return the initial rawValue if @param fieldName is an empty String, else return null. */ + public String getFieldValue(String fieldName) { + return valueMap.get(fieldName); + } + + @Override + public String toString() { + return rawValue; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof UntypedParentName) { + UntypedParentName that = (UntypedParentName) o; + return this.rawValue.equals(that.rawValue); + } + return false; + } + + @Override + public int hashCode() { + return rawValue.hashCode(); + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedSinkName.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedSinkName.java new file mode 100644 index 000000000000..619c20e4dcc0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/type/UntypedSinkName.java @@ -0,0 +1,99 @@ +/* + * Copyright 2018 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.logging.type; + +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class UntypedSinkName extends SinkName { + + private final String rawValue; + private Map valueMap; + + private UntypedSinkName(String rawValue) { + this.rawValue = Preconditions.checkNotNull(rawValue); + this.valueMap = ImmutableMap.of("", rawValue); + } + + public static UntypedSinkName from(ResourceName resourceName) { + return new UntypedSinkName(resourceName.toString()); + } + + public static UntypedSinkName parse(String formattedString) { + return new UntypedSinkName(formattedString); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (UntypedSinkName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return true; + } + + /** Return a map with a single value rawValue keyed on an empty String "". */ + public Map getFieldValuesMap() { + return valueMap; + } + + /** Return the initial rawValue if @param fieldName is an empty String, else return null. */ + public String getFieldValue(String fieldName) { + return valueMap.get(fieldName); + } + + @Override + public String toString() { + return rawValue; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof UntypedSinkName) { + UntypedSinkName that = (UntypedSinkName) o; + return this.rawValue.equals(that.rawValue); + } + return false; + } + + @Override + public int hashCode() { + return rawValue.hashCode(); + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java new file mode 100644 index 000000000000..8d01179360f5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java @@ -0,0 +1,535 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +/** + * + * + *
+ * Options that change functionality of a sink exporting data to BigQuery.
+ * 
+ * + * Protobuf type {@code google.logging.v2.BigQueryOptions} + */ +public final class BigQueryOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.BigQueryOptions) + BigQueryOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryOptions.newBuilder() to construct. + private BigQueryOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryOptions() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BigQueryOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + usePartitionedTables_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.BigQueryOptions.class, + com.google.logging.v2.BigQueryOptions.Builder.class); + } + + public static final int USE_PARTITIONED_TABLES_FIELD_NUMBER = 1; + private boolean usePartitionedTables_; + /** + * + * + *
+   * Optional. Whether to use [BigQuery's partition
+   * tables](/bigquery/docs/partitioned-tables). By default, Logging
+   * creates dated tables based on the log entries' timestamps, e.g.
+   * syslog_20170523. With partitioned tables the date suffix is no longer
+   * present and [special query
+   * 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; + */ + public boolean getUsePartitionedTables() { + return usePartitionedTables_; + } + + 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 (usePartitionedTables_ != false) { + output.writeBool(1, usePartitionedTables_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (usePartitionedTables_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, usePartitionedTables_); + } + 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.BigQueryOptions)) { + return super.equals(obj); + } + com.google.logging.v2.BigQueryOptions other = (com.google.logging.v2.BigQueryOptions) obj; + + if (getUsePartitionedTables() != other.getUsePartitionedTables()) 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) + USE_PARTITIONED_TABLES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsePartitionedTables()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.BigQueryOptions parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.BigQueryOptions 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.BigQueryOptions parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.BigQueryOptions 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.BigQueryOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.BigQueryOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.BigQueryOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.BigQueryOptions 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.BigQueryOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.BigQueryOptions 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.BigQueryOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.BigQueryOptions 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.BigQueryOptions 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; + } + /** + * + * + *
+   * Options that change functionality of a sink exporting data to BigQuery.
+   * 
+ * + * Protobuf type {@code google.logging.v2.BigQueryOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.BigQueryOptions) + com.google.logging.v2.BigQueryOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.BigQueryOptions.class, + com.google.logging.v2.BigQueryOptions.Builder.class); + } + + // Construct using com.google.logging.v2.BigQueryOptions.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(); + usePartitionedTables_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryOptions_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.BigQueryOptions getDefaultInstanceForType() { + return com.google.logging.v2.BigQueryOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.BigQueryOptions build() { + com.google.logging.v2.BigQueryOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.BigQueryOptions buildPartial() { + com.google.logging.v2.BigQueryOptions result = + new com.google.logging.v2.BigQueryOptions(this); + result.usePartitionedTables_ = usePartitionedTables_; + 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.BigQueryOptions) { + return mergeFrom((com.google.logging.v2.BigQueryOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.BigQueryOptions other) { + if (other == com.google.logging.v2.BigQueryOptions.getDefaultInstance()) return this; + if (other.getUsePartitionedTables() != false) { + setUsePartitionedTables(other.getUsePartitionedTables()); + } + 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.BigQueryOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.BigQueryOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean usePartitionedTables_; + /** + * + * + *
+     * Optional. Whether to use [BigQuery's partition
+     * tables](/bigquery/docs/partitioned-tables). By default, Logging
+     * creates dated tables based on the log entries' timestamps, e.g.
+     * syslog_20170523. With partitioned tables the date suffix is no longer
+     * present and [special query
+     * 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; + */ + public boolean getUsePartitionedTables() { + return usePartitionedTables_; + } + /** + * + * + *
+     * Optional. Whether to use [BigQuery's partition
+     * tables](/bigquery/docs/partitioned-tables). By default, Logging
+     * creates dated tables based on the log entries' timestamps, e.g.
+     * syslog_20170523. With partitioned tables the date suffix is no longer
+     * present and [special query
+     * 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; + */ + public Builder setUsePartitionedTables(boolean value) { + + usePartitionedTables_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Whether to use [BigQuery's partition
+     * tables](/bigquery/docs/partitioned-tables). By default, Logging
+     * creates dated tables based on the log entries' timestamps, e.g.
+     * syslog_20170523. With partitioned tables the date suffix is no longer
+     * present and [special query
+     * 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; + */ + public Builder clearUsePartitionedTables() { + + usePartitionedTables_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.logging.v2.BigQueryOptions) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.BigQueryOptions) + private static final com.google.logging.v2.BigQueryOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.BigQueryOptions(); + } + + public static com.google.logging.v2.BigQueryOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQueryOptions(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.BigQueryOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java new file mode 100644 index 000000000000..2528b6d21359 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +public interface BigQueryOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.BigQueryOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Whether to use [BigQuery's partition
+   * tables](/bigquery/docs/partitioned-tables). By default, Logging
+   * creates dated tables based on the log entries' timestamps, e.g.
+   * syslog_20170523. With partitioned tables the date suffix is no longer
+   * present and [special query
+   * 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; + */ + boolean getUsePartitionedTables(); +} diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java index c1c6911f371e..c4a1032cbf24 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java @@ -212,16 +212,15 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { * *
    * Optional. Determines the kind of IAM identity returned as `writer_identity`
-   * in the new sink.  If this value is omitted or set to false, and if the
+   * in the new sink. If this value is omitted or set to false, and if the
    * sink's parent is a project, then the value returned as `writer_identity` is
-   * the same group or service account used by Logging before the
-   * addition of writer identities to this API. The sink's destination must be
-   * in the same project as the sink itself.
+   * the same group or service account used by Logging before the addition of
+   * writer identities to this API. The sink's destination must be in the same
+   * project as the sink itself.
    * If this field is set to true, or if the sink is owned by a non-project
    * resource such as an organization, then the value of `writer_identity` will
-   * be a unique service account used only for exports from the new sink.  For
-   * more information, see `writer_identity` in
-   * [LogSink][google.logging.v2.LogSink].
+   * be a unique service account used only for exports from the new sink. For
+   * more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
    * 
* * bool unique_writer_identity = 3; @@ -896,16 +895,15 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { * *
      * Optional. Determines the kind of IAM identity returned as `writer_identity`
-     * in the new sink.  If this value is omitted or set to false, and if the
+     * in the new sink. If this value is omitted or set to false, and if the
      * sink's parent is a project, then the value returned as `writer_identity` is
-     * the same group or service account used by Logging before the
-     * addition of writer identities to this API. The sink's destination must be
-     * in the same project as the sink itself.
+     * the same group or service account used by Logging before the addition of
+     * writer identities to this API. The sink's destination must be in the same
+     * project as the sink itself.
      * If this field is set to true, or if the sink is owned by a non-project
      * resource such as an organization, then the value of `writer_identity` will
-     * be a unique service account used only for exports from the new sink.  For
-     * more information, see `writer_identity` in
-     * [LogSink][google.logging.v2.LogSink].
+     * be a unique service account used only for exports from the new sink. For
+     * more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
      * 
* * bool unique_writer_identity = 3; @@ -918,16 +916,15 @@ public boolean getUniqueWriterIdentity() { * *
      * Optional. Determines the kind of IAM identity returned as `writer_identity`
-     * in the new sink.  If this value is omitted or set to false, and if the
+     * in the new sink. If this value is omitted or set to false, and if the
      * sink's parent is a project, then the value returned as `writer_identity` is
-     * the same group or service account used by Logging before the
-     * addition of writer identities to this API. The sink's destination must be
-     * in the same project as the sink itself.
+     * the same group or service account used by Logging before the addition of
+     * writer identities to this API. The sink's destination must be in the same
+     * project as the sink itself.
      * If this field is set to true, or if the sink is owned by a non-project
      * resource such as an organization, then the value of `writer_identity` will
-     * be a unique service account used only for exports from the new sink.  For
-     * more information, see `writer_identity` in
-     * [LogSink][google.logging.v2.LogSink].
+     * be a unique service account used only for exports from the new sink. For
+     * more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
      * 
* * bool unique_writer_identity = 3; @@ -943,16 +940,15 @@ public Builder setUniqueWriterIdentity(boolean value) { * *
      * Optional. Determines the kind of IAM identity returned as `writer_identity`
-     * in the new sink.  If this value is omitted or set to false, and if the
+     * in the new sink. If this value is omitted or set to false, and if the
      * sink's parent is a project, then the value returned as `writer_identity` is
-     * the same group or service account used by Logging before the
-     * addition of writer identities to this API. The sink's destination must be
-     * in the same project as the sink itself.
+     * the same group or service account used by Logging before the addition of
+     * writer identities to this API. The sink's destination must be in the same
+     * project as the sink itself.
      * If this field is set to true, or if the sink is owned by a non-project
      * resource such as an organization, then the value of `writer_identity` will
-     * be a unique service account used only for exports from the new sink.  For
-     * more information, see `writer_identity` in
-     * [LogSink][google.logging.v2.LogSink].
+     * be a unique service account used only for exports from the new sink. For
+     * more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
      * 
* * bool unique_writer_identity = 3; diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java index 4cde8bc2132b..eaa1fcafad90 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java @@ -78,16 +78,15 @@ public interface CreateSinkRequestOrBuilder * *
    * Optional. Determines the kind of IAM identity returned as `writer_identity`
-   * in the new sink.  If this value is omitted or set to false, and if the
+   * in the new sink. If this value is omitted or set to false, and if the
    * sink's parent is a project, then the value returned as `writer_identity` is
-   * the same group or service account used by Logging before the
-   * addition of writer identities to this API. The sink's destination must be
-   * in the same project as the sink itself.
+   * the same group or service account used by Logging before the addition of
+   * writer identities to this API. The sink's destination must be in the same
+   * project as the sink itself.
    * If this field is set to true, or if the sink is owned by a non-project
    * resource such as an organization, then the value of `writer_identity` will
-   * be a unique service account used only for exports from the new sink.  For
-   * more information, see `writer_identity` in
-   * [LogSink][google.logging.v2.LogSink].
+   * be a unique service account used only for exports from the new sink. For
+   * more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
    * 
* * bool unique_writer_identity = 3; diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java index a76017f35c1c..71e4c4e31453 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java @@ -162,8 +162,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method.  `pageToken` must be the value of
-   * `nextPageToken` from the previous response.  The values of other method
+   * preceding call to this method. `pageToken` must be the value of
+   * `nextPageToken` from the previous response. The values of other method
    * parameters should be identical to those in the previous call.
    * 
* @@ -185,8 +185,8 @@ public java.lang.String getPageToken() { * *
    * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method.  `pageToken` must be the value of
-   * `nextPageToken` from the previous response.  The values of other method
+   * preceding call to this method. `pageToken` must be the value of
+   * `nextPageToken` from the previous response. The values of other method
    * parameters should be identical to those in the previous call.
    * 
* @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
    * Optional. The maximum number of results to return from this request.
-   * Non-positive values are ignored.  The presence of `nextPageToken` in the
+   * Non-positive values are ignored. The presence of `nextPageToken` in the
    * response indicates that more results might be available.
    * 
* @@ -688,8 +688,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -711,8 +711,8 @@ public java.lang.String getPageToken() { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -734,8 +734,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -755,8 +755,8 @@ public Builder setPageToken(java.lang.String value) { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -773,8 +773,8 @@ public Builder clearPageToken() { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -797,7 +797,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * *
      * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored.  The presence of `nextPageToken` in the
+     * Non-positive values are ignored. The presence of `nextPageToken` in the
      * response indicates that more results might be available.
      * 
* @@ -811,7 +811,7 @@ public int getPageSize() { * *
      * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored.  The presence of `nextPageToken` in the
+     * Non-positive values are ignored. The presence of `nextPageToken` in the
      * response indicates that more results might be available.
      * 
* @@ -828,7 +828,7 @@ public Builder setPageSize(int value) { * *
      * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored.  The presence of `nextPageToken` in the
+     * Non-positive values are ignored. The presence of `nextPageToken` in the
      * response indicates that more results might be available.
      * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java index 33c9afb670bb..ac3dac677b21 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java @@ -42,8 +42,8 @@ public interface ListExclusionsRequestOrBuilder * *
    * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method.  `pageToken` must be the value of
-   * `nextPageToken` from the previous response.  The values of other method
+   * preceding call to this method. `pageToken` must be the value of
+   * `nextPageToken` from the previous response. The values of other method
    * parameters should be identical to those in the previous call.
    * 
* @@ -55,8 +55,8 @@ public interface ListExclusionsRequestOrBuilder * *
    * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method.  `pageToken` must be the value of
-   * `nextPageToken` from the previous response.  The values of other method
+   * preceding call to this method. `pageToken` must be the value of
+   * `nextPageToken` from the previous response. The values of other method
    * parameters should be identical to those in the previous call.
    * 
* @@ -69,7 +69,7 @@ public interface ListExclusionsRequestOrBuilder * *
    * Optional. The maximum number of results to return from this request.
-   * Non-positive values are ignored.  The presence of `nextPageToken` in the
+   * Non-positive values are ignored. The presence of `nextPageToken` in the
    * response indicates that more results might be available.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java index d7c877ad98a3..117381a4abc3 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java @@ -178,7 +178,7 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in * *
    * If there might be more results than appear in this response, then
-   * `nextPageToken` is included.  To get the next set of results, call the same
+   * `nextPageToken` is included. To get the next set of results, call the same
    * method again using the value of `nextPageToken` as `pageToken`.
    * 
* @@ -200,7 +200,7 @@ public java.lang.String getNextPageToken() { * *
    * If there might be more results than appear in this response, then
-   * `nextPageToken` is included.  To get the next set of results, call the same
+   * `nextPageToken` is included. To get the next set of results, call the same
    * method again using the value of `nextPageToken` as `pageToken`.
    * 
* @@ -948,7 +948,7 @@ public java.util.List getExclusionsB * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call the same
+     * `nextPageToken` is included. To get the next set of results, call the same
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* @@ -970,7 +970,7 @@ public java.lang.String getNextPageToken() { * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call the same
+     * `nextPageToken` is included. To get the next set of results, call the same
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* @@ -992,7 +992,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call the same
+     * `nextPageToken` is included. To get the next set of results, call the same
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* @@ -1012,7 +1012,7 @@ public Builder setNextPageToken(java.lang.String value) { * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call the same
+     * `nextPageToken` is included. To get the next set of results, call the same
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* @@ -1029,7 +1029,7 @@ public Builder clearNextPageToken() { * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call the same
+     * `nextPageToken` is included. To get the next set of results, call the same
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java index bc3d8bb57a6e..6f852b2fe955 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java @@ -65,7 +65,7 @@ public interface ListExclusionsResponseOrBuilder * *
    * If there might be more results than appear in this response, then
-   * `nextPageToken` is included.  To get the next set of results, call the same
+   * `nextPageToken` is included. To get the next set of results, call the same
    * method again using the value of `nextPageToken` as `pageToken`.
    * 
* @@ -77,7 +77,7 @@ public interface ListExclusionsResponseOrBuilder * *
    * If there might be more results than appear in this response, then
-   * `nextPageToken` is included.  To get the next set of results, call the same
+   * `nextPageToken` is included. To get the next set of results, call the same
    * method again using the value of `nextPageToken` as `pageToken`.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java index 7f1076b1ab39..0f99c6cbee62 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java @@ -149,9 +149,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Deprecated. Use `resource_names` instead.  One or more project identifiers
    * or project numbers from which to retrieve log entries.  Example:
-   * `"my-project-1A"`. If present, these project identifiers are converted to
-   * resource name format and added to the list of resources in
-   * `resource_names`.
+   * `"my-project-1A"`.
    * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -166,9 +164,7 @@ public com.google.protobuf.ProtocolStringList getProjectIdsList() { *
    * Deprecated. Use `resource_names` instead.  One or more project identifiers
    * or project numbers from which to retrieve log entries.  Example:
-   * `"my-project-1A"`. If present, these project identifiers are converted to
-   * resource name format and added to the list of resources in
-   * `resource_names`.
+   * `"my-project-1A"`.
    * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -183,9 +179,7 @@ public int getProjectIdsCount() { *
    * Deprecated. Use `resource_names` instead.  One or more project identifiers
    * or project numbers from which to retrieve log entries.  Example:
-   * `"my-project-1A"`. If present, these project identifiers are converted to
-   * resource name format and added to the list of resources in
-   * `resource_names`.
+   * `"my-project-1A"`.
    * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -200,9 +194,7 @@ public java.lang.String getProjectIds(int index) { *
    * Deprecated. Use `resource_names` instead.  One or more project identifiers
    * or project numbers from which to retrieve log entries.  Example:
-   * `"my-project-1A"`. If present, these project identifiers are converted to
-   * resource name format and added to the list of resources in
-   * `resource_names`.
+   * `"my-project-1A"`.
    * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -910,9 +902,7 @@ private void ensureProjectIdsIsMutable() { *
      * Deprecated. Use `resource_names` instead.  One or more project identifiers
      * or project numbers from which to retrieve log entries.  Example:
-     * `"my-project-1A"`. If present, these project identifiers are converted to
-     * resource name format and added to the list of resources in
-     * `resource_names`.
+     * `"my-project-1A"`.
      * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -927,9 +917,7 @@ public com.google.protobuf.ProtocolStringList getProjectIdsList() { *
      * Deprecated. Use `resource_names` instead.  One or more project identifiers
      * or project numbers from which to retrieve log entries.  Example:
-     * `"my-project-1A"`. If present, these project identifiers are converted to
-     * resource name format and added to the list of resources in
-     * `resource_names`.
+     * `"my-project-1A"`.
      * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -944,9 +932,7 @@ public int getProjectIdsCount() { *
      * Deprecated. Use `resource_names` instead.  One or more project identifiers
      * or project numbers from which to retrieve log entries.  Example:
-     * `"my-project-1A"`. If present, these project identifiers are converted to
-     * resource name format and added to the list of resources in
-     * `resource_names`.
+     * `"my-project-1A"`.
      * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -961,9 +947,7 @@ public java.lang.String getProjectIds(int index) { *
      * Deprecated. Use `resource_names` instead.  One or more project identifiers
      * or project numbers from which to retrieve log entries.  Example:
-     * `"my-project-1A"`. If present, these project identifiers are converted to
-     * resource name format and added to the list of resources in
-     * `resource_names`.
+     * `"my-project-1A"`.
      * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -978,9 +962,7 @@ public com.google.protobuf.ByteString getProjectIdsBytes(int index) { *
      * Deprecated. Use `resource_names` instead.  One or more project identifiers
      * or project numbers from which to retrieve log entries.  Example:
-     * `"my-project-1A"`. If present, these project identifiers are converted to
-     * resource name format and added to the list of resources in
-     * `resource_names`.
+     * `"my-project-1A"`.
      * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -1001,9 +983,7 @@ public Builder setProjectIds(int index, java.lang.String value) { *
      * Deprecated. Use `resource_names` instead.  One or more project identifiers
      * or project numbers from which to retrieve log entries.  Example:
-     * `"my-project-1A"`. If present, these project identifiers are converted to
-     * resource name format and added to the list of resources in
-     * `resource_names`.
+     * `"my-project-1A"`.
      * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -1024,9 +1004,7 @@ public Builder addProjectIds(java.lang.String value) { *
      * Deprecated. Use `resource_names` instead.  One or more project identifiers
      * or project numbers from which to retrieve log entries.  Example:
-     * `"my-project-1A"`. If present, these project identifiers are converted to
-     * resource name format and added to the list of resources in
-     * `resource_names`.
+     * `"my-project-1A"`.
      * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -1044,9 +1022,7 @@ public Builder addAllProjectIds(java.lang.Iterable values) { *
      * Deprecated. Use `resource_names` instead.  One or more project identifiers
      * or project numbers from which to retrieve log entries.  Example:
-     * `"my-project-1A"`. If present, these project identifiers are converted to
-     * resource name format and added to the list of resources in
-     * `resource_names`.
+     * `"my-project-1A"`.
      * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -1064,9 +1040,7 @@ public Builder clearProjectIds() { *
      * Deprecated. Use `resource_names` instead.  One or more project identifiers
      * or project numbers from which to retrieve log entries.  Example:
-     * `"my-project-1A"`. If present, these project identifiers are converted to
-     * resource name format and added to the list of resources in
-     * `resource_names`.
+     * `"my-project-1A"`.
      * 
* * repeated string project_ids = 1 [deprecated = true]; diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java index 7a51bf43949b..f8621c915e86 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java @@ -14,9 +14,7 @@ public interface ListLogEntriesRequestOrBuilder *
    * Deprecated. Use `resource_names` instead.  One or more project identifiers
    * or project numbers from which to retrieve log entries.  Example:
-   * `"my-project-1A"`. If present, these project identifiers are converted to
-   * resource name format and added to the list of resources in
-   * `resource_names`.
+   * `"my-project-1A"`.
    * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -29,9 +27,7 @@ public interface ListLogEntriesRequestOrBuilder *
    * Deprecated. Use `resource_names` instead.  One or more project identifiers
    * or project numbers from which to retrieve log entries.  Example:
-   * `"my-project-1A"`. If present, these project identifiers are converted to
-   * resource name format and added to the list of resources in
-   * `resource_names`.
+   * `"my-project-1A"`.
    * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -44,9 +40,7 @@ public interface ListLogEntriesRequestOrBuilder *
    * Deprecated. Use `resource_names` instead.  One or more project identifiers
    * or project numbers from which to retrieve log entries.  Example:
-   * `"my-project-1A"`. If present, these project identifiers are converted to
-   * resource name format and added to the list of resources in
-   * `resource_names`.
+   * `"my-project-1A"`.
    * 
* * repeated string project_ids = 1 [deprecated = true]; @@ -59,9 +53,7 @@ public interface ListLogEntriesRequestOrBuilder *
    * Deprecated. Use `resource_names` instead.  One or more project identifiers
    * or project numbers from which to retrieve log entries.  Example:
-   * `"my-project-1A"`. If present, these project identifiers are converted to
-   * resource name format and added to the list of resources in
-   * `resource_names`.
+   * `"my-project-1A"`.
    * 
* * repeated string project_ids = 1 [deprecated = true]; diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java index b5fb76b5e7f1..0c7330d11d46 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java @@ -156,8 +156,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method.  `pageToken` must be the value of
-   * `nextPageToken` from the previous response.  The values of other method
+   * preceding call to this method. `pageToken` must be the value of
+   * `nextPageToken` from the previous response. The values of other method
    * parameters should be identical to those in the previous call.
    * 
* @@ -179,8 +179,8 @@ public java.lang.String getPageToken() { * *
    * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method.  `pageToken` must be the value of
-   * `nextPageToken` from the previous response.  The values of other method
+   * preceding call to this method. `pageToken` must be the value of
+   * `nextPageToken` from the previous response. The values of other method
    * parameters should be identical to those in the previous call.
    * 
* @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
    * Optional. The maximum number of results to return from this request.
-   * Non-positive values are ignored.  The presence of `nextPageToken` in the
+   * Non-positive values are ignored. The presence of `nextPageToken` in the
    * response indicates that more results might be available.
    * 
* @@ -667,8 +667,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -690,8 +690,8 @@ public java.lang.String getPageToken() { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -713,8 +713,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -734,8 +734,8 @@ public Builder setPageToken(java.lang.String value) { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -752,8 +752,8 @@ public Builder clearPageToken() { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -776,7 +776,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * *
      * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored.  The presence of `nextPageToken` in the
+     * Non-positive values are ignored. The presence of `nextPageToken` in the
      * response indicates that more results might be available.
      * 
* @@ -790,7 +790,7 @@ public int getPageSize() { * *
      * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored.  The presence of `nextPageToken` in the
+     * Non-positive values are ignored. The presence of `nextPageToken` in the
      * response indicates that more results might be available.
      * 
* @@ -807,7 +807,7 @@ public Builder setPageSize(int value) { * *
      * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored.  The presence of `nextPageToken` in the
+     * Non-positive values are ignored. The presence of `nextPageToken` in the
      * response indicates that more results might be available.
      * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java index d788fd830689..89103261ec2b 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java @@ -36,8 +36,8 @@ public interface ListLogMetricsRequestOrBuilder * *
    * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method.  `pageToken` must be the value of
-   * `nextPageToken` from the previous response.  The values of other method
+   * preceding call to this method. `pageToken` must be the value of
+   * `nextPageToken` from the previous response. The values of other method
    * parameters should be identical to those in the previous call.
    * 
* @@ -49,8 +49,8 @@ public interface ListLogMetricsRequestOrBuilder * *
    * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method.  `pageToken` must be the value of
-   * `nextPageToken` from the previous response.  The values of other method
+   * preceding call to this method. `pageToken` must be the value of
+   * `nextPageToken` from the previous response. The values of other method
    * parameters should be identical to those in the previous call.
    * 
* @@ -63,7 +63,7 @@ public interface ListLogMetricsRequestOrBuilder * *
    * Optional. The maximum number of results to return from this request.
-   * Non-positive values are ignored.  The presence of `nextPageToken` in the
+   * Non-positive values are ignored. The presence of `nextPageToken` in the
    * response indicates that more results might be available.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java index 28156990d877..bd44ac9e916f 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java @@ -177,7 +177,7 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) { * *
    * If there might be more results than appear in this response, then
-   * `nextPageToken` is included.  To get the next set of results, call this
+   * `nextPageToken` is included. To get the next set of results, call this
    * method again using the value of `nextPageToken` as `pageToken`.
    * 
* @@ -199,7 +199,7 @@ public java.lang.String getNextPageToken() { * *
    * If there might be more results than appear in this response, then
-   * `nextPageToken` is included.  To get the next set of results, call this
+   * `nextPageToken` is included. To get the next set of results, call this
    * method again using the value of `nextPageToken` as `pageToken`.
    * 
* @@ -945,7 +945,7 @@ public java.util.List getMetricsBuilder * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call this
+     * `nextPageToken` is included. To get the next set of results, call this
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* @@ -967,7 +967,7 @@ public java.lang.String getNextPageToken() { * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call this
+     * `nextPageToken` is included. To get the next set of results, call this
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* @@ -989,7 +989,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call this
+     * `nextPageToken` is included. To get the next set of results, call this
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* @@ -1009,7 +1009,7 @@ public Builder setNextPageToken(java.lang.String value) { * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call this
+     * `nextPageToken` is included. To get the next set of results, call this
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* @@ -1026,7 +1026,7 @@ public Builder clearNextPageToken() { * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call this
+     * `nextPageToken` is included. To get the next set of results, call this
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java index d4f7c29fc0ae..9847bf9f5283 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java @@ -64,7 +64,7 @@ public interface ListLogMetricsResponseOrBuilder * *
    * If there might be more results than appear in this response, then
-   * `nextPageToken` is included.  To get the next set of results, call this
+   * `nextPageToken` is included. To get the next set of results, call this
    * method again using the value of `nextPageToken` as `pageToken`.
    * 
* @@ -76,7 +76,7 @@ public interface ListLogMetricsResponseOrBuilder * *
    * If there might be more results than appear in this response, then
-   * `nextPageToken` is included.  To get the next set of results, call this
+   * `nextPageToken` is included. To get the next set of results, call this
    * method again using the value of `nextPageToken` as `pageToken`.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java index 25783b9137ea..920aaed6bb3b 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java @@ -113,8 +113,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * A list of log names. For example,
-   * `"projects/my-project/syslog"` or
-   * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+   * `"projects/my-project/logs/syslog"` or
+   * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
    * 
* * repeated string log_names = 3; @@ -127,8 +127,8 @@ public com.google.protobuf.ProtocolStringList getLogNamesList() { * *
    * A list of log names. For example,
-   * `"projects/my-project/syslog"` or
-   * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+   * `"projects/my-project/logs/syslog"` or
+   * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
    * 
* * repeated string log_names = 3; @@ -141,8 +141,8 @@ public int getLogNamesCount() { * *
    * A list of log names. For example,
-   * `"projects/my-project/syslog"` or
-   * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+   * `"projects/my-project/logs/syslog"` or
+   * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
    * 
* * repeated string log_names = 3; @@ -155,8 +155,8 @@ public java.lang.String getLogNames(int index) { * *
    * A list of log names. For example,
-   * `"projects/my-project/syslog"` or
-   * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+   * `"projects/my-project/logs/syslog"` or
+   * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
    * 
* * repeated string log_names = 3; @@ -579,8 +579,8 @@ private void ensureLogNamesIsMutable() { * *
      * A list of log names. For example,
-     * `"projects/my-project/syslog"` or
-     * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"projects/my-project/logs/syslog"` or
+     * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
      * 
* * repeated string log_names = 3; @@ -593,8 +593,8 @@ public com.google.protobuf.ProtocolStringList getLogNamesList() { * *
      * A list of log names. For example,
-     * `"projects/my-project/syslog"` or
-     * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"projects/my-project/logs/syslog"` or
+     * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
      * 
* * repeated string log_names = 3; @@ -607,8 +607,8 @@ public int getLogNamesCount() { * *
      * A list of log names. For example,
-     * `"projects/my-project/syslog"` or
-     * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"projects/my-project/logs/syslog"` or
+     * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
      * 
* * repeated string log_names = 3; @@ -621,8 +621,8 @@ public java.lang.String getLogNames(int index) { * *
      * A list of log names. For example,
-     * `"projects/my-project/syslog"` or
-     * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"projects/my-project/logs/syslog"` or
+     * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
      * 
* * repeated string log_names = 3; @@ -635,8 +635,8 @@ public com.google.protobuf.ByteString getLogNamesBytes(int index) { * *
      * A list of log names. For example,
-     * `"projects/my-project/syslog"` or
-     * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"projects/my-project/logs/syslog"` or
+     * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
      * 
* * repeated string log_names = 3; @@ -655,8 +655,8 @@ public Builder setLogNames(int index, java.lang.String value) { * *
      * A list of log names. For example,
-     * `"projects/my-project/syslog"` or
-     * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"projects/my-project/logs/syslog"` or
+     * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
      * 
* * repeated string log_names = 3; @@ -675,8 +675,8 @@ public Builder addLogNames(java.lang.String value) { * *
      * A list of log names. For example,
-     * `"projects/my-project/syslog"` or
-     * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"projects/my-project/logs/syslog"` or
+     * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
      * 
* * repeated string log_names = 3; @@ -692,8 +692,8 @@ public Builder addAllLogNames(java.lang.Iterable values) { * *
      * A list of log names. For example,
-     * `"projects/my-project/syslog"` or
-     * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"projects/my-project/logs/syslog"` or
+     * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
      * 
* * repeated string log_names = 3; @@ -709,8 +709,8 @@ public Builder clearLogNames() { * *
      * A list of log names. For example,
-     * `"projects/my-project/syslog"` or
-     * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"projects/my-project/logs/syslog"` or
+     * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
      * 
* * repeated string log_names = 3; diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java index 6c86a332f565..90d3555c8d20 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java @@ -13,8 +13,8 @@ public interface ListLogsResponseOrBuilder * *
    * A list of log names. For example,
-   * `"projects/my-project/syslog"` or
-   * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+   * `"projects/my-project/logs/syslog"` or
+   * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
    * 
* * repeated string log_names = 3; @@ -25,8 +25,8 @@ public interface ListLogsResponseOrBuilder * *
    * A list of log names. For example,
-   * `"projects/my-project/syslog"` or
-   * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+   * `"projects/my-project/logs/syslog"` or
+   * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
    * 
* * repeated string log_names = 3; @@ -37,8 +37,8 @@ public interface ListLogsResponseOrBuilder * *
    * A list of log names. For example,
-   * `"projects/my-project/syslog"` or
-   * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+   * `"projects/my-project/logs/syslog"` or
+   * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
    * 
* * repeated string log_names = 3; @@ -49,8 +49,8 @@ public interface ListLogsResponseOrBuilder * *
    * A list of log names. For example,
-   * `"projects/my-project/syslog"` or
-   * `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+   * `"projects/my-project/logs/syslog"` or
+   * `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
    * 
* * repeated string log_names = 3; diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java index bca587d34d71..1e854e432194 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java @@ -162,8 +162,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method.  `pageToken` must be the value of
-   * `nextPageToken` from the previous response.  The values of other method
+   * preceding call to this method. `pageToken` must be the value of
+   * `nextPageToken` from the previous response. The values of other method
    * parameters should be identical to those in the previous call.
    * 
* @@ -185,8 +185,8 @@ public java.lang.String getPageToken() { * *
    * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method.  `pageToken` must be the value of
-   * `nextPageToken` from the previous response.  The values of other method
+   * preceding call to this method. `pageToken` must be the value of
+   * `nextPageToken` from the previous response. The values of other method
    * parameters should be identical to those in the previous call.
    * 
* @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
    * Optional. The maximum number of results to return from this request.
-   * Non-positive values are ignored.  The presence of `nextPageToken` in the
+   * Non-positive values are ignored. The presence of `nextPageToken` in the
    * response indicates that more results might be available.
    * 
* @@ -687,8 +687,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -710,8 +710,8 @@ public java.lang.String getPageToken() { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -733,8 +733,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -754,8 +754,8 @@ public Builder setPageToken(java.lang.String value) { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -772,8 +772,8 @@ public Builder clearPageToken() { * *
      * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method.  `pageToken` must be the value of
-     * `nextPageToken` from the previous response.  The values of other method
+     * preceding call to this method. `pageToken` must be the value of
+     * `nextPageToken` from the previous response. The values of other method
      * parameters should be identical to those in the previous call.
      * 
* @@ -796,7 +796,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * *
      * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored.  The presence of `nextPageToken` in the
+     * Non-positive values are ignored. The presence of `nextPageToken` in the
      * response indicates that more results might be available.
      * 
* @@ -810,7 +810,7 @@ public int getPageSize() { * *
      * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored.  The presence of `nextPageToken` in the
+     * Non-positive values are ignored. The presence of `nextPageToken` in the
      * response indicates that more results might be available.
      * 
* @@ -827,7 +827,7 @@ public Builder setPageSize(int value) { * *
      * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored.  The presence of `nextPageToken` in the
+     * Non-positive values are ignored. The presence of `nextPageToken` in the
      * response indicates that more results might be available.
      * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java index 721772dba728..2ab3028d7c11 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java @@ -42,8 +42,8 @@ public interface ListSinksRequestOrBuilder * *
    * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method.  `pageToken` must be the value of
-   * `nextPageToken` from the previous response.  The values of other method
+   * preceding call to this method. `pageToken` must be the value of
+   * `nextPageToken` from the previous response. The values of other method
    * parameters should be identical to those in the previous call.
    * 
* @@ -55,8 +55,8 @@ public interface ListSinksRequestOrBuilder * *
    * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method.  `pageToken` must be the value of
-   * `nextPageToken` from the previous response.  The values of other method
+   * preceding call to this method. `pageToken` must be the value of
+   * `nextPageToken` from the previous response. The values of other method
    * parameters should be identical to those in the previous call.
    * 
* @@ -69,7 +69,7 @@ public interface ListSinksRequestOrBuilder * *
    * Optional. The maximum number of results to return from this request.
-   * Non-positive values are ignored.  The presence of `nextPageToken` in the
+   * Non-positive values are ignored. The presence of `nextPageToken` in the
    * response indicates that more results might be available.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java index 6c05069f849b..6bf4a77c1380 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java @@ -176,7 +176,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) { * *
    * If there might be more results than appear in this response, then
-   * `nextPageToken` is included.  To get the next set of results, call the same
+   * `nextPageToken` is included. To get the next set of results, call the same
    * method again using the value of `nextPageToken` as `pageToken`.
    * 
* @@ -198,7 +198,7 @@ public java.lang.String getNextPageToken() { * *
    * If there might be more results than appear in this response, then
-   * `nextPageToken` is included.  To get the next set of results, call the same
+   * `nextPageToken` is included. To get the next set of results, call the same
    * method again using the value of `nextPageToken` as `pageToken`.
    * 
* @@ -941,7 +941,7 @@ public java.util.List getSinksBuilderList * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call the same
+     * `nextPageToken` is included. To get the next set of results, call the same
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* @@ -963,7 +963,7 @@ public java.lang.String getNextPageToken() { * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call the same
+     * `nextPageToken` is included. To get the next set of results, call the same
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* @@ -985,7 +985,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call the same
+     * `nextPageToken` is included. To get the next set of results, call the same
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* @@ -1005,7 +1005,7 @@ public Builder setNextPageToken(java.lang.String value) { * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call the same
+     * `nextPageToken` is included. To get the next set of results, call the same
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* @@ -1022,7 +1022,7 @@ public Builder clearNextPageToken() { * *
      * If there might be more results than appear in this response, then
-     * `nextPageToken` is included.  To get the next set of results, call the same
+     * `nextPageToken` is included. To get the next set of results, call the same
      * method again using the value of `nextPageToken` as `pageToken`.
      * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java index 0b0e275374b4..bec2101aaf80 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java @@ -64,7 +64,7 @@ public interface ListSinksResponseOrBuilder * *
    * If there might be more results than appear in this response, then
-   * `nextPageToken` is included.  To get the next set of results, call the same
+   * `nextPageToken` is included. To get the next set of results, call the same
    * method again using the value of `nextPageToken` as `pageToken`.
    * 
* @@ -76,7 +76,7 @@ public interface ListSinksResponseOrBuilder * *
    * If there might be more results than appear in this response, then
-   * `nextPageToken` is included.  To get the next set of results, call the same
+   * `nextPageToken` is included. To get the next set of results, call the same
    * method again using the value of `nextPageToken` as `pageToken`.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java index 9750a7ec2b01..dcaea400b603 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java @@ -350,9 +350,9 @@ public PayloadCase getPayloadCase() { * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" * "folders/[FOLDER_ID]/logs/[LOG_ID]" - * A project number may optionally be used in place of PROJECT_ID. The - * project number is translated to its corresponding PROJECT_ID internally - * and the `log_name` field will contain PROJECT_ID in queries and exports. + * A project number may optionally be used in place of PROJECT_ID. The project + * number is translated to its corresponding PROJECT_ID internally and the + * `log_name` field will contain PROJECT_ID in queries and exports. * `[LOG_ID]` must be URL-encoded within `log_name`. Example: * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. * `[LOG_ID]` must be less than 512 characters long and can only include the @@ -387,9 +387,9 @@ public java.lang.String getLogName() { * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" * "folders/[FOLDER_ID]/logs/[LOG_ID]" - * A project number may optionally be used in place of PROJECT_ID. The - * project number is translated to its corresponding PROJECT_ID internally - * and the `log_name` field will contain PROJECT_ID in queries and exports. + * A project number may optionally be used in place of PROJECT_ID. The project + * number is translated to its corresponding PROJECT_ID internally and the + * `log_name` field will contain PROJECT_ID in queries and exports. * `[LOG_ID]` must be URL-encoded within `log_name`. Example: * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. * `[LOG_ID]` must be less than 512 characters long and can only include the @@ -422,10 +422,10 @@ public com.google.protobuf.ByteString getLogNameBytes() { * * *
-   * Required. The primary monitored resource associated with this log entry.
-   * Example: a log entry that reports a database error would be
-   * associated with the monitored resource designating the particular
-   * database that reported the error.
+   * Required. The monitored resource that produced this log entry.
+   * Example: a log entry that reports a database error would be associated with
+   * the monitored resource designating the particular database that reported
+   * the error.
    * 
* * .google.api.MonitoredResource resource = 8; @@ -437,10 +437,10 @@ public boolean hasResource() { * * *
-   * Required. The primary monitored resource associated with this log entry.
-   * Example: a log entry that reports a database error would be
-   * associated with the monitored resource designating the particular
-   * database that reported the error.
+   * Required. The monitored resource that produced this log entry.
+   * Example: a log entry that reports a database error would be associated with
+   * the monitored resource designating the particular database that reported
+   * the error.
    * 
* * .google.api.MonitoredResource resource = 8; @@ -452,10 +452,10 @@ public com.google.api.MonitoredResource getResource() { * * *
-   * Required. The primary monitored resource associated with this log entry.
-   * Example: a log entry that reports a database error would be
-   * associated with the monitored resource designating the particular
-   * database that reported the error.
+   * Required. The monitored resource that produced this log entry.
+   * Example: a log entry that reports a database error would be associated with
+   * the monitored resource designating the particular database that reported
+   * the error.
    * 
* * .google.api.MonitoredResource resource = 8; @@ -469,9 +469,12 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { * * *
-   * The log entry payload, represented as a protocol buffer.  Some
-   * Google Cloud Platform services use this field for their log
-   * entry payloads.
+   * The log entry payload, represented as a protocol buffer. Some Google
+   * Cloud Platform services use this field for their log entry payloads.
+   * The following protocol buffer types are supported; user-defined types
+   * are not supported:
+   *   "type.googleapis.com/google.cloud.audit.AuditLog"
+   *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
    * 
* * .google.protobuf.Any proto_payload = 2; @@ -483,9 +486,12 @@ public boolean hasProtoPayload() { * * *
-   * The log entry payload, represented as a protocol buffer.  Some
-   * Google Cloud Platform services use this field for their log
-   * entry payloads.
+   * The log entry payload, represented as a protocol buffer. Some Google
+   * Cloud Platform services use this field for their log entry payloads.
+   * The following protocol buffer types are supported; user-defined types
+   * are not supported:
+   *   "type.googleapis.com/google.cloud.audit.AuditLog"
+   *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
    * 
* * .google.protobuf.Any proto_payload = 2; @@ -500,9 +506,12 @@ public com.google.protobuf.Any getProtoPayload() { * * *
-   * The log entry payload, represented as a protocol buffer.  Some
-   * Google Cloud Platform services use this field for their log
-   * entry payloads.
+   * The log entry payload, represented as a protocol buffer. Some Google
+   * Cloud Platform services use this field for their log entry payloads.
+   * The following protocol buffer types are supported; user-defined types
+   * are not supported:
+   *   "type.googleapis.com/google.cloud.audit.AuditLog"
+   *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
    * 
* * .google.protobuf.Any proto_payload = 2; @@ -619,18 +628,17 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() { * * *
-   * Optional. The time the event described by the log entry occurred.
-   * This time is used to compute the log entry's age and to enforce
-   * the logs retention period. If this field is omitted in a new log
-   * entry, then Logging assigns it the current time.
-   * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-   * seconds might be omitted when the timestamp is displayed.
-   * Incoming log entries should have timestamps that are no more than
-   * the [logs retention period](/logging/quotas) in the past,
-   * and no more than 24 hours in the future. Log entries outside those time
-   * boundaries will not be available when calling `entries.list`, but
-   * those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * Optional. The time the event described by the log entry occurred.  This
+   * time is used to compute the log entry's age and to enforce the logs
+   * retention period. If this field is omitted in a new log entry, then Logging
+   * assigns it the current time.  Timestamps have nanosecond accuracy, but
+   * trailing zeros in the fractional seconds might be omitted when the
+   * timestamp is displayed.
+   * Incoming log entries should have timestamps that are no more than the [logs
+   * retention period](/logging/quotas) in the past, and no more than 24 hours
+   * in the future. Log entries outside those time boundaries will not be
+   * available when calling `entries.list`, but those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -642,18 +650,17 @@ public boolean hasTimestamp() { * * *
-   * Optional. The time the event described by the log entry occurred.
-   * This time is used to compute the log entry's age and to enforce
-   * the logs retention period. If this field is omitted in a new log
-   * entry, then Logging assigns it the current time.
-   * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-   * seconds might be omitted when the timestamp is displayed.
-   * Incoming log entries should have timestamps that are no more than
-   * the [logs retention period](/logging/quotas) in the past,
-   * and no more than 24 hours in the future. Log entries outside those time
-   * boundaries will not be available when calling `entries.list`, but
-   * those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * Optional. The time the event described by the log entry occurred.  This
+   * time is used to compute the log entry's age and to enforce the logs
+   * retention period. If this field is omitted in a new log entry, then Logging
+   * assigns it the current time.  Timestamps have nanosecond accuracy, but
+   * trailing zeros in the fractional seconds might be omitted when the
+   * timestamp is displayed.
+   * Incoming log entries should have timestamps that are no more than the [logs
+   * retention period](/logging/quotas) in the past, and no more than 24 hours
+   * in the future. Log entries outside those time boundaries will not be
+   * available when calling `entries.list`, but those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -665,18 +672,17 @@ public com.google.protobuf.Timestamp getTimestamp() { * * *
-   * Optional. The time the event described by the log entry occurred.
-   * This time is used to compute the log entry's age and to enforce
-   * the logs retention period. If this field is omitted in a new log
-   * entry, then Logging assigns it the current time.
-   * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-   * seconds might be omitted when the timestamp is displayed.
-   * Incoming log entries should have timestamps that are no more than
-   * the [logs retention period](/logging/quotas) in the past,
-   * and no more than 24 hours in the future. Log entries outside those time
-   * boundaries will not be available when calling `entries.list`, but
-   * those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * Optional. The time the event described by the log entry occurred.  This
+   * time is used to compute the log entry's age and to enforce the logs
+   * retention period. If this field is omitted in a new log entry, then Logging
+   * assigns it the current time.  Timestamps have nanosecond accuracy, but
+   * trailing zeros in the fractional seconds might be omitted when the
+   * timestamp is displayed.
+   * Incoming log entries should have timestamps that are no more than the [logs
+   * retention period](/logging/quotas) in the past, and no more than 24 hours
+   * in the future. Log entries outside those time boundaries will not be
+   * available when calling `entries.list`, but those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -765,11 +771,11 @@ 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.
+   * 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.
    * 
* * string insert_id = 4; @@ -790,11 +796,11 @@ 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.
+   * 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.
    * 
* * string insert_id = 4; @@ -817,8 +823,8 @@ public com.google.protobuf.ByteString getInsertIdBytes() { * * *
-   * Optional. Information about the HTTP request associated with this
-   * log entry, if applicable.
+   * Optional. Information about the HTTP request associated with this log
+   * entry, if applicable.
    * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -830,8 +836,8 @@ public boolean hasHttpRequest() { * * *
-   * Optional. Information about the HTTP request associated with this
-   * log entry, if applicable.
+   * Optional. Information about the HTTP request associated with this log
+   * entry, if applicable.
    * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -845,8 +851,8 @@ public com.google.logging.type.HttpRequest getHttpRequest() { * * *
-   * Optional. Information about the HTTP request associated with this
-   * log entry, if applicable.
+   * Optional. Information about the HTTP request associated with this log
+   * entry, if applicable.
    * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -958,13 +964,19 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
-   * Output only. Additional metadata about the monitored resource.
+   * Deprecated. Output only. Additional metadata about the monitored resource.
    * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-   * this field populated.
+   * this field populated for GKE versions older than 1.12.6. For GKE versions
+   * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+   * pod labels that used to be in `metadata.userLabels` will now be present in
+   * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+   * labels that were present in the `metadata.systemLabels` field will no
+   * longer be available in the LogEntry.
    * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated public boolean hasMetadata() { return metadata_ != null; } @@ -972,13 +984,19 @@ public boolean hasMetadata() { * * *
-   * Output only. Additional metadata about the monitored resource.
+   * Deprecated. Output only. Additional metadata about the monitored resource.
    * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-   * this field populated.
+   * this field populated for GKE versions older than 1.12.6. For GKE versions
+   * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+   * pod labels that used to be in `metadata.userLabels` will now be present in
+   * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+   * labels that were present in the `metadata.systemLabels` field will no
+   * longer be available in the LogEntry.
    * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated public com.google.api.MonitoredResourceMetadata getMetadata() { return metadata_ == null ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() @@ -988,13 +1006,19 @@ public com.google.api.MonitoredResourceMetadata getMetadata() { * * *
-   * Output only. Additional metadata about the monitored resource.
+   * Deprecated. Output only. Additional metadata about the monitored resource.
    * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-   * this field populated.
+   * this field populated for GKE versions older than 1.12.6. For GKE versions
+   * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+   * pod labels that used to be in `metadata.userLabels` will now be present in
+   * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+   * labels that were present in the `metadata.systemLabels` field will no
+   * longer be available in the LogEntry.
    * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder() { return getMetadata(); } @@ -1099,9 +1123,9 @@ public com.google.protobuf.ByteString getTraceBytes() { * *
    * Optional. The span ID within the trace associated with the log entry.
-   * For Trace spans, this is the same format that the Trace
-   * API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such
-   * as <code>"000000000000004a"</code>.
+   * For Trace spans, this is the same format that the Trace API v2 uses: a
+   * 16-character hexadecimal encoding of an 8-byte array, such as
+   * <code>"000000000000004a"</code>.
    * 
* * string span_id = 27; @@ -1122,9 +1146,9 @@ public java.lang.String getSpanId() { * *
    * Optional. The span ID within the trace associated with the log entry.
-   * For Trace spans, this is the same format that the Trace
-   * API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such
-   * as <code>"000000000000004a"</code>.
+   * For Trace spans, this is the same format that the Trace API v2 uses: a
+   * 16-character hexadecimal encoding of an 8-byte array, such as
+   * <code>"000000000000004a"</code>.
    * 
* * string span_id = 27; @@ -1956,9 +1980,9 @@ public Builder clearPayload() { * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" * "folders/[FOLDER_ID]/logs/[LOG_ID]" - * A project number may optionally be used in place of PROJECT_ID. The - * project number is translated to its corresponding PROJECT_ID internally - * and the `log_name` field will contain PROJECT_ID in queries and exports. + * A project number may optionally be used in place of PROJECT_ID. The project + * number is translated to its corresponding PROJECT_ID internally and the + * `log_name` field will contain PROJECT_ID in queries and exports. * `[LOG_ID]` must be URL-encoded within `log_name`. Example: * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. * `[LOG_ID]` must be less than 512 characters long and can only include the @@ -1993,9 +2017,9 @@ public java.lang.String getLogName() { * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" * "folders/[FOLDER_ID]/logs/[LOG_ID]" - * A project number may optionally be used in place of PROJECT_ID. The - * project number is translated to its corresponding PROJECT_ID internally - * and the `log_name` field will contain PROJECT_ID in queries and exports. + * A project number may optionally be used in place of PROJECT_ID. The project + * number is translated to its corresponding PROJECT_ID internally and the + * `log_name` field will contain PROJECT_ID in queries and exports. * `[LOG_ID]` must be URL-encoded within `log_name`. Example: * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. * `[LOG_ID]` must be less than 512 characters long and can only include the @@ -2030,9 +2054,9 @@ public com.google.protobuf.ByteString getLogNameBytes() { * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" * "folders/[FOLDER_ID]/logs/[LOG_ID]" - * A project number may optionally be used in place of PROJECT_ID. The - * project number is translated to its corresponding PROJECT_ID internally - * and the `log_name` field will contain PROJECT_ID in queries and exports. + * A project number may optionally be used in place of PROJECT_ID. The project + * number is translated to its corresponding PROJECT_ID internally and the + * `log_name` field will contain PROJECT_ID in queries and exports. * `[LOG_ID]` must be URL-encoded within `log_name`. Example: * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. * `[LOG_ID]` must be less than 512 characters long and can only include the @@ -2065,9 +2089,9 @@ public Builder setLogName(java.lang.String value) { * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" * "folders/[FOLDER_ID]/logs/[LOG_ID]" - * A project number may optionally be used in place of PROJECT_ID. The - * project number is translated to its corresponding PROJECT_ID internally - * and the `log_name` field will contain PROJECT_ID in queries and exports. + * A project number may optionally be used in place of PROJECT_ID. The project + * number is translated to its corresponding PROJECT_ID internally and the + * `log_name` field will contain PROJECT_ID in queries and exports. * `[LOG_ID]` must be URL-encoded within `log_name`. Example: * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. * `[LOG_ID]` must be less than 512 characters long and can only include the @@ -2097,9 +2121,9 @@ public Builder clearLogName() { * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" * "folders/[FOLDER_ID]/logs/[LOG_ID]" - * A project number may optionally be used in place of PROJECT_ID. The - * project number is translated to its corresponding PROJECT_ID internally - * and the `log_name` field will contain PROJECT_ID in queries and exports. + * A project number may optionally be used in place of PROJECT_ID. The project + * number is translated to its corresponding PROJECT_ID internally and the + * `log_name` field will contain PROJECT_ID in queries and exports. * `[LOG_ID]` must be URL-encoded within `log_name`. Example: * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. * `[LOG_ID]` must be less than 512 characters long and can only include the @@ -2135,10 +2159,10 @@ public Builder setLogNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The primary monitored resource associated with this log entry.
-     * Example: a log entry that reports a database error would be
-     * associated with the monitored resource designating the particular
-     * database that reported the error.
+     * Required. The monitored resource that produced this log entry.
+     * Example: a log entry that reports a database error would be associated with
+     * the monitored resource designating the particular database that reported
+     * the error.
      * 
* * .google.api.MonitoredResource resource = 8; @@ -2150,10 +2174,10 @@ public boolean hasResource() { * * *
-     * Required. The primary monitored resource associated with this log entry.
-     * Example: a log entry that reports a database error would be
-     * associated with the monitored resource designating the particular
-     * database that reported the error.
+     * Required. The monitored resource that produced this log entry.
+     * Example: a log entry that reports a database error would be associated with
+     * the monitored resource designating the particular database that reported
+     * the error.
      * 
* * .google.api.MonitoredResource resource = 8; @@ -2171,10 +2195,10 @@ public com.google.api.MonitoredResource getResource() { * * *
-     * Required. The primary monitored resource associated with this log entry.
-     * Example: a log entry that reports a database error would be
-     * associated with the monitored resource designating the particular
-     * database that reported the error.
+     * Required. The monitored resource that produced this log entry.
+     * Example: a log entry that reports a database error would be associated with
+     * the monitored resource designating the particular database that reported
+     * the error.
      * 
* * .google.api.MonitoredResource resource = 8; @@ -2196,10 +2220,10 @@ public Builder setResource(com.google.api.MonitoredResource value) { * * *
-     * Required. The primary monitored resource associated with this log entry.
-     * Example: a log entry that reports a database error would be
-     * associated with the monitored resource designating the particular
-     * database that reported the error.
+     * Required. The monitored resource that produced this log entry.
+     * Example: a log entry that reports a database error would be associated with
+     * the monitored resource designating the particular database that reported
+     * the error.
      * 
* * .google.api.MonitoredResource resource = 8; @@ -2218,10 +2242,10 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa * * *
-     * Required. The primary monitored resource associated with this log entry.
-     * Example: a log entry that reports a database error would be
-     * associated with the monitored resource designating the particular
-     * database that reported the error.
+     * Required. The monitored resource that produced this log entry.
+     * Example: a log entry that reports a database error would be associated with
+     * the monitored resource designating the particular database that reported
+     * the error.
      * 
* * .google.api.MonitoredResource resource = 8; @@ -2247,10 +2271,10 @@ public Builder mergeResource(com.google.api.MonitoredResource value) { * * *
-     * Required. The primary monitored resource associated with this log entry.
-     * Example: a log entry that reports a database error would be
-     * associated with the monitored resource designating the particular
-     * database that reported the error.
+     * Required. The monitored resource that produced this log entry.
+     * Example: a log entry that reports a database error would be associated with
+     * the monitored resource designating the particular database that reported
+     * the error.
      * 
* * .google.api.MonitoredResource resource = 8; @@ -2270,10 +2294,10 @@ public Builder clearResource() { * * *
-     * Required. The primary monitored resource associated with this log entry.
-     * Example: a log entry that reports a database error would be
-     * associated with the monitored resource designating the particular
-     * database that reported the error.
+     * Required. The monitored resource that produced this log entry.
+     * Example: a log entry that reports a database error would be associated with
+     * the monitored resource designating the particular database that reported
+     * the error.
      * 
* * .google.api.MonitoredResource resource = 8; @@ -2287,10 +2311,10 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() { * * *
-     * Required. The primary monitored resource associated with this log entry.
-     * Example: a log entry that reports a database error would be
-     * associated with the monitored resource designating the particular
-     * database that reported the error.
+     * Required. The monitored resource that produced this log entry.
+     * Example: a log entry that reports a database error would be associated with
+     * the monitored resource designating the particular database that reported
+     * the error.
      * 
* * .google.api.MonitoredResource resource = 8; @@ -2308,10 +2332,10 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { * * *
-     * Required. The primary monitored resource associated with this log entry.
-     * Example: a log entry that reports a database error would be
-     * associated with the monitored resource designating the particular
-     * database that reported the error.
+     * Required. The monitored resource that produced this log entry.
+     * Example: a log entry that reports a database error would be associated with
+     * the monitored resource designating the particular database that reported
+     * the error.
      * 
* * .google.api.MonitoredResource resource = 8; @@ -2342,9 +2366,12 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { * * *
-     * The log entry payload, represented as a protocol buffer.  Some
-     * Google Cloud Platform services use this field for their log
-     * entry payloads.
+     * The log entry payload, represented as a protocol buffer. Some Google
+     * Cloud Platform services use this field for their log entry payloads.
+     * The following protocol buffer types are supported; user-defined types
+     * are not supported:
+     *   "type.googleapis.com/google.cloud.audit.AuditLog"
+     *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
      * 
* * .google.protobuf.Any proto_payload = 2; @@ -2356,9 +2383,12 @@ public boolean hasProtoPayload() { * * *
-     * The log entry payload, represented as a protocol buffer.  Some
-     * Google Cloud Platform services use this field for their log
-     * entry payloads.
+     * The log entry payload, represented as a protocol buffer. Some Google
+     * Cloud Platform services use this field for their log entry payloads.
+     * The following protocol buffer types are supported; user-defined types
+     * are not supported:
+     *   "type.googleapis.com/google.cloud.audit.AuditLog"
+     *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
      * 
* * .google.protobuf.Any proto_payload = 2; @@ -2380,9 +2410,12 @@ public com.google.protobuf.Any getProtoPayload() { * * *
-     * The log entry payload, represented as a protocol buffer.  Some
-     * Google Cloud Platform services use this field for their log
-     * entry payloads.
+     * The log entry payload, represented as a protocol buffer. Some Google
+     * Cloud Platform services use this field for their log entry payloads.
+     * The following protocol buffer types are supported; user-defined types
+     * are not supported:
+     *   "type.googleapis.com/google.cloud.audit.AuditLog"
+     *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
      * 
* * .google.protobuf.Any proto_payload = 2; @@ -2404,9 +2437,12 @@ public Builder setProtoPayload(com.google.protobuf.Any value) { * * *
-     * The log entry payload, represented as a protocol buffer.  Some
-     * Google Cloud Platform services use this field for their log
-     * entry payloads.
+     * The log entry payload, represented as a protocol buffer. Some Google
+     * Cloud Platform services use this field for their log entry payloads.
+     * The following protocol buffer types are supported; user-defined types
+     * are not supported:
+     *   "type.googleapis.com/google.cloud.audit.AuditLog"
+     *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
      * 
* * .google.protobuf.Any proto_payload = 2; @@ -2425,9 +2461,12 @@ public Builder setProtoPayload(com.google.protobuf.Any.Builder builderForValue) * * *
-     * The log entry payload, represented as a protocol buffer.  Some
-     * Google Cloud Platform services use this field for their log
-     * entry payloads.
+     * The log entry payload, represented as a protocol buffer. Some Google
+     * Cloud Platform services use this field for their log entry payloads.
+     * The following protocol buffer types are supported; user-defined types
+     * are not supported:
+     *   "type.googleapis.com/google.cloud.audit.AuditLog"
+     *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
      * 
* * .google.protobuf.Any proto_payload = 2; @@ -2456,9 +2495,12 @@ public Builder mergeProtoPayload(com.google.protobuf.Any value) { * * *
-     * The log entry payload, represented as a protocol buffer.  Some
-     * Google Cloud Platform services use this field for their log
-     * entry payloads.
+     * The log entry payload, represented as a protocol buffer. Some Google
+     * Cloud Platform services use this field for their log entry payloads.
+     * The following protocol buffer types are supported; user-defined types
+     * are not supported:
+     *   "type.googleapis.com/google.cloud.audit.AuditLog"
+     *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
      * 
* * .google.protobuf.Any proto_payload = 2; @@ -2483,9 +2525,12 @@ public Builder clearProtoPayload() { * * *
-     * The log entry payload, represented as a protocol buffer.  Some
-     * Google Cloud Platform services use this field for their log
-     * entry payloads.
+     * The log entry payload, represented as a protocol buffer. Some Google
+     * Cloud Platform services use this field for their log entry payloads.
+     * The following protocol buffer types are supported; user-defined types
+     * are not supported:
+     *   "type.googleapis.com/google.cloud.audit.AuditLog"
+     *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
      * 
* * .google.protobuf.Any proto_payload = 2; @@ -2497,9 +2542,12 @@ public com.google.protobuf.Any.Builder getProtoPayloadBuilder() { * * *
-     * The log entry payload, represented as a protocol buffer.  Some
-     * Google Cloud Platform services use this field for their log
-     * entry payloads.
+     * The log entry payload, represented as a protocol buffer. Some Google
+     * Cloud Platform services use this field for their log entry payloads.
+     * The following protocol buffer types are supported; user-defined types
+     * are not supported:
+     *   "type.googleapis.com/google.cloud.audit.AuditLog"
+     *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
      * 
* * .google.protobuf.Any proto_payload = 2; @@ -2518,9 +2566,12 @@ public com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder() { * * *
-     * The log entry payload, represented as a protocol buffer.  Some
-     * Google Cloud Platform services use this field for their log
-     * entry payloads.
+     * The log entry payload, represented as a protocol buffer. Some Google
+     * Cloud Platform services use this field for their log entry payloads.
+     * The following protocol buffer types are supported; user-defined types
+     * are not supported:
+     *   "type.googleapis.com/google.cloud.audit.AuditLog"
+     *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
      * 
* * .google.protobuf.Any proto_payload = 2; @@ -2869,18 +2920,17 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() { * * *
-     * Optional. The time the event described by the log entry occurred.
-     * This time is used to compute the log entry's age and to enforce
-     * the logs retention period. If this field is omitted in a new log
-     * entry, then Logging assigns it the current time.
-     * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-     * seconds might be omitted when the timestamp is displayed.
-     * Incoming log entries should have timestamps that are no more than
-     * the [logs retention period](/logging/quotas) in the past,
-     * and no more than 24 hours in the future. Log entries outside those time
-     * boundaries will not be available when calling `entries.list`, but
-     * those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * Optional. The time the event described by the log entry occurred.  This
+     * time is used to compute the log entry's age and to enforce the logs
+     * retention period. If this field is omitted in a new log entry, then Logging
+     * assigns it the current time.  Timestamps have nanosecond accuracy, but
+     * trailing zeros in the fractional seconds might be omitted when the
+     * timestamp is displayed.
+     * Incoming log entries should have timestamps that are no more than the [logs
+     * retention period](/logging/quotas) in the past, and no more than 24 hours
+     * in the future. Log entries outside those time boundaries will not be
+     * available when calling `entries.list`, but those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -2892,18 +2942,17 @@ public boolean hasTimestamp() { * * *
-     * Optional. The time the event described by the log entry occurred.
-     * This time is used to compute the log entry's age and to enforce
-     * the logs retention period. If this field is omitted in a new log
-     * entry, then Logging assigns it the current time.
-     * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-     * seconds might be omitted when the timestamp is displayed.
-     * Incoming log entries should have timestamps that are no more than
-     * the [logs retention period](/logging/quotas) in the past,
-     * and no more than 24 hours in the future. Log entries outside those time
-     * boundaries will not be available when calling `entries.list`, but
-     * those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * Optional. The time the event described by the log entry occurred.  This
+     * time is used to compute the log entry's age and to enforce the logs
+     * retention period. If this field is omitted in a new log entry, then Logging
+     * assigns it the current time.  Timestamps have nanosecond accuracy, but
+     * trailing zeros in the fractional seconds might be omitted when the
+     * timestamp is displayed.
+     * Incoming log entries should have timestamps that are no more than the [logs
+     * retention period](/logging/quotas) in the past, and no more than 24 hours
+     * in the future. Log entries outside those time boundaries will not be
+     * available when calling `entries.list`, but those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -2919,18 +2968,17 @@ public com.google.protobuf.Timestamp getTimestamp() { * * *
-     * Optional. The time the event described by the log entry occurred.
-     * This time is used to compute the log entry's age and to enforce
-     * the logs retention period. If this field is omitted in a new log
-     * entry, then Logging assigns it the current time.
-     * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-     * seconds might be omitted when the timestamp is displayed.
-     * Incoming log entries should have timestamps that are no more than
-     * the [logs retention period](/logging/quotas) in the past,
-     * and no more than 24 hours in the future. Log entries outside those time
-     * boundaries will not be available when calling `entries.list`, but
-     * those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * Optional. The time the event described by the log entry occurred.  This
+     * time is used to compute the log entry's age and to enforce the logs
+     * retention period. If this field is omitted in a new log entry, then Logging
+     * assigns it the current time.  Timestamps have nanosecond accuracy, but
+     * trailing zeros in the fractional seconds might be omitted when the
+     * timestamp is displayed.
+     * Incoming log entries should have timestamps that are no more than the [logs
+     * retention period](/logging/quotas) in the past, and no more than 24 hours
+     * in the future. Log entries outside those time boundaries will not be
+     * available when calling `entries.list`, but those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -2952,18 +3000,17 @@ public Builder setTimestamp(com.google.protobuf.Timestamp value) { * * *
-     * Optional. The time the event described by the log entry occurred.
-     * This time is used to compute the log entry's age and to enforce
-     * the logs retention period. If this field is omitted in a new log
-     * entry, then Logging assigns it the current time.
-     * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-     * seconds might be omitted when the timestamp is displayed.
-     * Incoming log entries should have timestamps that are no more than
-     * the [logs retention period](/logging/quotas) in the past,
-     * and no more than 24 hours in the future. Log entries outside those time
-     * boundaries will not be available when calling `entries.list`, but
-     * those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * Optional. The time the event described by the log entry occurred.  This
+     * time is used to compute the log entry's age and to enforce the logs
+     * retention period. If this field is omitted in a new log entry, then Logging
+     * assigns it the current time.  Timestamps have nanosecond accuracy, but
+     * trailing zeros in the fractional seconds might be omitted when the
+     * timestamp is displayed.
+     * Incoming log entries should have timestamps that are no more than the [logs
+     * retention period](/logging/quotas) in the past, and no more than 24 hours
+     * in the future. Log entries outside those time boundaries will not be
+     * available when calling `entries.list`, but those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -2982,18 +3029,17 @@ public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValu * * *
-     * Optional. The time the event described by the log entry occurred.
-     * This time is used to compute the log entry's age and to enforce
-     * the logs retention period. If this field is omitted in a new log
-     * entry, then Logging assigns it the current time.
-     * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-     * seconds might be omitted when the timestamp is displayed.
-     * Incoming log entries should have timestamps that are no more than
-     * the [logs retention period](/logging/quotas) in the past,
-     * and no more than 24 hours in the future. Log entries outside those time
-     * boundaries will not be available when calling `entries.list`, but
-     * those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * Optional. The time the event described by the log entry occurred.  This
+     * time is used to compute the log entry's age and to enforce the logs
+     * retention period. If this field is omitted in a new log entry, then Logging
+     * assigns it the current time.  Timestamps have nanosecond accuracy, but
+     * trailing zeros in the fractional seconds might be omitted when the
+     * timestamp is displayed.
+     * Incoming log entries should have timestamps that are no more than the [logs
+     * retention period](/logging/quotas) in the past, and no more than 24 hours
+     * in the future. Log entries outside those time boundaries will not be
+     * available when calling `entries.list`, but those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -3017,18 +3063,17 @@ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { * * *
-     * Optional. The time the event described by the log entry occurred.
-     * This time is used to compute the log entry's age and to enforce
-     * the logs retention period. If this field is omitted in a new log
-     * entry, then Logging assigns it the current time.
-     * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-     * seconds might be omitted when the timestamp is displayed.
-     * Incoming log entries should have timestamps that are no more than
-     * the [logs retention period](/logging/quotas) in the past,
-     * and no more than 24 hours in the future. Log entries outside those time
-     * boundaries will not be available when calling `entries.list`, but
-     * those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * Optional. The time the event described by the log entry occurred.  This
+     * time is used to compute the log entry's age and to enforce the logs
+     * retention period. If this field is omitted in a new log entry, then Logging
+     * assigns it the current time.  Timestamps have nanosecond accuracy, but
+     * trailing zeros in the fractional seconds might be omitted when the
+     * timestamp is displayed.
+     * Incoming log entries should have timestamps that are no more than the [logs
+     * retention period](/logging/quotas) in the past, and no more than 24 hours
+     * in the future. Log entries outside those time boundaries will not be
+     * available when calling `entries.list`, but those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -3048,18 +3093,17 @@ public Builder clearTimestamp() { * * *
-     * Optional. The time the event described by the log entry occurred.
-     * This time is used to compute the log entry's age and to enforce
-     * the logs retention period. If this field is omitted in a new log
-     * entry, then Logging assigns it the current time.
-     * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-     * seconds might be omitted when the timestamp is displayed.
-     * Incoming log entries should have timestamps that are no more than
-     * the [logs retention period](/logging/quotas) in the past,
-     * and no more than 24 hours in the future. Log entries outside those time
-     * boundaries will not be available when calling `entries.list`, but
-     * those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * Optional. The time the event described by the log entry occurred.  This
+     * time is used to compute the log entry's age and to enforce the logs
+     * retention period. If this field is omitted in a new log entry, then Logging
+     * assigns it the current time.  Timestamps have nanosecond accuracy, but
+     * trailing zeros in the fractional seconds might be omitted when the
+     * timestamp is displayed.
+     * Incoming log entries should have timestamps that are no more than the [logs
+     * retention period](/logging/quotas) in the past, and no more than 24 hours
+     * in the future. Log entries outside those time boundaries will not be
+     * available when calling `entries.list`, but those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -3073,18 +3117,17 @@ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { * * *
-     * Optional. The time the event described by the log entry occurred.
-     * This time is used to compute the log entry's age and to enforce
-     * the logs retention period. If this field is omitted in a new log
-     * entry, then Logging assigns it the current time.
-     * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-     * seconds might be omitted when the timestamp is displayed.
-     * Incoming log entries should have timestamps that are no more than
-     * the [logs retention period](/logging/quotas) in the past,
-     * and no more than 24 hours in the future. Log entries outside those time
-     * boundaries will not be available when calling `entries.list`, but
-     * those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * Optional. The time the event described by the log entry occurred.  This
+     * time is used to compute the log entry's age and to enforce the logs
+     * retention period. If this field is omitted in a new log entry, then Logging
+     * assigns it the current time.  Timestamps have nanosecond accuracy, but
+     * trailing zeros in the fractional seconds might be omitted when the
+     * timestamp is displayed.
+     * Incoming log entries should have timestamps that are no more than the [logs
+     * retention period](/logging/quotas) in the past, and no more than 24 hours
+     * in the future. Log entries outside those time boundaries will not be
+     * available when calling `entries.list`, but those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -3100,18 +3143,17 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { * * *
-     * Optional. The time the event described by the log entry occurred.
-     * This time is used to compute the log entry's age and to enforce
-     * the logs retention period. If this field is omitted in a new log
-     * entry, then Logging assigns it the current time.
-     * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-     * seconds might be omitted when the timestamp is displayed.
-     * Incoming log entries should have timestamps that are no more than
-     * the [logs retention period](/logging/quotas) in the past,
-     * and no more than 24 hours in the future. Log entries outside those time
-     * boundaries will not be available when calling `entries.list`, but
-     * those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * Optional. The time the event described by the log entry occurred.  This
+     * time is used to compute the log entry's age and to enforce the logs
+     * retention period. If this field is omitted in a new log entry, then Logging
+     * assigns it the current time.  Timestamps have nanosecond accuracy, but
+     * trailing zeros in the fractional seconds might be omitted when the
+     * timestamp is displayed.
+     * Incoming log entries should have timestamps that are no more than the [logs
+     * retention period](/logging/quotas) in the past, and no more than 24 hours
+     * in the future. Log entries outside those time boundaries will not be
+     * available when calling `entries.list`, but those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -3401,11 +3443,11 @@ 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.
+     * 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.
      * 
* * string insert_id = 4; @@ -3426,11 +3468,11 @@ 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.
+     * 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.
      * 
* * string insert_id = 4; @@ -3451,11 +3493,11 @@ 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.
+     * 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.
      * 
* * string insert_id = 4; @@ -3474,11 +3516,11 @@ 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.
+     * 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.
      * 
* * string insert_id = 4; @@ -3494,11 +3536,11 @@ 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.
+     * 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.
      * 
* * string insert_id = 4; @@ -3524,8 +3566,8 @@ public Builder setInsertIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Information about the HTTP request associated with this
-     * log entry, if applicable.
+     * Optional. Information about the HTTP request associated with this log
+     * entry, if applicable.
      * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -3537,8 +3579,8 @@ public boolean hasHttpRequest() { * * *
-     * Optional. Information about the HTTP request associated with this
-     * log entry, if applicable.
+     * Optional. Information about the HTTP request associated with this log
+     * entry, if applicable.
      * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -3556,8 +3598,8 @@ public com.google.logging.type.HttpRequest getHttpRequest() { * * *
-     * Optional. Information about the HTTP request associated with this
-     * log entry, if applicable.
+     * Optional. Information about the HTTP request associated with this log
+     * entry, if applicable.
      * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -3579,8 +3621,8 @@ public Builder setHttpRequest(com.google.logging.type.HttpRequest value) { * * *
-     * Optional. Information about the HTTP request associated with this
-     * log entry, if applicable.
+     * Optional. Information about the HTTP request associated with this log
+     * entry, if applicable.
      * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -3599,8 +3641,8 @@ public Builder setHttpRequest(com.google.logging.type.HttpRequest.Builder builde * * *
-     * Optional. Information about the HTTP request associated with this
-     * log entry, if applicable.
+     * Optional. Information about the HTTP request associated with this log
+     * entry, if applicable.
      * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -3626,8 +3668,8 @@ public Builder mergeHttpRequest(com.google.logging.type.HttpRequest value) { * * *
-     * Optional. Information about the HTTP request associated with this
-     * log entry, if applicable.
+     * Optional. Information about the HTTP request associated with this log
+     * entry, if applicable.
      * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -3647,8 +3689,8 @@ public Builder clearHttpRequest() { * * *
-     * Optional. Information about the HTTP request associated with this
-     * log entry, if applicable.
+     * Optional. Information about the HTTP request associated with this log
+     * entry, if applicable.
      * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -3662,8 +3704,8 @@ public com.google.logging.type.HttpRequest.Builder getHttpRequestBuilder() { * * *
-     * Optional. Information about the HTTP request associated with this
-     * log entry, if applicable.
+     * Optional. Information about the HTTP request associated with this log
+     * entry, if applicable.
      * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -3681,8 +3723,8 @@ public com.google.logging.type.HttpRequestOrBuilder getHttpRequestOrBuilder() { * * *
-     * Optional. Information about the HTTP request associated with this
-     * log entry, if applicable.
+     * Optional. Information about the HTTP request associated with this log
+     * entry, if applicable.
      * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -3873,13 +3915,19 @@ public Builder putAllLabels(java.util.Map va * * *
-     * Output only. Additional metadata about the monitored resource.
+     * Deprecated. Output only. Additional metadata about the monitored resource.
      * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-     * this field populated.
+     * this field populated for GKE versions older than 1.12.6. For GKE versions
+     * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+     * pod labels that used to be in `metadata.userLabels` will now be present in
+     * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+     * labels that were present in the `metadata.systemLabels` field will no
+     * longer be available in the LogEntry.
      * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } @@ -3887,13 +3935,19 @@ public boolean hasMetadata() { * * *
-     * Output only. Additional metadata about the monitored resource.
+     * Deprecated. Output only. Additional metadata about the monitored resource.
      * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-     * this field populated.
+     * this field populated for GKE versions older than 1.12.6. For GKE versions
+     * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+     * pod labels that used to be in `metadata.userLabels` will now be present in
+     * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+     * labels that were present in the `metadata.systemLabels` field will no
+     * longer be available in the LogEntry.
      * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated public com.google.api.MonitoredResourceMetadata getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null @@ -3907,13 +3961,19 @@ public com.google.api.MonitoredResourceMetadata getMetadata() { * * *
-     * Output only. Additional metadata about the monitored resource.
+     * Deprecated. Output only. Additional metadata about the monitored resource.
      * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-     * this field populated.
+     * this field populated for GKE versions older than 1.12.6. For GKE versions
+     * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+     * pod labels that used to be in `metadata.userLabels` will now be present in
+     * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+     * labels that were present in the `metadata.systemLabels` field will no
+     * longer be available in the LogEntry.
      * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated public Builder setMetadata(com.google.api.MonitoredResourceMetadata value) { if (metadataBuilder_ == null) { if (value == null) { @@ -3931,13 +3991,19 @@ public Builder setMetadata(com.google.api.MonitoredResourceMetadata value) { * * *
-     * Output only. Additional metadata about the monitored resource.
+     * Deprecated. Output only. Additional metadata about the monitored resource.
      * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-     * this field populated.
+     * this field populated for GKE versions older than 1.12.6. For GKE versions
+     * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+     * pod labels that used to be in `metadata.userLabels` will now be present in
+     * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+     * labels that were present in the `metadata.systemLabels` field will no
+     * longer be available in the LogEntry.
      * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated public Builder setMetadata(com.google.api.MonitoredResourceMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); @@ -3952,13 +4018,19 @@ public Builder setMetadata(com.google.api.MonitoredResourceMetadata.Builder buil * * *
-     * Output only. Additional metadata about the monitored resource.
+     * Deprecated. Output only. Additional metadata about the monitored resource.
      * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-     * this field populated.
+     * this field populated for GKE versions older than 1.12.6. For GKE versions
+     * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+     * pod labels that used to be in `metadata.userLabels` will now be present in
+     * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+     * labels that were present in the `metadata.systemLabels` field will no
+     * longer be available in the LogEntry.
      * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated public Builder mergeMetadata(com.google.api.MonitoredResourceMetadata value) { if (metadataBuilder_ == null) { if (metadata_ != null) { @@ -3980,13 +4052,19 @@ public Builder mergeMetadata(com.google.api.MonitoredResourceMetadata value) { * * *
-     * Output only. Additional metadata about the monitored resource.
+     * Deprecated. Output only. Additional metadata about the monitored resource.
      * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-     * this field populated.
+     * this field populated for GKE versions older than 1.12.6. For GKE versions
+     * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+     * pod labels that used to be in `metadata.userLabels` will now be present in
+     * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+     * labels that were present in the `metadata.systemLabels` field will no
+     * longer be available in the LogEntry.
      * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; @@ -4002,13 +4080,19 @@ public Builder clearMetadata() { * * *
-     * Output only. Additional metadata about the monitored resource.
+     * Deprecated. Output only. Additional metadata about the monitored resource.
      * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-     * this field populated.
+     * this field populated for GKE versions older than 1.12.6. For GKE versions
+     * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+     * pod labels that used to be in `metadata.userLabels` will now be present in
+     * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+     * labels that were present in the `metadata.systemLabels` field will no
+     * longer be available in the LogEntry.
      * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated public com.google.api.MonitoredResourceMetadata.Builder getMetadataBuilder() { onChanged(); @@ -4018,13 +4102,19 @@ public com.google.api.MonitoredResourceMetadata.Builder getMetadataBuilder() { * * *
-     * Output only. Additional metadata about the monitored resource.
+     * Deprecated. Output only. Additional metadata about the monitored resource.
      * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-     * this field populated.
+     * this field populated for GKE versions older than 1.12.6. For GKE versions
+     * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+     * pod labels that used to be in `metadata.userLabels` will now be present in
+     * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+     * labels that were present in the `metadata.systemLabels` field will no
+     * longer be available in the LogEntry.
      * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); @@ -4038,12 +4128,17 @@ public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder() * * *
-     * Output only. Additional metadata about the monitored resource.
+     * Deprecated. Output only. Additional metadata about the monitored resource.
      * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-     * this field populated.
+     * this field populated for GKE versions older than 1.12.6. For GKE versions
+     * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+     * pod labels that used to be in `metadata.userLabels` will now be present in
+     * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+     * labels that were present in the `metadata.systemLabels` field will no
+     * longer be available in the LogEntry.
      * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.MonitoredResourceMetadata, @@ -4367,9 +4462,9 @@ public Builder setTraceBytes(com.google.protobuf.ByteString value) { * *
      * Optional. The span ID within the trace associated with the log entry.
-     * For Trace spans, this is the same format that the Trace
-     * API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such
-     * as <code>"000000000000004a"</code>.
+     * For Trace spans, this is the same format that the Trace API v2 uses: a
+     * 16-character hexadecimal encoding of an 8-byte array, such as
+     * <code>"000000000000004a"</code>.
      * 
* * string span_id = 27; @@ -4390,9 +4485,9 @@ public java.lang.String getSpanId() { * *
      * Optional. The span ID within the trace associated with the log entry.
-     * For Trace spans, this is the same format that the Trace
-     * API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such
-     * as <code>"000000000000004a"</code>.
+     * For Trace spans, this is the same format that the Trace API v2 uses: a
+     * 16-character hexadecimal encoding of an 8-byte array, such as
+     * <code>"000000000000004a"</code>.
      * 
* * string span_id = 27; @@ -4413,9 +4508,9 @@ public com.google.protobuf.ByteString getSpanIdBytes() { * *
      * Optional. The span ID within the trace associated with the log entry.
-     * For Trace spans, this is the same format that the Trace
-     * API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such
-     * as <code>"000000000000004a"</code>.
+     * For Trace spans, this is the same format that the Trace API v2 uses: a
+     * 16-character hexadecimal encoding of an 8-byte array, such as
+     * <code>"000000000000004a"</code>.
      * 
* * string span_id = 27; @@ -4434,9 +4529,9 @@ public Builder setSpanId(java.lang.String value) { * *
      * Optional. The span ID within the trace associated with the log entry.
-     * For Trace spans, this is the same format that the Trace
-     * API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such
-     * as <code>"000000000000004a"</code>.
+     * For Trace spans, this is the same format that the Trace API v2 uses: a
+     * 16-character hexadecimal encoding of an 8-byte array, such as
+     * <code>"000000000000004a"</code>.
      * 
* * string span_id = 27; @@ -4452,9 +4547,9 @@ public Builder clearSpanId() { * *
      * Optional. The span ID within the trace associated with the log entry.
-     * For Trace spans, this is the same format that the Trace
-     * API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such
-     * as <code>"000000000000004a"</code>.
+     * For Trace spans, this is the same format that the Trace API v2 uses: a
+     * 16-character hexadecimal encoding of an 8-byte array, such as
+     * <code>"000000000000004a"</code>.
      * 
* * string span_id = 27; diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java index aedee00024a1..c793a71e33da 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java @@ -116,8 +116,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional. An arbitrary operation identifier. Log entries with the
-   * same identifier are assumed to be part of the same operation.
+   * Optional. An arbitrary operation identifier. Log entries with the same
+   * identifier are assumed to be part of the same operation.
    * 
* * string id = 1; @@ -137,8 +137,8 @@ public java.lang.String getId() { * * *
-   * Optional. An arbitrary operation identifier. Log entries with the
-   * same identifier are assumed to be part of the same operation.
+   * Optional. An arbitrary operation identifier. Log entries with the same
+   * identifier are assumed to be part of the same operation.
    * 
* * string id = 1; @@ -161,8 +161,8 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-   * Optional. An arbitrary producer identifier. The combination of
-   * `id` and `producer` must be globally unique.  Examples for `producer`:
+   * Optional. An arbitrary producer identifier. The combination of `id` and
+   * `producer` must be globally unique. Examples for `producer`:
    * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
    * 
* @@ -183,8 +183,8 @@ public java.lang.String getProducer() { * * *
-   * Optional. An arbitrary producer identifier. The combination of
-   * `id` and `producer` must be globally unique.  Examples for `producer`:
+   * Optional. An arbitrary producer identifier. The combination of `id` and
+   * `producer` must be globally unique. Examples for `producer`:
    * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
    * 
* @@ -599,8 +599,8 @@ public Builder mergeFrom( * * *
-     * Optional. An arbitrary operation identifier. Log entries with the
-     * same identifier are assumed to be part of the same operation.
+     * Optional. An arbitrary operation identifier. Log entries with the same
+     * identifier are assumed to be part of the same operation.
      * 
* * string id = 1; @@ -620,8 +620,8 @@ public java.lang.String getId() { * * *
-     * Optional. An arbitrary operation identifier. Log entries with the
-     * same identifier are assumed to be part of the same operation.
+     * Optional. An arbitrary operation identifier. Log entries with the same
+     * identifier are assumed to be part of the same operation.
      * 
* * string id = 1; @@ -641,8 +641,8 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-     * Optional. An arbitrary operation identifier. Log entries with the
-     * same identifier are assumed to be part of the same operation.
+     * Optional. An arbitrary operation identifier. Log entries with the same
+     * identifier are assumed to be part of the same operation.
      * 
* * string id = 1; @@ -660,8 +660,8 @@ public Builder setId(java.lang.String value) { * * *
-     * Optional. An arbitrary operation identifier. Log entries with the
-     * same identifier are assumed to be part of the same operation.
+     * Optional. An arbitrary operation identifier. Log entries with the same
+     * identifier are assumed to be part of the same operation.
      * 
* * string id = 1; @@ -676,8 +676,8 @@ public Builder clearId() { * * *
-     * Optional. An arbitrary operation identifier. Log entries with the
-     * same identifier are assumed to be part of the same operation.
+     * Optional. An arbitrary operation identifier. Log entries with the same
+     * identifier are assumed to be part of the same operation.
      * 
* * string id = 1; @@ -698,8 +698,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. An arbitrary producer identifier. The combination of
-     * `id` and `producer` must be globally unique.  Examples for `producer`:
+     * Optional. An arbitrary producer identifier. The combination of `id` and
+     * `producer` must be globally unique. Examples for `producer`:
      * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
      * 
* @@ -720,8 +720,8 @@ public java.lang.String getProducer() { * * *
-     * Optional. An arbitrary producer identifier. The combination of
-     * `id` and `producer` must be globally unique.  Examples for `producer`:
+     * Optional. An arbitrary producer identifier. The combination of `id` and
+     * `producer` must be globally unique. Examples for `producer`:
      * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
      * 
* @@ -742,8 +742,8 @@ public com.google.protobuf.ByteString getProducerBytes() { * * *
-     * Optional. An arbitrary producer identifier. The combination of
-     * `id` and `producer` must be globally unique.  Examples for `producer`:
+     * Optional. An arbitrary producer identifier. The combination of `id` and
+     * `producer` must be globally unique. Examples for `producer`:
      * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
      * 
* @@ -762,8 +762,8 @@ public Builder setProducer(java.lang.String value) { * * *
-     * Optional. An arbitrary producer identifier. The combination of
-     * `id` and `producer` must be globally unique.  Examples for `producer`:
+     * Optional. An arbitrary producer identifier. The combination of `id` and
+     * `producer` must be globally unique. Examples for `producer`:
      * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
      * 
* @@ -779,8 +779,8 @@ public Builder clearProducer() { * * *
-     * Optional. An arbitrary producer identifier. The combination of
-     * `id` and `producer` must be globally unique.  Examples for `producer`:
+     * Optional. An arbitrary producer identifier. The combination of `id` and
+     * `producer` must be globally unique. Examples for `producer`:
      * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
      * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java index 038c1194af53..30cd194d7ea7 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java @@ -12,8 +12,8 @@ public interface LogEntryOperationOrBuilder * * *
-   * Optional. An arbitrary operation identifier. Log entries with the
-   * same identifier are assumed to be part of the same operation.
+   * Optional. An arbitrary operation identifier. Log entries with the same
+   * identifier are assumed to be part of the same operation.
    * 
* * string id = 1; @@ -23,8 +23,8 @@ public interface LogEntryOperationOrBuilder * * *
-   * Optional. An arbitrary operation identifier. Log entries with the
-   * same identifier are assumed to be part of the same operation.
+   * Optional. An arbitrary operation identifier. Log entries with the same
+   * identifier are assumed to be part of the same operation.
    * 
* * string id = 1; @@ -35,8 +35,8 @@ public interface LogEntryOperationOrBuilder * * *
-   * Optional. An arbitrary producer identifier. The combination of
-   * `id` and `producer` must be globally unique.  Examples for `producer`:
+   * Optional. An arbitrary producer identifier. The combination of `id` and
+   * `producer` must be globally unique. Examples for `producer`:
    * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
    * 
* @@ -47,8 +47,8 @@ public interface LogEntryOperationOrBuilder * * *
-   * Optional. An arbitrary producer identifier. The combination of
-   * `id` and `producer` must be globally unique.  Examples for `producer`:
+   * Optional. An arbitrary producer identifier. The combination of `id` and
+   * `producer` must be globally unique. Examples for `producer`:
    * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java index 574f4c9e4ff8..a463506d13a0 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java @@ -17,9 +17,9 @@ public interface LogEntryOrBuilder * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" * "folders/[FOLDER_ID]/logs/[LOG_ID]" - * A project number may optionally be used in place of PROJECT_ID. The - * project number is translated to its corresponding PROJECT_ID internally - * and the `log_name` field will contain PROJECT_ID in queries and exports. + * A project number may optionally be used in place of PROJECT_ID. The project + * number is translated to its corresponding PROJECT_ID internally and the + * `log_name` field will contain PROJECT_ID in queries and exports. * `[LOG_ID]` must be URL-encoded within `log_name`. Example: * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. * `[LOG_ID]` must be less than 512 characters long and can only include the @@ -44,9 +44,9 @@ public interface LogEntryOrBuilder * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" * "folders/[FOLDER_ID]/logs/[LOG_ID]" - * A project number may optionally be used in place of PROJECT_ID. The - * project number is translated to its corresponding PROJECT_ID internally - * and the `log_name` field will contain PROJECT_ID in queries and exports. + * A project number may optionally be used in place of PROJECT_ID. The project + * number is translated to its corresponding PROJECT_ID internally and the + * `log_name` field will contain PROJECT_ID in queries and exports. * `[LOG_ID]` must be URL-encoded within `log_name`. Example: * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. * `[LOG_ID]` must be less than 512 characters long and can only include the @@ -67,10 +67,10 @@ public interface LogEntryOrBuilder * * *
-   * Required. The primary monitored resource associated with this log entry.
-   * Example: a log entry that reports a database error would be
-   * associated with the monitored resource designating the particular
-   * database that reported the error.
+   * Required. The monitored resource that produced this log entry.
+   * Example: a log entry that reports a database error would be associated with
+   * the monitored resource designating the particular database that reported
+   * the error.
    * 
* * .google.api.MonitoredResource resource = 8; @@ -80,10 +80,10 @@ public interface LogEntryOrBuilder * * *
-   * Required. The primary monitored resource associated with this log entry.
-   * Example: a log entry that reports a database error would be
-   * associated with the monitored resource designating the particular
-   * database that reported the error.
+   * Required. The monitored resource that produced this log entry.
+   * Example: a log entry that reports a database error would be associated with
+   * the monitored resource designating the particular database that reported
+   * the error.
    * 
* * .google.api.MonitoredResource resource = 8; @@ -93,10 +93,10 @@ public interface LogEntryOrBuilder * * *
-   * Required. The primary monitored resource associated with this log entry.
-   * Example: a log entry that reports a database error would be
-   * associated with the monitored resource designating the particular
-   * database that reported the error.
+   * Required. The monitored resource that produced this log entry.
+   * Example: a log entry that reports a database error would be associated with
+   * the monitored resource designating the particular database that reported
+   * the error.
    * 
* * .google.api.MonitoredResource resource = 8; @@ -107,9 +107,12 @@ public interface LogEntryOrBuilder * * *
-   * The log entry payload, represented as a protocol buffer.  Some
-   * Google Cloud Platform services use this field for their log
-   * entry payloads.
+   * The log entry payload, represented as a protocol buffer. Some Google
+   * Cloud Platform services use this field for their log entry payloads.
+   * The following protocol buffer types are supported; user-defined types
+   * are not supported:
+   *   "type.googleapis.com/google.cloud.audit.AuditLog"
+   *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
    * 
* * .google.protobuf.Any proto_payload = 2; @@ -119,9 +122,12 @@ public interface LogEntryOrBuilder * * *
-   * The log entry payload, represented as a protocol buffer.  Some
-   * Google Cloud Platform services use this field for their log
-   * entry payloads.
+   * The log entry payload, represented as a protocol buffer. Some Google
+   * Cloud Platform services use this field for their log entry payloads.
+   * The following protocol buffer types are supported; user-defined types
+   * are not supported:
+   *   "type.googleapis.com/google.cloud.audit.AuditLog"
+   *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
    * 
* * .google.protobuf.Any proto_payload = 2; @@ -131,9 +137,12 @@ public interface LogEntryOrBuilder * * *
-   * The log entry payload, represented as a protocol buffer.  Some
-   * Google Cloud Platform services use this field for their log
-   * entry payloads.
+   * The log entry payload, represented as a protocol buffer. Some Google
+   * Cloud Platform services use this field for their log entry payloads.
+   * The following protocol buffer types are supported; user-defined types
+   * are not supported:
+   *   "type.googleapis.com/google.cloud.audit.AuditLog"
+   *   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
    * 
* * .google.protobuf.Any proto_payload = 2; @@ -199,18 +208,17 @@ public interface LogEntryOrBuilder * * *
-   * Optional. The time the event described by the log entry occurred.
-   * This time is used to compute the log entry's age and to enforce
-   * the logs retention period. If this field is omitted in a new log
-   * entry, then Logging assigns it the current time.
-   * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-   * seconds might be omitted when the timestamp is displayed.
-   * Incoming log entries should have timestamps that are no more than
-   * the [logs retention period](/logging/quotas) in the past,
-   * and no more than 24 hours in the future. Log entries outside those time
-   * boundaries will not be available when calling `entries.list`, but
-   * those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * Optional. The time the event described by the log entry occurred.  This
+   * time is used to compute the log entry's age and to enforce the logs
+   * retention period. If this field is omitted in a new log entry, then Logging
+   * assigns it the current time.  Timestamps have nanosecond accuracy, but
+   * trailing zeros in the fractional seconds might be omitted when the
+   * timestamp is displayed.
+   * Incoming log entries should have timestamps that are no more than the [logs
+   * retention period](/logging/quotas) in the past, and no more than 24 hours
+   * in the future. Log entries outside those time boundaries will not be
+   * available when calling `entries.list`, but those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -220,18 +228,17 @@ public interface LogEntryOrBuilder * * *
-   * Optional. The time the event described by the log entry occurred.
-   * This time is used to compute the log entry's age and to enforce
-   * the logs retention period. If this field is omitted in a new log
-   * entry, then Logging assigns it the current time.
-   * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-   * seconds might be omitted when the timestamp is displayed.
-   * Incoming log entries should have timestamps that are no more than
-   * the [logs retention period](/logging/quotas) in the past,
-   * and no more than 24 hours in the future. Log entries outside those time
-   * boundaries will not be available when calling `entries.list`, but
-   * those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * Optional. The time the event described by the log entry occurred.  This
+   * time is used to compute the log entry's age and to enforce the logs
+   * retention period. If this field is omitted in a new log entry, then Logging
+   * assigns it the current time.  Timestamps have nanosecond accuracy, but
+   * trailing zeros in the fractional seconds might be omitted when the
+   * timestamp is displayed.
+   * Incoming log entries should have timestamps that are no more than the [logs
+   * retention period](/logging/quotas) in the past, and no more than 24 hours
+   * in the future. Log entries outside those time boundaries will not be
+   * available when calling `entries.list`, but those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -241,18 +248,17 @@ public interface LogEntryOrBuilder * * *
-   * Optional. The time the event described by the log entry occurred.
-   * This time is used to compute the log entry's age and to enforce
-   * the logs retention period. If this field is omitted in a new log
-   * entry, then Logging assigns it the current time.
-   * Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-   * seconds might be omitted when the timestamp is displayed.
-   * Incoming log entries should have timestamps that are no more than
-   * the [logs retention period](/logging/quotas) in the past,
-   * and no more than 24 hours in the future. Log entries outside those time
-   * boundaries will not be available when calling `entries.list`, but
-   * those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * Optional. The time the event described by the log entry occurred.  This
+   * time is used to compute the log entry's age and to enforce the logs
+   * retention period. If this field is omitted in a new log entry, then Logging
+   * assigns it the current time.  Timestamps have nanosecond accuracy, but
+   * trailing zeros in the fractional seconds might be omitted when the
+   * timestamp is displayed.
+   * Incoming log entries should have timestamps that are no more than the [logs
+   * retention period](/logging/quotas) in the past, and no more than 24 hours
+   * in the future. Log entries outside those time boundaries will not be
+   * available when calling `entries.list`, but those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * 
* * .google.protobuf.Timestamp timestamp = 9; @@ -318,11 +324,11 @@ 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.
+   * 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.
    * 
* * string insert_id = 4; @@ -333,11 +339,11 @@ 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.
+   * 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.
    * 
* * string insert_id = 4; @@ -348,8 +354,8 @@ public interface LogEntryOrBuilder * * *
-   * Optional. Information about the HTTP request associated with this
-   * log entry, if applicable.
+   * Optional. Information about the HTTP request associated with this log
+   * entry, if applicable.
    * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -359,8 +365,8 @@ public interface LogEntryOrBuilder * * *
-   * Optional. Information about the HTTP request associated with this
-   * log entry, if applicable.
+   * Optional. Information about the HTTP request associated with this log
+   * entry, if applicable.
    * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -370,8 +376,8 @@ public interface LogEntryOrBuilder * * *
-   * Optional. Information about the HTTP request associated with this
-   * log entry, if applicable.
+   * Optional. Information about the HTTP request associated with this log
+   * entry, if applicable.
    * 
* * .google.logging.type.HttpRequest http_request = 7; @@ -441,37 +447,55 @@ public interface LogEntryOrBuilder * * *
-   * Output only. Additional metadata about the monitored resource.
+   * Deprecated. Output only. Additional metadata about the monitored resource.
    * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-   * this field populated.
+   * this field populated for GKE versions older than 1.12.6. For GKE versions
+   * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+   * pod labels that used to be in `metadata.userLabels` will now be present in
+   * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+   * labels that were present in the `metadata.systemLabels` field will no
+   * longer be available in the LogEntry.
    * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated boolean hasMetadata(); /** * * *
-   * Output only. Additional metadata about the monitored resource.
+   * Deprecated. Output only. Additional metadata about the monitored resource.
    * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-   * this field populated.
+   * this field populated for GKE versions older than 1.12.6. For GKE versions
+   * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+   * pod labels that used to be in `metadata.userLabels` will now be present in
+   * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+   * labels that were present in the `metadata.systemLabels` field will no
+   * longer be available in the LogEntry.
    * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated com.google.api.MonitoredResourceMetadata getMetadata(); /** * * *
-   * Output only. Additional metadata about the monitored resource.
+   * Deprecated. Output only. Additional metadata about the monitored resource.
    * Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-   * this field populated.
+   * this field populated for GKE versions older than 1.12.6. For GKE versions
+   * 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+   * pod labels that used to be in `metadata.userLabels` will now be present in
+   * the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+   * labels that were present in the `metadata.systemLabels` field will no
+   * longer be available in the LogEntry.
    * 
* - * .google.api.MonitoredResourceMetadata metadata = 25; + * .google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true]; */ + @java.lang.Deprecated com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder(); /** @@ -540,9 +564,9 @@ public interface LogEntryOrBuilder * *
    * Optional. The span ID within the trace associated with the log entry.
-   * For Trace spans, this is the same format that the Trace
-   * API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such
-   * as <code>"000000000000004a"</code>.
+   * For Trace spans, this is the same format that the Trace API v2 uses: a
+   * 16-character hexadecimal encoding of an 8-byte array, such as
+   * <code>"000000000000004a"</code>.
    * 
* * string span_id = 27; @@ -553,9 +577,9 @@ public interface LogEntryOrBuilder * *
    * Optional. The span ID within the trace associated with the log entry.
-   * For Trace spans, this is the same format that the Trace
-   * API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such
-   * as <code>"000000000000004a"</code>.
+   * For Trace spans, this is the same format that the Trace API v2 uses: a
+   * 16-character hexadecimal encoding of an 8-byte array, such as
+   * <code>"000000000000004a"</code>.
    * 
* * string span_id = 27; diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java index 34e3b490a702..ad4795fa2380 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java @@ -38,40 +38,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n!google/logging/v2/log_entry.proto\022\021goo" - + "gle.logging.v2\032\034google/api/annotations.p" - + "roto\032#google/api/monitored_resource.prot" - + "o\032&google/logging/type/http_request.prot" - + "o\032&google/logging/type/log_severity.prot" - + "o\032\031google/protobuf/any.proto\032\034google/pro" - + "tobuf/struct.proto\032\037google/protobuf/time" - + "stamp.proto\"\212\006\n\010LogEntry\022\020\n\010log_name\030\014 \001" - + "(\t\022/\n\010resource\030\010 \001(\0132\035.google.api.Monito" - + "redResource\022-\n\rproto_payload\030\002 \001(\0132\024.goo" - + "gle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001(\t" - + "H\000\022/\n\014json_payload\030\006 \001(\0132\027.google.protob" - + "uf.StructH\000\022-\n\ttimestamp\030\t \001(\0132\032.google." - + "protobuf.Timestamp\0225\n\021receive_timestamp\030" - + "\030 \001(\0132\032.google.protobuf.Timestamp\0222\n\010sev" - + "erity\030\n \001(\0162 .google.logging.type.LogSev" - + "erity\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.Log" - + "Entry.LabelsEntry\0227\n\010metadata\030\031 \001(\0132%.go" - + "ogle.api.MonitoredResourceMetadata\0227\n\top" - + "eration\030\017 \001(\0132$.google.logging.v2.LogEnt" - + "ryOperation\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_loc" - + "ation\030\027 \001(\0132).google.logging.v2.LogEntry" - + "SourceLocation\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\021LogE" - + "ntryOperation\022\n\n\002id\030\001 \001(\t\022\020\n\010producer\030\002 " - + "\001(\t\022\r\n\005first\030\003 \001(\010\022\014\n\004last\030\004 \001(\010\"F\n\026LogE" - + "ntrySourceLocation\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\001Z8google.gola" - + "ng.org/genproto/googleapis/logging/v2;lo" - + "gging\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Goo" - + "gle\\Cloud\\Logging\\V2b\006proto3" + + "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" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -84,13 +85,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.MonitoredResourceProto.getDescriptor(), com.google.logging.type.HttpRequestProto.getDescriptor(), com.google.logging.type.LogSeverityProto.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_logging_v2_LogEntry_descriptor = @@ -142,13 +144,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "File", "Line", "Function", }); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.MonitoredResourceProto.getDescriptor(); com.google.logging.type.HttpRequestProto.getDescriptor(); com.google.logging.type.LogSeverityProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java index 5f5d47f8d540..6c3da7d3b69f 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java @@ -8,11 +8,11 @@ * *
  * Specifies a set of log entries that are not to be stored in
- * Logging. If your project receives a large volume of logs, you might be able
- * to use exclusions to reduce your chargeable logs. Exclusions are processed
- * after log sinks, so you can export log entries before they are excluded.
- * Audit log entries and log entries from Amazon Web Services are never
- * excluded.
+ * Logging. If your GCP resource receives a large volume of logs, you can
+ * use exclusions to reduce your chargeable logs. Exclusions are
+ * processed after log sinks, so you can export log entries before they are
+ * excluded. Note that organization-level and folder-level exclusions don't
+ * apply to child resources, and that you can't exclude audit log entries.
  * 
* * Protobuf type {@code google.logging.v2.LogExclusion} @@ -81,6 +81,36 @@ private LogExclusion( case 32: { disabled_ = input.readBool(); + break; + } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + break; } default: @@ -213,14 +243,13 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Required.
-   * An [advanced logs filter](/logging/docs/view/advanced_filters)
+   * Required. An [advanced logs filter](/logging/docs/view/advanced-queries)
    * that matches the log entries to be excluded. By using the
-   * [sample function](/logging/docs/view/advanced_filters#sample),
+   * [sample function](/logging/docs/view/advanced-queries#sample),
    * you can exclude less than 100% of the matching log entries.
-   * For example, the following filter matches 99% of low-severity log
-   * entries from load balancers:
-   * `"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"`
+   * For example, the following query matches 99% of low-severity log
+   * entries from Google Cloud Storage buckets:
+   * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
    * 
* * string filter = 3; @@ -240,14 +269,13 @@ public java.lang.String getFilter() { * * *
-   * Required.
-   * An [advanced logs filter](/logging/docs/view/advanced_filters)
+   * Required. An [advanced logs filter](/logging/docs/view/advanced-queries)
    * that matches the log entries to be excluded. By using the
-   * [sample function](/logging/docs/view/advanced_filters#sample),
+   * [sample function](/logging/docs/view/advanced-queries#sample),
    * you can exclude less than 100% of the matching log entries.
-   * For example, the following filter matches 99% of low-severity log
-   * entries from load balancers:
-   * `"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"`
+   * For example, the following query matches 99% of low-severity log
+   * entries from Google Cloud Storage buckets:
+   * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
    * 
* * string filter = 3; @@ -271,9 +299,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * *
    * Optional. If set to True, then this exclusion is disabled and it does not
-   * exclude any log entries. You can use
-   * [exclusions.patch](/logging/docs/reference/v2/rest/v2/projects.exclusions/patch)
-   * to change the value of this field.
+   * exclude any log entries. You can [update an
+   * exclusion][google.logging.v2.ConfigServiceV2.UpdateExclusion] to change the
+   * value of this field.
    * 
* * bool disabled = 4; @@ -282,6 +310,90 @@ public boolean getDisabled() { return disabled_; } + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The creation timestamp of the exclusion.
+   * This field may not be present for older exclusions.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. The creation timestamp of the exclusion.
+   * This field may not be present for older exclusions.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The creation timestamp of the exclusion.
+   * This field may not be present for older exclusions.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The last update timestamp of the exclusion.
+   * This field may not be present for older exclusions.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The last update timestamp of the exclusion.
+   * This field may not be present for older exclusions.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. The last update timestamp of the exclusion.
+   * This field may not be present for older exclusions.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -308,6 +420,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disabled_ != false) { output.writeBool(4, disabled_); } + if (createTime_ != null) { + output.writeMessage(5, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(6, getUpdateTime()); + } unknownFields.writeTo(output); } @@ -329,6 +447,12 @@ public int getSerializedSize() { if (disabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disabled_); } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -348,6 +472,14 @@ public boolean equals(final java.lang.Object obj) { if (!getDescription().equals(other.getDescription())) return false; if (!getFilter().equals(other.getFilter())) return false; if (getDisabled() != other.getDisabled()) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -367,6 +499,14 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -471,11 +611,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Specifies a set of log entries that are not to be stored in
-   * Logging. If your project receives a large volume of logs, you might be able
-   * to use exclusions to reduce your chargeable logs. Exclusions are processed
-   * after log sinks, so you can export log entries before they are excluded.
-   * Audit log entries and log entries from Amazon Web Services are never
-   * excluded.
+   * Logging. If your GCP resource receives a large volume of logs, you can
+   * use exclusions to reduce your chargeable logs. Exclusions are
+   * processed after log sinks, so you can export log entries before they are
+   * excluded. Note that organization-level and folder-level exclusions don't
+   * apply to child resources, and that you can't exclude audit log entries.
    * 
* * Protobuf type {@code google.logging.v2.LogExclusion} @@ -524,6 +664,18 @@ public Builder clear() { disabled_ = false; + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } return this; } @@ -554,6 +706,16 @@ public com.google.logging.v2.LogExclusion buildPartial() { result.description_ = description_; result.filter_ = filter_; result.disabled_ = disabled_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } onBuilt(); return result; } @@ -618,6 +780,12 @@ public Builder mergeFrom(com.google.logging.v2.LogExclusion other) { if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -850,14 +1018,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Required.
-     * An [advanced logs filter](/logging/docs/view/advanced_filters)
+     * Required. An [advanced logs filter](/logging/docs/view/advanced-queries)
      * that matches the log entries to be excluded. By using the
-     * [sample function](/logging/docs/view/advanced_filters#sample),
+     * [sample function](/logging/docs/view/advanced-queries#sample),
      * you can exclude less than 100% of the matching log entries.
-     * For example, the following filter matches 99% of low-severity log
-     * entries from load balancers:
-     * `"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"`
+     * For example, the following query matches 99% of low-severity log
+     * entries from Google Cloud Storage buckets:
+     * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
      * 
* * string filter = 3; @@ -877,14 +1044,13 @@ public java.lang.String getFilter() { * * *
-     * Required.
-     * An [advanced logs filter](/logging/docs/view/advanced_filters)
+     * Required. An [advanced logs filter](/logging/docs/view/advanced-queries)
      * that matches the log entries to be excluded. By using the
-     * [sample function](/logging/docs/view/advanced_filters#sample),
+     * [sample function](/logging/docs/view/advanced-queries#sample),
      * you can exclude less than 100% of the matching log entries.
-     * For example, the following filter matches 99% of low-severity log
-     * entries from load balancers:
-     * `"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"`
+     * For example, the following query matches 99% of low-severity log
+     * entries from Google Cloud Storage buckets:
+     * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
      * 
* * string filter = 3; @@ -904,14 +1070,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * Required.
-     * An [advanced logs filter](/logging/docs/view/advanced_filters)
+     * Required. An [advanced logs filter](/logging/docs/view/advanced-queries)
      * that matches the log entries to be excluded. By using the
-     * [sample function](/logging/docs/view/advanced_filters#sample),
+     * [sample function](/logging/docs/view/advanced-queries#sample),
      * you can exclude less than 100% of the matching log entries.
-     * For example, the following filter matches 99% of low-severity log
-     * entries from load balancers:
-     * `"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"`
+     * For example, the following query matches 99% of low-severity log
+     * entries from Google Cloud Storage buckets:
+     * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
      * 
* * string filter = 3; @@ -929,14 +1094,13 @@ public Builder setFilter(java.lang.String value) { * * *
-     * Required.
-     * An [advanced logs filter](/logging/docs/view/advanced_filters)
+     * Required. An [advanced logs filter](/logging/docs/view/advanced-queries)
      * that matches the log entries to be excluded. By using the
-     * [sample function](/logging/docs/view/advanced_filters#sample),
+     * [sample function](/logging/docs/view/advanced-queries#sample),
      * you can exclude less than 100% of the matching log entries.
-     * For example, the following filter matches 99% of low-severity log
-     * entries from load balancers:
-     * `"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"`
+     * For example, the following query matches 99% of low-severity log
+     * entries from Google Cloud Storage buckets:
+     * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
      * 
* * string filter = 3; @@ -951,14 +1115,13 @@ public Builder clearFilter() { * * *
-     * Required.
-     * An [advanced logs filter](/logging/docs/view/advanced_filters)
+     * Required. An [advanced logs filter](/logging/docs/view/advanced-queries)
      * that matches the log entries to be excluded. By using the
-     * [sample function](/logging/docs/view/advanced_filters#sample),
+     * [sample function](/logging/docs/view/advanced-queries#sample),
      * you can exclude less than 100% of the matching log entries.
-     * For example, the following filter matches 99% of low-severity log
-     * entries from load balancers:
-     * `"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"`
+     * For example, the following query matches 99% of low-severity log
+     * entries from Google Cloud Storage buckets:
+     * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
      * 
* * string filter = 3; @@ -980,9 +1143,9 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * *
      * Optional. If set to True, then this exclusion is disabled and it does not
-     * exclude any log entries. You can use
-     * [exclusions.patch](/logging/docs/reference/v2/rest/v2/projects.exclusions/patch)
-     * to change the value of this field.
+     * exclude any log entries. You can [update an
+     * exclusion][google.logging.v2.ConfigServiceV2.UpdateExclusion] to change the
+     * value of this field.
      * 
* * bool disabled = 4; @@ -995,9 +1158,9 @@ public boolean getDisabled() { * *
      * Optional. If set to True, then this exclusion is disabled and it does not
-     * exclude any log entries. You can use
-     * [exclusions.patch](/logging/docs/reference/v2/rest/v2/projects.exclusions/patch)
-     * to change the value of this field.
+     * exclude any log entries. You can [update an
+     * exclusion][google.logging.v2.ConfigServiceV2.UpdateExclusion] to change the
+     * value of this field.
      * 
* * bool disabled = 4; @@ -1013,9 +1176,9 @@ public Builder setDisabled(boolean value) { * *
      * Optional. If set to True, then this exclusion is disabled and it does not
-     * exclude any log entries. You can use
-     * [exclusions.patch](/logging/docs/reference/v2/rest/v2/projects.exclusions/patch)
-     * to change the value of this field.
+     * exclude any log entries. You can [update an
+     * exclusion][google.logging.v2.ConfigServiceV2.UpdateExclusion] to change the
+     * value of this field.
      * 
* * bool disabled = 4; @@ -1027,6 +1190,382 @@ public Builder clearDisabled() { return this; } + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. The creation timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. The creation timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The creation timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The creation timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. The creation timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. The last update timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. The last update timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The last update timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The last update timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. The last update timestamp of the exclusion.
+     * This field may not be present for older exclusions.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java index 9b60cceafb41..b5a1db08df24 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java @@ -58,14 +58,13 @@ public interface LogExclusionOrBuilder * * *
-   * Required.
-   * An [advanced logs filter](/logging/docs/view/advanced_filters)
+   * Required. An [advanced logs filter](/logging/docs/view/advanced-queries)
    * that matches the log entries to be excluded. By using the
-   * [sample function](/logging/docs/view/advanced_filters#sample),
+   * [sample function](/logging/docs/view/advanced-queries#sample),
    * you can exclude less than 100% of the matching log entries.
-   * For example, the following filter matches 99% of low-severity log
-   * entries from load balancers:
-   * `"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"`
+   * For example, the following query matches 99% of low-severity log
+   * entries from Google Cloud Storage buckets:
+   * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
    * 
* * string filter = 3; @@ -75,14 +74,13 @@ public interface LogExclusionOrBuilder * * *
-   * Required.
-   * An [advanced logs filter](/logging/docs/view/advanced_filters)
+   * Required. An [advanced logs filter](/logging/docs/view/advanced-queries)
    * that matches the log entries to be excluded. By using the
-   * [sample function](/logging/docs/view/advanced_filters#sample),
+   * [sample function](/logging/docs/view/advanced-queries#sample),
    * you can exclude less than 100% of the matching log entries.
-   * For example, the following filter matches 99% of low-severity log
-   * entries from load balancers:
-   * `"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"`
+   * For example, the following query matches 99% of low-severity log
+   * entries from Google Cloud Storage buckets:
+   * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
    * 
* * string filter = 3; @@ -94,12 +92,80 @@ public interface LogExclusionOrBuilder * *
    * Optional. If set to True, then this exclusion is disabled and it does not
-   * exclude any log entries. You can use
-   * [exclusions.patch](/logging/docs/reference/v2/rest/v2/projects.exclusions/patch)
-   * to change the value of this field.
+   * exclude any log entries. You can [update an
+   * exclusion][google.logging.v2.ConfigServiceV2.UpdateExclusion] to change the
+   * value of this field.
    * 
* * bool disabled = 4; */ boolean getDisabled(); + + /** + * + * + *
+   * Output only. The creation timestamp of the exclusion.
+   * This field may not be present for older exclusions.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The creation timestamp of the exclusion.
+   * This field may not be present for older exclusions.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The creation timestamp of the exclusion.
+   * This field may not be present for older exclusions.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The last update timestamp of the exclusion.
+   * This field may not be present for older exclusions.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The last update timestamp of the exclusion.
+   * This field may not be present for older exclusions.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The last update timestamp of the exclusion.
+   * This field may not be present for older exclusions.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java index 9285cb007e73..aa19d45a5e82 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java @@ -7,8 +7,8 @@ * * *
- * Describes a logs-based metric.  The value of the metric is the
- * number of log entries that match a logs filter in a given time interval.
+ * Describes a logs-based metric. The value of the metric is the number of log
+ * entries that match a logs filter in a given time interval.
  * Logs-based metric can also be used to extract values from logs and create a
  * a distribution of the values. The distribution records the statistics of the
  * extracted values along with an optional histogram of the values as specified
@@ -140,6 +140,36 @@ private LogMetric(
                 bucketOptions_ = subBuilder.buildPartial();
               }
 
+              break;
+            }
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
               break;
             }
           default:
@@ -318,17 +348,15 @@ private ApiVersion(int value) {
    * 
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
-   * Metric identifiers are limited to 100 characters and can include
-   * only the following characters: `A-Z`, `a-z`, `0-9`, and the
-   * special characters `_-.,+!*',()%/`.  The forward-slash character
-   * (`/`) denotes a hierarchy of name pieces, and it cannot be the
-   * first character of the name.
+   * Metric identifiers are limited to 100 characters and can include only the
+   * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
+   * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
+   * name pieces, and it cannot be the first character of the name.
    * The metric identifier in this field must not be
    * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-   * However, when the metric identifier appears as the `[METRIC_ID]`
-   * part of a `metric_name` API parameter, then the metric identifier
-   * must be URL-encoded. Example:
-   * `"projects/my-project/metrics/nginx%2Frequests"`.
+   * However, when the metric identifier appears as the `[METRIC_ID]` part of a
+   * `metric_name` API parameter, then the metric identifier must be
+   * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
    * 
* * string name = 1; @@ -350,17 +378,15 @@ public java.lang.String getName() { *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
-   * Metric identifiers are limited to 100 characters and can include
-   * only the following characters: `A-Z`, `a-z`, `0-9`, and the
-   * special characters `_-.,+!*',()%/`.  The forward-slash character
-   * (`/`) denotes a hierarchy of name pieces, and it cannot be the
-   * first character of the name.
+   * Metric identifiers are limited to 100 characters and can include only the
+   * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
+   * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
+   * name pieces, and it cannot be the first character of the name.
    * The metric identifier in this field must not be
    * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-   * However, when the metric identifier appears as the `[METRIC_ID]`
-   * part of a `metric_name` API parameter, then the metric identifier
-   * must be URL-encoded. Example:
-   * `"projects/my-project/metrics/nginx%2Frequests"`.
+   * However, when the metric identifier appears as the `[METRIC_ID]` part of a
+   * `metric_name` API parameter, then the metric identifier must be
+   * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
    * 
* * string name = 1; @@ -384,6 +410,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Optional. A description of this metric, which is used in documentation.
+   * The maximum length of the description is 8000 characters.
    * 
* * string description = 2; @@ -404,6 +431,7 @@ public java.lang.String getDescription() { * *
    * Optional. A description of this metric, which is used in documentation.
+   * The maximum length of the description is 8000 characters.
    * 
* * string description = 2; @@ -822,6 +850,90 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil return getBucketOptions(); } + public static final int CREATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The creation timestamp of the metric.
+   * This field may not be present for older metrics.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. The creation timestamp of the metric.
+   * This field may not be present for older metrics.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The creation timestamp of the metric.
+   * This field may not be present for older metrics.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The last update timestamp of the metric.
+   * This field may not be present for older metrics.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The last update timestamp of the metric.
+   * This field may not be present for older metrics.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. The last update timestamp of the metric.
+   * This field may not be present for older metrics.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + public static final int VERSION_FIELD_NUMBER = 4; private int version_; /** @@ -893,6 +1005,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (bucketOptions_ != null) { output.writeMessage(8, getBucketOptions()); } + if (createTime_ != null) { + output.writeMessage(9, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(10, getUpdateTime()); + } unknownFields.writeTo(output); } @@ -933,6 +1051,12 @@ public int getSerializedSize() { if (bucketOptions_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getBucketOptions()); } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -961,6 +1085,14 @@ public boolean equals(final java.lang.Object obj) { if (hasBucketOptions()) { if (!getBucketOptions().equals(other.getBucketOptions())) return false; } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } if (version_ != other.version_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -993,6 +1125,14 @@ public int hashCode() { hash = (37 * hash) + BUCKET_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getBucketOptions().hashCode(); } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + version_; hash = (29 * hash) + unknownFields.hashCode(); @@ -1098,8 +1238,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Describes a logs-based metric.  The value of the metric is the
-   * number of log entries that match a logs filter in a given time interval.
+   * Describes a logs-based metric. The value of the metric is the number of log
+   * entries that match a logs filter in a given time interval.
    * Logs-based metric can also be used to extract values from logs and create a
    * a distribution of the values. The distribution records the statistics of the
    * extracted values along with an optional histogram of the values as specified
@@ -1184,6 +1324,18 @@ public Builder clear() {
         bucketOptions_ = null;
         bucketOptionsBuilder_ = null;
       }
+      if (createTimeBuilder_ == null) {
+        createTime_ = null;
+      } else {
+        createTime_ = null;
+        createTimeBuilder_ = null;
+      }
+      if (updateTimeBuilder_ == null) {
+        updateTime_ = null;
+      } else {
+        updateTime_ = null;
+        updateTimeBuilder_ = null;
+      }
       version_ = 0;
 
       return this;
@@ -1230,6 +1382,16 @@ public com.google.logging.v2.LogMetric buildPartial() {
       } else {
         result.bucketOptions_ = bucketOptionsBuilder_.build();
       }
+      if (createTimeBuilder_ == null) {
+        result.createTime_ = createTime_;
+      } else {
+        result.createTime_ = createTimeBuilder_.build();
+      }
+      if (updateTimeBuilder_ == null) {
+        result.updateTime_ = updateTime_;
+      } else {
+        result.updateTime_ = updateTimeBuilder_.build();
+      }
       result.version_ = version_;
       result.bitField0_ = to_bitField0_;
       onBuilt();
@@ -1304,6 +1466,12 @@ public Builder mergeFrom(com.google.logging.v2.LogMetric other) {
       if (other.hasBucketOptions()) {
         mergeBucketOptions(other.getBucketOptions());
       }
+      if (other.hasCreateTime()) {
+        mergeCreateTime(other.getCreateTime());
+      }
+      if (other.hasUpdateTime()) {
+        mergeUpdateTime(other.getUpdateTime());
+      }
       if (other.version_ != 0) {
         setVersionValue(other.getVersionValue());
       }
@@ -1345,17 +1513,15 @@ public Builder mergeFrom(
      * 
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
-     * Metric identifiers are limited to 100 characters and can include
-     * only the following characters: `A-Z`, `a-z`, `0-9`, and the
-     * special characters `_-.,+!*',()%/`.  The forward-slash character
-     * (`/`) denotes a hierarchy of name pieces, and it cannot be the
-     * first character of the name.
+     * Metric identifiers are limited to 100 characters and can include only the
+     * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
+     * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
+     * name pieces, and it cannot be the first character of the name.
      * The metric identifier in this field must not be
      * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-     * However, when the metric identifier appears as the `[METRIC_ID]`
-     * part of a `metric_name` API parameter, then the metric identifier
-     * must be URL-encoded. Example:
-     * `"projects/my-project/metrics/nginx%2Frequests"`.
+     * However, when the metric identifier appears as the `[METRIC_ID]` part of a
+     * `metric_name` API parameter, then the metric identifier must be
+     * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
      * 
* * string name = 1; @@ -1377,17 +1543,15 @@ public java.lang.String getName() { *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
-     * Metric identifiers are limited to 100 characters and can include
-     * only the following characters: `A-Z`, `a-z`, `0-9`, and the
-     * special characters `_-.,+!*',()%/`.  The forward-slash character
-     * (`/`) denotes a hierarchy of name pieces, and it cannot be the
-     * first character of the name.
+     * Metric identifiers are limited to 100 characters and can include only the
+     * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
+     * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
+     * name pieces, and it cannot be the first character of the name.
      * The metric identifier in this field must not be
      * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-     * However, when the metric identifier appears as the `[METRIC_ID]`
-     * part of a `metric_name` API parameter, then the metric identifier
-     * must be URL-encoded. Example:
-     * `"projects/my-project/metrics/nginx%2Frequests"`.
+     * However, when the metric identifier appears as the `[METRIC_ID]` part of a
+     * `metric_name` API parameter, then the metric identifier must be
+     * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
      * 
* * string name = 1; @@ -1409,17 +1573,15 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
-     * Metric identifiers are limited to 100 characters and can include
-     * only the following characters: `A-Z`, `a-z`, `0-9`, and the
-     * special characters `_-.,+!*',()%/`.  The forward-slash character
-     * (`/`) denotes a hierarchy of name pieces, and it cannot be the
-     * first character of the name.
+     * Metric identifiers are limited to 100 characters and can include only the
+     * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
+     * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
+     * name pieces, and it cannot be the first character of the name.
      * The metric identifier in this field must not be
      * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-     * However, when the metric identifier appears as the `[METRIC_ID]`
-     * part of a `metric_name` API parameter, then the metric identifier
-     * must be URL-encoded. Example:
-     * `"projects/my-project/metrics/nginx%2Frequests"`.
+     * However, when the metric identifier appears as the `[METRIC_ID]` part of a
+     * `metric_name` API parameter, then the metric identifier must be
+     * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
      * 
* * string name = 1; @@ -1439,17 +1601,15 @@ public Builder setName(java.lang.String value) { *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
-     * Metric identifiers are limited to 100 characters and can include
-     * only the following characters: `A-Z`, `a-z`, `0-9`, and the
-     * special characters `_-.,+!*',()%/`.  The forward-slash character
-     * (`/`) denotes a hierarchy of name pieces, and it cannot be the
-     * first character of the name.
+     * Metric identifiers are limited to 100 characters and can include only the
+     * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
+     * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
+     * name pieces, and it cannot be the first character of the name.
      * The metric identifier in this field must not be
      * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-     * However, when the metric identifier appears as the `[METRIC_ID]`
-     * part of a `metric_name` API parameter, then the metric identifier
-     * must be URL-encoded. Example:
-     * `"projects/my-project/metrics/nginx%2Frequests"`.
+     * However, when the metric identifier appears as the `[METRIC_ID]` part of a
+     * `metric_name` API parameter, then the metric identifier must be
+     * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
      * 
* * string name = 1; @@ -1466,17 +1626,15 @@ public Builder clearName() { *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
-     * Metric identifiers are limited to 100 characters and can include
-     * only the following characters: `A-Z`, `a-z`, `0-9`, and the
-     * special characters `_-.,+!*',()%/`.  The forward-slash character
-     * (`/`) denotes a hierarchy of name pieces, and it cannot be the
-     * first character of the name.
+     * Metric identifiers are limited to 100 characters and can include only the
+     * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
+     * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
+     * name pieces, and it cannot be the first character of the name.
      * The metric identifier in this field must not be
      * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-     * However, when the metric identifier appears as the `[METRIC_ID]`
-     * part of a `metric_name` API parameter, then the metric identifier
-     * must be URL-encoded. Example:
-     * `"projects/my-project/metrics/nginx%2Frequests"`.
+     * However, when the metric identifier appears as the `[METRIC_ID]` part of a
+     * `metric_name` API parameter, then the metric identifier must be
+     * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
      * 
* * string name = 1; @@ -1498,6 +1656,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Optional. A description of this metric, which is used in documentation.
+     * The maximum length of the description is 8000 characters.
      * 
* * string description = 2; @@ -1518,6 +1677,7 @@ public java.lang.String getDescription() { * *
      * Optional. A description of this metric, which is used in documentation.
+     * The maximum length of the description is 8000 characters.
      * 
* * string description = 2; @@ -1538,6 +1698,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * *
      * Optional. A description of this metric, which is used in documentation.
+     * The maximum length of the description is 8000 characters.
      * 
* * string description = 2; @@ -1556,6 +1717,7 @@ public Builder setDescription(java.lang.String value) { * *
      * Optional. A description of this metric, which is used in documentation.
+     * The maximum length of the description is 8000 characters.
      * 
* * string description = 2; @@ -1571,6 +1733,7 @@ public Builder clearDescription() { * *
      * Optional. A description of this metric, which is used in documentation.
+     * The maximum length of the description is 8000 characters.
      * 
* * string description = 2; @@ -2632,6 +2795,382 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil return bucketOptionsBuilder_; } + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. The creation timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. The creation timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The creation timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The creation timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. The creation timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. The last update timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. The last update timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The last update timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The last update timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. The last update timestamp of the metric.
+     * This field may not be present for older metrics.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + private int version_ = 0; /** * diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java index fab9cb4a372d..5975135ad793 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java @@ -14,17 +14,15 @@ public interface LogMetricOrBuilder *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
-   * Metric identifiers are limited to 100 characters and can include
-   * only the following characters: `A-Z`, `a-z`, `0-9`, and the
-   * special characters `_-.,+!*',()%/`.  The forward-slash character
-   * (`/`) denotes a hierarchy of name pieces, and it cannot be the
-   * first character of the name.
+   * Metric identifiers are limited to 100 characters and can include only the
+   * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
+   * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
+   * name pieces, and it cannot be the first character of the name.
    * The metric identifier in this field must not be
    * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-   * However, when the metric identifier appears as the `[METRIC_ID]`
-   * part of a `metric_name` API parameter, then the metric identifier
-   * must be URL-encoded. Example:
-   * `"projects/my-project/metrics/nginx%2Frequests"`.
+   * However, when the metric identifier appears as the `[METRIC_ID]` part of a
+   * `metric_name` API parameter, then the metric identifier must be
+   * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
    * 
* * string name = 1; @@ -36,17 +34,15 @@ public interface LogMetricOrBuilder *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
-   * Metric identifiers are limited to 100 characters and can include
-   * only the following characters: `A-Z`, `a-z`, `0-9`, and the
-   * special characters `_-.,+!*',()%/`.  The forward-slash character
-   * (`/`) denotes a hierarchy of name pieces, and it cannot be the
-   * first character of the name.
+   * Metric identifiers are limited to 100 characters and can include only the
+   * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
+   * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
+   * name pieces, and it cannot be the first character of the name.
    * The metric identifier in this field must not be
    * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-   * However, when the metric identifier appears as the `[METRIC_ID]`
-   * part of a `metric_name` API parameter, then the metric identifier
-   * must be URL-encoded. Example:
-   * `"projects/my-project/metrics/nginx%2Frequests"`.
+   * However, when the metric identifier appears as the `[METRIC_ID]` part of a
+   * `metric_name` API parameter, then the metric identifier must be
+   * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
    * 
* * string name = 1; @@ -58,6 +54,7 @@ public interface LogMetricOrBuilder * *
    * Optional. A description of this metric, which is used in documentation.
+   * The maximum length of the description is 8000 characters.
    * 
* * string description = 2; @@ -68,6 +65,7 @@ public interface LogMetricOrBuilder * *
    * Optional. A description of this metric, which is used in documentation.
+   * The maximum length of the description is 8000 characters.
    * 
* * string description = 2; @@ -381,6 +379,74 @@ public interface LogMetricOrBuilder */ com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder(); + /** + * + * + *
+   * Output only. The creation timestamp of the metric.
+   * This field may not be present for older metrics.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The creation timestamp of the metric.
+   * This field may not be present for older metrics.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The creation timestamp of the metric.
+   * This field may not be present for older metrics.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The last update timestamp of the metric.
+   * This field may not be present for older metrics.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The last update timestamp of the metric.
+   * This field may not be present for older metrics.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The last update timestamp of the metric.
+   * This field may not be present for older metrics.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + /** * * diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java index 74ecd1e87eb2..aa7d51703eeb 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java @@ -9,9 +9,9 @@ *
  * Describes a sink used to export log entries to one of the following
  * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
- * Cloud Pub/Sub topic.  A logs filter controls which log entries are
- * exported. The sink must be created within a project, organization, billing
- * account, or folder.
+ * Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
+ * The sink must be created within a project, organization, billing account, or
+ * folder.
  * 
* * Protobuf type {@code google.logging.v2.LogSink} @@ -126,6 +126,52 @@ private LogSink( endTime_ = subBuilder.buildPartial(); } + break; + } + case 98: + { + com.google.logging.v2.BigQueryOptions.Builder subBuilder = null; + if (optionsCase_ == 12) { + subBuilder = ((com.google.logging.v2.BigQueryOptions) options_).toBuilder(); + } + options_ = + input.readMessage( + com.google.logging.v2.BigQueryOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.logging.v2.BigQueryOptions) options_); + options_ = subBuilder.buildPartial(); + } + optionsCase_ = 12; + break; + } + case 106: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 114: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + break; } default: @@ -308,6 +354,43 @@ private VersionFormat(int value) { // @@protoc_insertion_point(enum_scope:google.logging.v2.LogSink.VersionFormat) } + private int optionsCase_ = 0; + private java.lang.Object options_; + + public enum OptionsCase implements com.google.protobuf.Internal.EnumLite { + BIGQUERY_OPTIONS(12), + OPTIONS_NOT_SET(0); + private final int value; + + private OptionsCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static OptionsCase valueOf(int value) { + return forNumber(value); + } + + public static OptionsCase forNumber(int value) { + switch (value) { + case 12: + return BIGQUERY_OPTIONS; + case 0: + return OPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OptionsCase getOptionsCase() { + return OptionsCase.forNumber(optionsCase_); + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -315,7 +398,7 @@ private VersionFormat(int value) { * *
    * Required. The client-assigned sink identifier, unique within the
-   * project. Example: `"my-syslog-errors-to-pubsub"`.  Sink identifiers are
+   * 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.
@@ -339,7 +422,7 @@ public java.lang.String getName() {
    *
    * 
    * Required. The client-assigned sink identifier, unique within the
-   * project. Example: `"my-syslog-errors-to-pubsub"`.  Sink identifiers are
+   * 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.
@@ -371,8 +454,8 @@ public com.google.protobuf.ByteString getNameBytes() {
    *     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
    * The sink's `writer_identity`, set when the sink is created, must
    * have permission to write to the destination or else the log
-   * entries are not exported.  For more information, see
-   * [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).
+   * entries are not exported. For more information, see
+   * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs).
    * 
* * string destination = 3; @@ -398,8 +481,8 @@ public java.lang.String getDestination() { * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" * The sink's `writer_identity`, set when the sink is created, must * have permission to write to the destination or else the log - * entries are not exported. For more information, see - * [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). + * entries are not exported. For more information, see + * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). *
* * string destination = 3; @@ -422,10 +505,9 @@ public com.google.protobuf.ByteString getDestinationBytes() { * * *
-   * Optional.
-   * An [advanced logs filter](/logging/docs/view/advanced_filters).  The only
+   * 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
-   * that match the filter.  For example:
+   * that match the filter. For example:
    *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
    * 
* @@ -446,10 +528,9 @@ public java.lang.String getFilter() { * * *
-   * Optional.
-   * An [advanced logs filter](/logging/docs/view/advanced_filters).  The only
+   * 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
-   * that match the filter.  For example:
+   * that match the filter. For example:
    *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
    * 
* @@ -474,7 +555,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * *
    * 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.
+   * entries. The v2 format is used by default and cannot be changed.
    * 
* * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; @@ -489,7 +570,7 @@ public int getOutputVersionFormatValue() { * *
    * 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.
+   * entries. The v2 format is used by default and cannot be changed.
    * 
* * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; @@ -510,16 +591,16 @@ public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { * *
    * Output only. An IAM identity&mdash;a service account or group&mdash;under
-   * which Logging writes the exported log entries to the sink's
-   * destination.  This field is set by
-   * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
+   * which Logging writes the exported log entries to the sink's destination.
+   * This field is set by
+   * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
    * and
-   * [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
-   * based on the setting of `unique_writer_identity` in those methods.
+   * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink]
+   * based on the value of `unique_writer_identity` in those methods.
    * Until you grant this identity write-access to the destination, log entry
    * exports from this sink will fail. For more information,
-   * see [Granting access for a
-   * resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
+   * see [Granting Access for a
+   * 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.
    * 
@@ -542,16 +623,16 @@ public java.lang.String getWriterIdentity() { * *
    * Output only. An IAM identity&mdash;a service account or group&mdash;under
-   * which Logging writes the exported log entries to the sink's
-   * destination.  This field is set by
-   * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
+   * which Logging writes the exported log entries to the sink's destination.
+   * This field is set by
+   * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
    * and
-   * [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
-   * based on the setting of `unique_writer_identity` in those methods.
+   * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink]
+   * based on the value of `unique_writer_identity` in those methods.
    * Until you grant this identity write-access to the destination, log entry
    * exports from this sink will fail. For more information,
-   * see [Granting access for a
-   * resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
+   * see [Granting Access for a
+   * 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.
    * 
@@ -596,13 +677,141 @@ public boolean getIncludeChildren() { return includeChildren_; } + public static final int BIGQUERY_OPTIONS_FIELD_NUMBER = 12; + /** + * + * + *
+   * Optional. Options that affect sinks exporting data to BigQuery.
+   * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + public boolean hasBigqueryOptions() { + return optionsCase_ == 12; + } + /** + * + * + *
+   * Optional. Options that affect sinks exporting data to BigQuery.
+   * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + public com.google.logging.v2.BigQueryOptions getBigqueryOptions() { + if (optionsCase_ == 12) { + return (com.google.logging.v2.BigQueryOptions) options_; + } + return com.google.logging.v2.BigQueryOptions.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Options that affect sinks exporting data to BigQuery.
+   * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilder() { + if (optionsCase_ == 12) { + return (com.google.logging.v2.BigQueryOptions) options_; + } + return com.google.logging.v2.BigQueryOptions.getDefaultInstance(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 13; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The creation timestamp of the sink.
+   * This field may not be present for older sinks.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. The creation timestamp of the sink.
+   * This field may not be present for older sinks.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The creation timestamp of the sink.
+   * This field may not be present for older sinks.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 14; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The last update timestamp of the sink.
+   * This field may not be present for older sinks.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The last update timestamp of the sink.
+   * This field may not be present for older sinks.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. The last update timestamp of the sink.
+   * This field may not be present for older sinks.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + public static final int START_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp startTime_; /** * * *
-   * Deprecated. This field is ignored when creating or updating sinks.
+   * Do not use. This field is ignored.
    * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -615,7 +824,7 @@ public boolean hasStartTime() { * * *
-   * Deprecated. This field is ignored when creating or updating sinks.
+   * Do not use. This field is ignored.
    * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -628,7 +837,7 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-   * Deprecated. This field is ignored when creating or updating sinks.
+   * Do not use. This field is ignored.
    * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -644,7 +853,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-   * Deprecated. This field is ignored when creating or updating sinks.
+   * Do not use. This field is ignored.
    * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -657,7 +866,7 @@ public boolean hasEndTime() { * * *
-   * Deprecated. This field is ignored when creating or updating sinks.
+   * Do not use. This field is ignored.
    * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -670,7 +879,7 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
-   * Deprecated. This field is ignored when creating or updating sinks.
+   * Do not use. This field is ignored.
    * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -719,6 +928,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(11, getEndTime()); } + if (optionsCase_ == 12) { + output.writeMessage(12, (com.google.logging.v2.BigQueryOptions) options_); + } + if (createTime_ != null) { + output.writeMessage(13, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(14, getUpdateTime()); + } unknownFields.writeTo(output); } @@ -753,6 +971,17 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getEndTime()); } + if (optionsCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.logging.v2.BigQueryOptions) options_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getUpdateTime()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -774,6 +1003,14 @@ public boolean equals(final java.lang.Object obj) { if (outputVersionFormat_ != other.outputVersionFormat_) return false; if (!getWriterIdentity().equals(other.getWriterIdentity())) return false; if (getIncludeChildren() != other.getIncludeChildren()) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime().equals(other.getStartTime())) return false; @@ -782,6 +1019,14 @@ public boolean equals(final java.lang.Object obj) { if (hasEndTime()) { if (!getEndTime().equals(other.getEndTime())) return false; } + if (!getOptionsCase().equals(other.getOptionsCase())) return false; + switch (optionsCase_) { + case 12: + if (!getBigqueryOptions().equals(other.getBigqueryOptions())) return false; + break; + case 0: + default: + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -805,6 +1050,14 @@ public int hashCode() { hash = (53 * hash) + getWriterIdentity().hashCode(); hash = (37 * hash) + INCLUDE_CHILDREN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeChildren()); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); @@ -813,6 +1066,14 @@ public int hashCode() { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } + switch (optionsCase_) { + case 12: + hash = (37 * hash) + BIGQUERY_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryOptions().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -918,9 +1179,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Describes a sink used to export log entries to one of the following
    * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
-   * Cloud Pub/Sub topic.  A logs filter controls which log entries are
-   * exported. The sink must be created within a project, organization, billing
-   * account, or folder.
+   * Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
+   * The sink must be created within a project, organization, billing account, or
+   * folder.
    * 
* * Protobuf type {@code google.logging.v2.LogSink} @@ -972,6 +1233,18 @@ public Builder clear() { includeChildren_ = false; + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } if (startTimeBuilder_ == null) { startTime_ = null; } else { @@ -984,6 +1257,8 @@ public Builder clear() { endTime_ = null; endTimeBuilder_ = null; } + optionsCase_ = 0; + options_ = null; return this; } @@ -1016,6 +1291,23 @@ public com.google.logging.v2.LogSink buildPartial() { result.outputVersionFormat_ = outputVersionFormat_; result.writerIdentity_ = writerIdentity_; result.includeChildren_ = includeChildren_; + if (optionsCase_ == 12) { + if (bigqueryOptionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = bigqueryOptionsBuilder_.build(); + } + } + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -1026,6 +1318,7 @@ public com.google.logging.v2.LogSink buildPartial() { } else { result.endTime_ = endTimeBuilder_.build(); } + result.optionsCase_ = optionsCase_; onBuilt(); return result; } @@ -1097,12 +1390,29 @@ public Builder mergeFrom(com.google.logging.v2.LogSink other) { if (other.getIncludeChildren() != false) { setIncludeChildren(other.getIncludeChildren()); } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } + switch (other.getOptionsCase()) { + case BIGQUERY_OPTIONS: + { + mergeBigqueryOptions(other.getBigqueryOptions()); + break; + } + case OPTIONS_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1132,13 +1442,27 @@ public Builder mergeFrom( return this; } + private int optionsCase_ = 0; + private java.lang.Object options_; + + public OptionsCase getOptionsCase() { + return OptionsCase.forNumber(optionsCase_); + } + + public Builder clearOptions() { + optionsCase_ = 0; + options_ = null; + onChanged(); + return this; + } + private java.lang.Object name_ = ""; /** * * *
      * Required. The client-assigned sink identifier, unique within the
-     * project. Example: `"my-syslog-errors-to-pubsub"`.  Sink identifiers are
+     * 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.
@@ -1162,7 +1486,7 @@ public java.lang.String getName() {
      *
      * 
      * Required. The client-assigned sink identifier, unique within the
-     * project. Example: `"my-syslog-errors-to-pubsub"`.  Sink identifiers are
+     * 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.
@@ -1186,7 +1510,7 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      * 
      * Required. The client-assigned sink identifier, unique within the
-     * project. Example: `"my-syslog-errors-to-pubsub"`.  Sink identifiers are
+     * 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.
@@ -1208,7 +1532,7 @@ public Builder setName(java.lang.String value) {
      *
      * 
      * Required. The client-assigned sink identifier, unique within the
-     * project. Example: `"my-syslog-errors-to-pubsub"`.  Sink identifiers are
+     * 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.
@@ -1227,7 +1551,7 @@ public Builder clearName() {
      *
      * 
      * Required. The client-assigned sink identifier, unique within the
-     * project. Example: `"my-syslog-errors-to-pubsub"`.  Sink identifiers are
+     * 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.
@@ -1257,8 +1581,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      *     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
      * The sink's `writer_identity`, set when the sink is created, must
      * have permission to write to the destination or else the log
-     * entries are not exported.  For more information, see
-     * [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).
+     * entries are not exported. For more information, see
+     * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs).
      * 
* * string destination = 3; @@ -1284,8 +1608,8 @@ public java.lang.String getDestination() { * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" * The sink's `writer_identity`, set when the sink is created, must * have permission to write to the destination or else the log - * entries are not exported. For more information, see - * [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). + * entries are not exported. For more information, see + * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). *
* * string destination = 3; @@ -1311,8 +1635,8 @@ public com.google.protobuf.ByteString getDestinationBytes() { * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" * The sink's `writer_identity`, set when the sink is created, must * have permission to write to the destination or else the log - * entries are not exported. For more information, see - * [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). + * entries are not exported. For more information, see + * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). *
* * string destination = 3; @@ -1336,8 +1660,8 @@ public Builder setDestination(java.lang.String value) { * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" * The sink's `writer_identity`, set when the sink is created, must * have permission to write to the destination or else the log - * entries are not exported. For more information, see - * [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). + * entries are not exported. For more information, see + * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). *
* * string destination = 3; @@ -1358,8 +1682,8 @@ public Builder clearDestination() { * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" * The sink's `writer_identity`, set when the sink is created, must * have permission to write to the destination or else the log - * entries are not exported. For more information, see - * [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). + * entries are not exported. For more information, see + * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). *
* * string destination = 3; @@ -1380,10 +1704,9 @@ public Builder setDestinationBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional.
-     * An [advanced logs filter](/logging/docs/view/advanced_filters).  The only
+     * 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
-     * that match the filter.  For example:
+     * that match the filter. For example:
      *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
      * 
* @@ -1404,10 +1727,9 @@ public java.lang.String getFilter() { * * *
-     * Optional.
-     * An [advanced logs filter](/logging/docs/view/advanced_filters).  The only
+     * 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
-     * that match the filter.  For example:
+     * that match the filter. For example:
      *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
      * 
* @@ -1428,10 +1750,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * Optional.
-     * An [advanced logs filter](/logging/docs/view/advanced_filters).  The only
+     * 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
-     * that match the filter.  For example:
+     * that match the filter. For example:
      *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
      * 
* @@ -1450,10 +1771,9 @@ public Builder setFilter(java.lang.String value) { * * *
-     * Optional.
-     * An [advanced logs filter](/logging/docs/view/advanced_filters).  The only
+     * 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
-     * that match the filter.  For example:
+     * that match the filter. For example:
      *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
      * 
* @@ -1469,10 +1789,9 @@ public Builder clearFilter() { * * *
-     * Optional.
-     * An [advanced logs filter](/logging/docs/view/advanced_filters).  The only
+     * 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
-     * that match the filter.  For example:
+     * that match the filter. For example:
      *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
      * 
* @@ -1495,7 +1814,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * *
      * 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.
+     * entries. The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; @@ -1510,7 +1829,7 @@ public int getOutputVersionFormatValue() { * *
      * 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.
+     * entries. The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; @@ -1527,7 +1846,7 @@ public Builder setOutputVersionFormatValue(int value) { * *
      * 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.
+     * entries. The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; @@ -1545,7 +1864,7 @@ public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { * *
      * 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.
+     * entries. The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; @@ -1566,7 +1885,7 @@ public Builder setOutputVersionFormat(com.google.logging.v2.LogSink.VersionForma * *
      * 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.
+     * entries. The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; @@ -1586,16 +1905,16 @@ public Builder clearOutputVersionFormat() { * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
-     * which Logging writes the exported log entries to the sink's
-     * destination.  This field is set by
-     * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
+     * which Logging writes the exported log entries to the sink's destination.
+     * This field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
      * and
-     * [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
-     * based on the setting of `unique_writer_identity` in those methods.
+     * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink]
+     * based on the value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
      * exports from this sink will fail. For more information,
-     * see [Granting access for a
-     * resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
+     * see [Granting Access for a
+     * 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.
      * 
@@ -1618,16 +1937,16 @@ public java.lang.String getWriterIdentity() { * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
-     * which Logging writes the exported log entries to the sink's
-     * destination.  This field is set by
-     * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
+     * which Logging writes the exported log entries to the sink's destination.
+     * This field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
      * and
-     * [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
-     * based on the setting of `unique_writer_identity` in those methods.
+     * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink]
+     * based on the value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
      * exports from this sink will fail. For more information,
-     * see [Granting access for a
-     * resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
+     * see [Granting Access for a
+     * 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.
      * 
@@ -1650,16 +1969,16 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
-     * which Logging writes the exported log entries to the sink's
-     * destination.  This field is set by
-     * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
+     * which Logging writes the exported log entries to the sink's destination.
+     * This field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
      * and
-     * [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
-     * based on the setting of `unique_writer_identity` in those methods.
+     * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink]
+     * based on the value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
      * exports from this sink will fail. For more information,
-     * see [Granting access for a
-     * resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
+     * see [Granting Access for a
+     * 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.
      * 
@@ -1680,16 +1999,16 @@ public Builder setWriterIdentity(java.lang.String value) { * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
-     * which Logging writes the exported log entries to the sink's
-     * destination.  This field is set by
-     * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
+     * which Logging writes the exported log entries to the sink's destination.
+     * This field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
      * and
-     * [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
-     * based on the setting of `unique_writer_identity` in those methods.
+     * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink]
+     * based on the value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
      * exports from this sink will fail. For more information,
-     * see [Granting access for a
-     * resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
+     * see [Granting Access for a
+     * 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.
      * 
@@ -1707,16 +2026,16 @@ public Builder clearWriterIdentity() { * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
-     * which Logging writes the exported log entries to the sink's
-     * destination.  This field is set by
-     * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
+     * which Logging writes the exported log entries to the sink's destination.
+     * This field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
      * and
-     * [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
-     * based on the setting of `unique_writer_identity` in those methods.
+     * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink]
+     * based on the value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
      * exports from this sink will fail. For more information,
-     * see [Granting access for a
-     * resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
+     * see [Granting Access for a
+     * 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.
      * 
@@ -1811,6 +2130,584 @@ public Builder clearIncludeChildren() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.BigQueryOptions, + com.google.logging.v2.BigQueryOptions.Builder, + com.google.logging.v2.BigQueryOptionsOrBuilder> + bigqueryOptionsBuilder_; + /** + * + * + *
+     * Optional. Options that affect sinks exporting data to BigQuery.
+     * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + public boolean hasBigqueryOptions() { + return optionsCase_ == 12; + } + /** + * + * + *
+     * Optional. Options that affect sinks exporting data to BigQuery.
+     * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + public com.google.logging.v2.BigQueryOptions getBigqueryOptions() { + if (bigqueryOptionsBuilder_ == null) { + if (optionsCase_ == 12) { + return (com.google.logging.v2.BigQueryOptions) options_; + } + return com.google.logging.v2.BigQueryOptions.getDefaultInstance(); + } else { + if (optionsCase_ == 12) { + return bigqueryOptionsBuilder_.getMessage(); + } + return com.google.logging.v2.BigQueryOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Options that affect sinks exporting data to BigQuery.
+     * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + public Builder setBigqueryOptions(com.google.logging.v2.BigQueryOptions value) { + if (bigqueryOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + bigqueryOptionsBuilder_.setMessage(value); + } + optionsCase_ = 12; + return this; + } + /** + * + * + *
+     * Optional. Options that affect sinks exporting data to BigQuery.
+     * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + public Builder setBigqueryOptions( + com.google.logging.v2.BigQueryOptions.Builder builderForValue) { + if (bigqueryOptionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + bigqueryOptionsBuilder_.setMessage(builderForValue.build()); + } + optionsCase_ = 12; + return this; + } + /** + * + * + *
+     * Optional. Options that affect sinks exporting data to BigQuery.
+     * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + public Builder mergeBigqueryOptions(com.google.logging.v2.BigQueryOptions value) { + if (bigqueryOptionsBuilder_ == null) { + if (optionsCase_ == 12 + && options_ != com.google.logging.v2.BigQueryOptions.getDefaultInstance()) { + options_ = + com.google.logging.v2.BigQueryOptions.newBuilder( + (com.google.logging.v2.BigQueryOptions) options_) + .mergeFrom(value) + .buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + if (optionsCase_ == 12) { + bigqueryOptionsBuilder_.mergeFrom(value); + } + bigqueryOptionsBuilder_.setMessage(value); + } + optionsCase_ = 12; + return this; + } + /** + * + * + *
+     * Optional. Options that affect sinks exporting data to BigQuery.
+     * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + public Builder clearBigqueryOptions() { + if (bigqueryOptionsBuilder_ == null) { + if (optionsCase_ == 12) { + optionsCase_ = 0; + options_ = null; + onChanged(); + } + } else { + if (optionsCase_ == 12) { + optionsCase_ = 0; + options_ = null; + } + bigqueryOptionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Options that affect sinks exporting data to BigQuery.
+     * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + public com.google.logging.v2.BigQueryOptions.Builder getBigqueryOptionsBuilder() { + return getBigqueryOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Options that affect sinks exporting data to BigQuery.
+     * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilder() { + if ((optionsCase_ == 12) && (bigqueryOptionsBuilder_ != null)) { + return bigqueryOptionsBuilder_.getMessageOrBuilder(); + } else { + if (optionsCase_ == 12) { + return (com.google.logging.v2.BigQueryOptions) options_; + } + return com.google.logging.v2.BigQueryOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Options that affect sinks exporting data to BigQuery.
+     * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.BigQueryOptions, + com.google.logging.v2.BigQueryOptions.Builder, + com.google.logging.v2.BigQueryOptionsOrBuilder> + getBigqueryOptionsFieldBuilder() { + if (bigqueryOptionsBuilder_ == null) { + if (!(optionsCase_ == 12)) { + options_ = com.google.logging.v2.BigQueryOptions.getDefaultInstance(); + } + bigqueryOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.BigQueryOptions, + com.google.logging.v2.BigQueryOptions.Builder, + com.google.logging.v2.BigQueryOptionsOrBuilder>( + (com.google.logging.v2.BigQueryOptions) options_, + getParentForChildren(), + isClean()); + options_ = null; + } + optionsCase_ = 12; + onChanged(); + ; + return bigqueryOptionsBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. The creation timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. The creation timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The creation timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The creation timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The creation timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. The creation timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. The last update timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. The last update timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The last update timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The last update timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The last update timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. The last update timestamp of the sink.
+     * This field may not be present for older sinks.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1821,7 +2718,7 @@ public Builder clearIncludeChildren() { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -1834,7 +2731,7 @@ public boolean hasStartTime() { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -1851,7 +2748,7 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -1874,7 +2771,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -1894,7 +2791,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -1919,7 +2816,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -1940,7 +2837,7 @@ public Builder clearStartTime() { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -1955,7 +2852,7 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -1972,7 +2869,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -2004,7 +2901,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -2017,7 +2914,7 @@ public boolean hasEndTime() { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -2034,7 +2931,7 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -2057,7 +2954,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -2077,7 +2974,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -2102,7 +2999,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -2123,7 +3020,7 @@ public Builder clearEndTime() { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -2138,7 +3035,7 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -2155,7 +3052,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * *
-     * Deprecated. This field is ignored when creating or updating sinks.
+     * Do not use. This field is ignored.
      * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java index 4e3722d219b7..77ece1cc106d 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java @@ -13,7 +13,7 @@ public interface LogSinkOrBuilder * *
    * Required. The client-assigned sink identifier, unique within the
-   * project. Example: `"my-syslog-errors-to-pubsub"`.  Sink identifiers are
+   * 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.
@@ -27,7 +27,7 @@ public interface LogSinkOrBuilder
    *
    * 
    * Required. The client-assigned sink identifier, unique within the
-   * project. Example: `"my-syslog-errors-to-pubsub"`.  Sink identifiers are
+   * 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.
@@ -47,8 +47,8 @@ public interface LogSinkOrBuilder
    *     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
    * The sink's `writer_identity`, set when the sink is created, must
    * have permission to write to the destination or else the log
-   * entries are not exported.  For more information, see
-   * [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).
+   * entries are not exported. For more information, see
+   * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs).
    * 
* * string destination = 3; @@ -64,8 +64,8 @@ public interface LogSinkOrBuilder * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" * The sink's `writer_identity`, set when the sink is created, must * have permission to write to the destination or else the log - * entries are not exported. For more information, see - * [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). + * entries are not exported. For more information, see + * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). *
* * string destination = 3; @@ -76,10 +76,9 @@ public interface LogSinkOrBuilder * * *
-   * Optional.
-   * An [advanced logs filter](/logging/docs/view/advanced_filters).  The only
+   * 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
-   * that match the filter.  For example:
+   * that match the filter. For example:
    *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
    * 
* @@ -90,10 +89,9 @@ public interface LogSinkOrBuilder * * *
-   * Optional.
-   * An [advanced logs filter](/logging/docs/view/advanced_filters).  The only
+   * 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
-   * that match the filter.  For example:
+   * that match the filter. For example:
    *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
    * 
* @@ -106,7 +104,7 @@ public interface LogSinkOrBuilder * *
    * 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.
+   * entries. The v2 format is used by default and cannot be changed.
    * 
* * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; @@ -119,7 +117,7 @@ public interface LogSinkOrBuilder * *
    * 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.
+   * entries. The v2 format is used by default and cannot be changed.
    * 
* * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; @@ -133,16 +131,16 @@ public interface LogSinkOrBuilder * *
    * Output only. An IAM identity&mdash;a service account or group&mdash;under
-   * which Logging writes the exported log entries to the sink's
-   * destination.  This field is set by
-   * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
+   * which Logging writes the exported log entries to the sink's destination.
+   * This field is set by
+   * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
    * and
-   * [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
-   * based on the setting of `unique_writer_identity` in those methods.
+   * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink]
+   * based on the value of `unique_writer_identity` in those methods.
    * Until you grant this identity write-access to the destination, log entry
    * exports from this sink will fail. For more information,
-   * see [Granting access for a
-   * resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
+   * see [Granting Access for a
+   * 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.
    * 
@@ -155,16 +153,16 @@ public interface LogSinkOrBuilder * *
    * Output only. An IAM identity&mdash;a service account or group&mdash;under
-   * which Logging writes the exported log entries to the sink's
-   * destination.  This field is set by
-   * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
+   * which Logging writes the exported log entries to the sink's destination.
+   * This field is set by
+   * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
    * and
-   * [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
-   * based on the setting of `unique_writer_identity` in those methods.
+   * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink]
+   * based on the value of `unique_writer_identity` in those methods.
    * Until you grant this identity write-access to the destination, log entry
    * exports from this sink will fail. For more information,
-   * see [Granting access for a
-   * resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
+   * see [Granting Access for a
+   * 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.
    * 
@@ -199,7 +197,106 @@ public interface LogSinkOrBuilder * * *
-   * Deprecated. This field is ignored when creating or updating sinks.
+   * Optional. Options that affect sinks exporting data to BigQuery.
+   * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + boolean hasBigqueryOptions(); + /** + * + * + *
+   * Optional. Options that affect sinks exporting data to BigQuery.
+   * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + com.google.logging.v2.BigQueryOptions getBigqueryOptions(); + /** + * + * + *
+   * Optional. Options that affect sinks exporting data to BigQuery.
+   * 
+ * + * .google.logging.v2.BigQueryOptions bigquery_options = 12; + */ + com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilder(); + + /** + * + * + *
+   * Output only. The creation timestamp of the sink.
+   * This field may not be present for older sinks.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The creation timestamp of the sink.
+   * This field may not be present for older sinks.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The creation timestamp of the sink.
+   * This field may not be present for older sinks.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 13; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The last update timestamp of the sink.
+   * This field may not be present for older sinks.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The last update timestamp of the sink.
+   * This field may not be present for older sinks.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The last update timestamp of the sink.
+   * This field may not be present for older sinks.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 14; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Do not use. This field is ignored.
    * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -210,7 +307,7 @@ public interface LogSinkOrBuilder * * *
-   * Deprecated. This field is ignored when creating or updating sinks.
+   * Do not use. This field is ignored.
    * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -221,7 +318,7 @@ public interface LogSinkOrBuilder * * *
-   * Deprecated. This field is ignored when creating or updating sinks.
+   * Do not use. This field is ignored.
    * 
* * .google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -233,7 +330,7 @@ public interface LogSinkOrBuilder * * *
-   * Deprecated. This field is ignored when creating or updating sinks.
+   * Do not use. This field is ignored.
    * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -244,7 +341,7 @@ public interface LogSinkOrBuilder * * *
-   * Deprecated. This field is ignored when creating or updating sinks.
+   * Do not use. This field is ignored.
    * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; @@ -255,11 +352,13 @@ public interface LogSinkOrBuilder * * *
-   * Deprecated. This field is ignored when creating or updating sinks.
+   * Do not use. This field is ignored.
    * 
* * .google.protobuf.Timestamp end_time = 11 [deprecated = true]; */ @java.lang.Deprecated com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + public com.google.logging.v2.LogSink.OptionsCase getOptionsCase(); } diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java index 3efdd3cdf535..8901cf964eb5 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java @@ -16,6 +16,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_logging_v2_LogSink_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_logging_v2_LogSink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_BigQueryOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_logging_v2_ListSinksRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -78,131 +82,146 @@ 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\034google/api/annotati" - + "ons.proto\032\033google/protobuf/empty.proto\032 " - + "google/protobuf/field_mask.proto\032\037google" - + "/protobuf/timestamp.proto\"\343\002\n\007LogSink\022\014\n" - + "\004name\030\001 \001(\t\022\023\n\013destination\030\003 \001(\t\022\016\n\006filt" - + "er\030\005 \001(\t\022K\n\025output_version_format\030\006 \001(\0162" - + "(.google.logging.v2.LogSink.VersionForma" - + "tB\002\030\001\022\027\n\017writer_identity\030\010 \001(\t\022\030\n\020includ" - + "e_children\030\t \001(\010\0222\n\nstart_time\030\n \001(\0132\032.g" - + "oogle.protobuf.TimestampB\002\030\001\0220\n\010end_time" - + "\030\013 \001(\0132\032.google.protobuf.TimestampB\002\030\001\"?" - + "\n\rVersionFormat\022\036\n\032VERSION_FORMAT_UNSPEC" - + "IFIED\020\000\022\006\n\002V2\020\001\022\006\n\002V1\020\002\"I\n\020ListSinksRequ" - + "est\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.LogSi" - + "nk\022\027\n\017next_page_token\030\002 \001(\t\"#\n\016GetSinkRe" - + "quest\022\021\n\tsink_name\030\001 \001(\t\"m\n\021CreateSinkRe" - + "quest\022\016\n\006parent\030\001 \001(\t\022(\n\004sink\030\002 \001(\0132\032.go" - + "ogle.logging.v2.LogSink\022\036\n\026unique_writer" - + "_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_iden" - + "tity\030\003 \001(\010\022/\n\013update_mask\030\004 \001(\0132\032.google" - + ".protobuf.FieldMask\"&\n\021DeleteSinkRequest" - + "\022\021\n\tsink_name\030\001 \001(\t\"S\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\"N\n\025ListExclusio" - + "nsRequest\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\026ListExclusio" - + "nsResponse\0223\n\nexclusions\030\001 \003(\0132\037.google." - + "logging.v2.LogExclusion\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"#\n\023GetExclusionRequest\022\014\n\004name\030" - + "\001 \001(\t\"\\\n\026CreateExclusionRequest\022\016\n\006paren" - + "t\030\001 \001(\t\0222\n\texclusion\030\002 \001(\0132\037.google.logg" - + "ing.v2.LogExclusion\"\213\001\n\026UpdateExclusionR" - + "equest\022\014\n\004name\030\001 \001(\t\0222\n\texclusion\030\002 \001(\0132" - + "\037.google.logging.v2.LogExclusion\022/\n\013upda" - + "te_mask\030\003 \001(\0132\032.google.protobuf.FieldMas" - + "k\"&\n\026DeleteExclusionRequest\022\014\n\004name\030\001 \001(" - + "\t2\224\031\n\017ConfigServiceV2\022\207\002\n\tListSinks\022#.go" - + "ogle.logging.v2.ListSinksRequest\032$.googl" - + "e.logging.v2.ListSinksResponse\"\256\001\202\323\344\223\002\247\001" - + "\022\026/v2/{parent=*/*}/sinksZ\037\022\035/v2/{parent=" - + "projects/*}/sinksZ$\022\"/v2/{parent=organiz" - + "ations/*}/sinksZ\036\022\034/v2/{parent=folders/*" - + "}/sinksZ&\022$/v2/{parent=billingAccounts/*" - + "}/sinks\022\222\002\n\007GetSink\022!.google.logging.v2." - + "GetSinkRequest\032\032.google.logging.v2.LogSi" - + "nk\"\307\001\202\323\344\223\002\300\001\022\033/v2/{sink_name=*/*/sinks/*" - + "}Z$\022\"/v2/{sink_name=projects/*/sinks/*}Z" - + ")\022\'/v2/{sink_name=organizations/*/sinks/" - + "*}Z#\022!/v2/{sink_name=folders/*/sinks/*}Z" - + "+\022)/v2/{sink_name=billingAccounts/*/sink" - + "s/*}\022\235\002\n\nCreateSink\022$.google.logging.v2." - + "CreateSinkRequest\032\032.google.logging.v2.Lo" - + "gSink\"\314\001\202\323\344\223\002\305\001\"\026/v2/{parent=*/*}/sinks:" - + "\004sinkZ%\"\035/v2/{parent=projects/*}/sinks:\004" - + "sinkZ*\"\"/v2/{parent=organizations/*}/sin" - + "ks:\004sinkZ$\"\034/v2/{parent=folders/*}/sinks" - + ":\004sinkZ,\"$/v2/{parent=billingAccounts/*}" - + "/sinks:\004sink\022\361\003\n\nUpdateSink\022$.google.log" - + "ging.v2.UpdateSinkRequest\032\032.google.loggi" - + "ng.v2.LogSink\"\240\003\202\323\344\223\002\231\003\032\033/v2/{sink_name=" - + "*/*/sinks/*}:\004sinkZ*\032\"/v2/{sink_name=pro" - + "jects/*/sinks/*}:\004sinkZ/\032\'/v2/{sink_name" - + "=organizations/*/sinks/*}:\004sinkZ)\032!/v2/{" - + "sink_name=folders/*/sinks/*}:\004sinkZ1\032)/v" - + "2/{sink_name=billingAccounts/*/sinks/*}:" - + "\004sinkZ*2\"/v2/{sink_name=projects/*/sinks" - + "/*}:\004sinkZ/2\'/v2/{sink_name=organization" - + "s/*/sinks/*}:\004sinkZ)2!/v2/{sink_name=fol" - + "ders/*/sinks/*}:\004sinkZ12)/v2/{sink_name=" - + "billingAccounts/*/sinks/*}:\004sink\022\224\002\n\nDel" - + "eteSink\022$.google.logging.v2.DeleteSinkRe" - + "quest\032\026.google.protobuf.Empty\"\307\001\202\323\344\223\002\300\001*" - + "\033/v2/{sink_name=*/*/sinks/*}Z$*\"/v2/{sin" - + "k_name=projects/*/sinks/*}Z)*\'/v2/{sink_" - + "name=organizations/*/sinks/*}Z#*!/v2/{si" - + "nk_name=folders/*/sinks/*}Z+*)/v2/{sink_" - + "name=billingAccounts/*/sinks/*}\022\257\002\n\016List" - + "Exclusions\022(.google.logging.v2.ListExclu" - + "sionsRequest\032).google.logging.v2.ListExc" - + "lusionsResponse\"\307\001\202\323\344\223\002\300\001\022\033/v2/{parent=*" - + "/*}/exclusionsZ$\022\"/v2/{parent=projects/*" - + "}/exclusionsZ)\022\'/v2/{parent=organization" - + "s/*}/exclusionsZ#\022!/v2/{parent=folders/*" - + "}/exclusionsZ+\022)/v2/{parent=billingAccou" - + "nts/*}/exclusions\022\241\002\n\014GetExclusion\022&.goo" - + "gle.logging.v2.GetExclusionRequest\032\037.goo" - + "gle.logging.v2.LogExclusion\"\307\001\202\323\344\223\002\300\001\022\033/" - + "v2/{name=*/*/exclusions/*}Z$\022\"/v2/{name=" - + "projects/*/exclusions/*}Z)\022\'/v2/{name=or" - + "ganizations/*/exclusions/*}Z#\022!/v2/{name" - + "=folders/*/exclusions/*}Z+\022)/v2/{name=bi" - + "llingAccounts/*/exclusions/*}\022\336\002\n\017Create" - + "Exclusion\022).google.logging.v2.CreateExcl" - + "usionRequest\032\037.google.logging.v2.LogExcl" - + "usion\"\376\001\202\323\344\223\002\367\001\"\033/v2/{parent=*/*}/exclus" - + "ions:\texclusionZ/\"\"/v2/{parent=projects/" - + "*}/exclusions:\texclusionZ4\"\'/v2/{parent=" - + "organizations/*}/exclusions:\texclusionZ." - + "\"!/v2/{parent=folders/*}/exclusions:\texc" - + "lusionZ6\")/v2/{parent=billingAccounts/*}" - + "/exclusions:\texclusion\022\336\002\n\017UpdateExclusi" - + "on\022).google.logging.v2.UpdateExclusionRe" - + "quest\032\037.google.logging.v2.LogExclusion\"\376" - + "\001\202\323\344\223\002\367\0012\033/v2/{name=*/*/exclusions/*}:\te" - + "xclusionZ/2\"/v2/{name=projects/*/exclusi" - + "ons/*}:\texclusionZ42\'/v2/{name=organizat" - + "ions/*/exclusions/*}:\texclusionZ.2!/v2/{" - + "name=folders/*/exclusions/*}:\texclusionZ" - + "62)/v2/{name=billingAccounts/*/exclusion" - + "s/*}:\texclusion\022\236\002\n\017DeleteExclusion\022).go" - + "ogle.logging.v2.DeleteExclusionRequest\032\026" - + ".google.protobuf.Empty\"\307\001\202\323\344\223\002\300\001*\033/v2/{n" - + "ame=*/*/exclusions/*}Z$*\"/v2/{name=proje" - + "cts/*/exclusions/*}Z)*\'/v2/{name=organiz" - + "ations/*/exclusions/*}Z#*!/v2/{name=fold" - + "ers/*/exclusions/*}Z+*)/v2/{name=billing" - + "Accounts/*/exclusions/*}B\236\001\n\025com.google." - + "logging.v2B\022LoggingConfigProtoP\001Z8google" - + ".golang.org/genproto/googleapis/logging/" - + "v2;logging\370\001\001\252\002\027Google.Cloud.Logging.V2\312" - + "\002\027Google\\Cloud\\Logging\\V2b\006proto3" + + "\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" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -215,10 +234,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.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(), }, assigner); internal_static_google_logging_v2_LogSink_descriptor = getDescriptor().getMessageTypes().get(0); @@ -232,11 +253,23 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "OutputVersionFormat", "WriterIdentity", "IncludeChildren", + "BigqueryOptions", + "CreateTime", + "UpdateTime", "StartTime", "EndTime", + "Options", }); - internal_static_google_logging_v2_ListSinksRequest_descriptor = + internal_static_google_logging_v2_BigQueryOptions_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_BigQueryOptions_descriptor, + new java.lang.String[] { + "UsePartitionedTables", + }); + internal_static_google_logging_v2_ListSinksRequest_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_ListSinksRequest_descriptor, @@ -244,7 +277,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Parent", "PageToken", "PageSize", }); internal_static_google_logging_v2_ListSinksResponse_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_ListSinksResponse_descriptor, @@ -252,7 +285,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Sinks", "NextPageToken", }); internal_static_google_logging_v2_GetSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_GetSinkRequest_descriptor, @@ -260,7 +293,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "SinkName", }); internal_static_google_logging_v2_CreateSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_CreateSinkRequest_descriptor, @@ -268,7 +301,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Parent", "Sink", "UniqueWriterIdentity", }); internal_static_google_logging_v2_UpdateSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_UpdateSinkRequest_descriptor, @@ -276,7 +309,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "SinkName", "Sink", "UniqueWriterIdentity", "UpdateMask", }); internal_static_google_logging_v2_DeleteSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_DeleteSinkRequest_descriptor, @@ -284,15 +317,15 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "SinkName", }); internal_static_google_logging_v2_LogExclusion_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_logging_v2_LogExclusion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_LogExclusion_descriptor, new java.lang.String[] { - "Name", "Description", "Filter", "Disabled", + "Name", "Description", "Filter", "Disabled", "CreateTime", "UpdateTime", }); internal_static_google_logging_v2_ListExclusionsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_ListExclusionsRequest_descriptor, @@ -300,7 +333,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Parent", "PageToken", "PageSize", }); internal_static_google_logging_v2_ListExclusionsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_ListExclusionsResponse_descriptor, @@ -308,7 +341,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Exclusions", "NextPageToken", }); internal_static_google_logging_v2_GetExclusionRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_GetExclusionRequest_descriptor, @@ -316,7 +349,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Name", }); internal_static_google_logging_v2_CreateExclusionRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_CreateExclusionRequest_descriptor, @@ -324,7 +357,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Parent", "Exclusion", }); internal_static_google_logging_v2_UpdateExclusionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_UpdateExclusionRequest_descriptor, @@ -332,7 +365,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Name", "Exclusion", "UpdateMask", }); internal_static_google_logging_v2_DeleteExclusionRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_DeleteExclusionRequest_descriptor, @@ -341,13 +374,17 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.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/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java index 95d9b90575fe..6064adb5afe6 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java @@ -54,56 +54,66 @@ 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\034google/api/annotat" - + "ions.proto\032\035google/api/distribution.prot" - + "o\032\027google/api/metric.proto\032\033google/proto" - + "buf/empty.proto\032 google/protobuf/field_m" - + "ask.proto\032\037google/protobuf/timestamp.pro" - + "to\"\261\003\n\tLogMetric\022\014\n\004name\030\001 \001(\t\022\023\n\013descri" - + "ption\030\002 \001(\t\022\016\n\006filter\030\003 \001(\t\0227\n\021metric_de" - + "scriptor\030\005 \001(\0132\034.google.api.MetricDescri" - + "ptor\022\027\n\017value_extractor\030\006 \001(\t\022K\n\020label_e" - + "xtractors\030\007 \003(\01321.google.logging.v2.LogM" - + "etric.LabelExtractorsEntry\022>\n\016bucket_opt" - + "ions\030\010 \001(\0132&.google.api.Distribution.Buc" - + "ketOptions\022<\n\007version\030\004 \001(\0162\'.google.log" - + "ging.v2.LogMetric.ApiVersionB\002\030\001\0326\n\024Labe" - + "lExtractorsEntry\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\"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\017next_" - + "page_token\030\002 \001(\t\"*\n\023GetLogMetricRequest\022" - + "\023\n\013metric_name\030\001 \001(\t\"V\n\026CreateLogMetricR" - + "equest\022\016\n\006parent\030\001 \001(\t\022,\n\006metric\030\002 \001(\0132\034" - + ".google.logging.v2.LogMetric\"[\n\026UpdateLo" - + "gMetricRequest\022\023\n\013metric_name\030\001 \001(\t\022,\n\006m" - + "etric\030\002 \001(\0132\034.google.logging.v2.LogMetri" - + "c\"-\n\026DeleteLogMetricRequest\022\023\n\013metric_na" - + "me\030\001 \001(\t2\324\005\n\020MetricsServiceV2\022\216\001\n\016ListLo" - + "gMetrics\022(.google.logging.v2.ListLogMetr" - + "icsRequest\032).google.logging.v2.ListLogMe" - + "tricsResponse\"\'\202\323\344\223\002!\022\037/v2/{parent=proje" - + "cts/*}/metrics\022\204\001\n\014GetLogMetric\022&.google" - + ".logging.v2.GetLogMetricRequest\032\034.google" - + ".logging.v2.LogMetric\".\202\323\344\223\002(\022&/v2/{metr" - + "ic_name=projects/*/metrics/*}\022\213\001\n\017Create" - + "LogMetric\022).google.logging.v2.CreateLogM" - + "etricRequest\032\034.google.logging.v2.LogMetr" - + "ic\"/\202\323\344\223\002)\"\037/v2/{parent=projects/*}/metr" - + "ics:\006metric\022\222\001\n\017UpdateLogMetric\022).google" - + ".logging.v2.UpdateLogMetricRequest\032\034.goo" - + "gle.logging.v2.LogMetric\"6\202\323\344\223\0020\032&/v2/{m" - + "etric_name=projects/*/metrics/*}:\006metric" - + "\022\204\001\n\017DeleteLogMetric\022).google.logging.v2" - + ".DeleteLogMetricRequest\032\026.google.protobu" - + "f.Empty\".\202\323\344\223\002(*&/v2/{metric_name=projec" - + "ts/*/metrics/*}B\237\001\n\025com.google.logging.v" - + "2B\023LoggingMetricsProtoP\001Z8google.golang." - + "org/genproto/googleapis/logging/v2;loggi" - + "ng\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google" - + "\\Cloud\\Logging\\V2b\006proto3" + + "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" + + "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" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -116,12 +126,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.DistributionProto.getDescriptor(), com.google.api.MetricProto.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(), }, assigner); internal_static_google_logging_v2_LogMetric_descriptor = @@ -137,6 +148,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "ValueExtractor", "LabelExtractors", "BucketOptions", + "CreateTime", + "UpdateTime", "Version", }); internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor = @@ -197,15 +210,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.DistributionProto.getDescriptor(); com.google.api.MetricProto.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/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java index 4e79d5801c03..e0ea1f3d193d 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java @@ -70,70 +70,80 @@ 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\034google/api/annotations.pro" - + "to\032#google/api/monitored_resource.proto\032" - + "!google/logging/v2/log_entry.proto\032\036goog" - + "le/protobuf/duration.proto\032\033google/proto" - + "buf/empty.proto\032\037google/protobuf/timesta" - + "mp.proto\032\027google/rpc/status.proto\"$\n\020Del" - + "eteLogRequest\022\020\n\010log_name\030\001 \001(\t\"\251\002\n\026Writ" - + "eLogEntriesRequest\022\020\n\010log_name\030\001 \001(\t\022/\n\010" - + "resource\030\002 \001(\0132\035.google.api.MonitoredRes" - + "ource\022E\n\006labels\030\003 \003(\01325.google.logging.v" - + "2.WriteLogEntriesRequest.LabelsEntry\022,\n\007" - + "entries\030\004 \003(\0132\033.google.logging.v2.LogEnt" - + "ry\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\005valu" - + "e\030\002 \001(\t:\0028\001\"\031\n\027WriteLogEntriesResponse\"\310" - + "\001\n\034WriteLogEntriesPartialErrors\022]\n\020log_e" - + "ntry_errors\030\001 \003(\0132C.google.logging.v2.Wr" - + "iteLogEntriesPartialErrors.LogEntryError" - + "sEntry\032I\n\023LogEntryErrorsEntry\022\013\n\003key\030\001 \001" - + "(\005\022!\n\005value\030\002 \001(\0132\022.google.rpc.Status:\0028" - + "\001\"\221\001\n\025ListLogEntriesRequest\022\027\n\013project_i" - + "ds\030\001 \003(\tB\002\030\001\022\026\n\016resource_names\030\010 \003(\t\022\016\n\006" - + "filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022\021\n\tpage_s" - + "ize\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\"_\n\026ListLog" - + "EntriesResponse\022,\n\007entries\030\001 \003(\0132\033.googl" - + "e.logging.v2.LogEntry\022\027\n\017next_page_token" - + "\030\002 \001(\t\"P\n\'ListMonitoredResourceDescripto" - + "rsRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_tok" - + "en\030\002 \001(\t\"\212\001\n(ListMonitoredResourceDescri" - + "ptorsResponse\022E\n\024resource_descriptors\030\001 " - + "\003(\0132\'.google.api.MonitoredResourceDescri" - + "ptor\022\027\n\017next_page_token\030\002 \001(\t\"H\n\017ListLog" - + "sRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\">\n\020ListLogsRespo" - + "nse\022\021\n\tlog_names\030\003 \003(\t\022\027\n\017next_page_toke" - + "n\030\002 \001(\t2\330\007\n\020LoggingServiceV2\022\353\001\n\tDeleteL" - + "og\022#.google.logging.v2.DeleteLogRequest\032" - + "\026.google.protobuf.Empty\"\240\001\202\323\344\223\002\231\001* /v2/{" - + "log_name=projects/*/logs/*}Z\'*%/v2/{log_" - + "name=organizations/*/logs/*}Z!*\037/v2/{log" - + "_name=folders/*/logs/*}Z)*\'/v2/{log_name" - + "=billingAccounts/*/logs/*}\022\206\001\n\017WriteLogE" - + "ntries\022).google.logging.v2.WriteLogEntri" - + "esRequest\032*.google.logging.v2.WriteLogEn" - + "triesResponse\"\034\202\323\344\223\002\026\"\021/v2/entries:write" - + ":\001*\022\202\001\n\016ListLogEntries\022(.google.logging." - + "v2.ListLogEntriesRequest\032).google.loggin" - + "g.v2.ListLogEntriesResponse\"\033\202\323\344\223\002\025\"\020/v2" - + "/entries:list:\001*\022\305\001\n ListMonitoredResour" - + "ceDescriptors\022:.google.logging.v2.ListMo" - + "nitoredResourceDescriptorsRequest\032;.goog" - + "le.logging.v2.ListMonitoredResourceDescr" - + "iptorsResponse\"(\202\323\344\223\002\"\022 /v2/monitoredRes" - + "ourceDescriptors\022\377\001\n\010ListLogs\022\".google.l" - + "ogging.v2.ListLogsRequest\032#.google.loggi" - + "ng.v2.ListLogsResponse\"\251\001\202\323\344\223\002\242\001\022\025/v2/{p" - + "arent=*/*}/logsZ\036\022\034/v2/{parent=projects/" - + "*}/logsZ#\022!/v2/{parent=organizations/*}/" - + "logsZ\035\022\033/v2/{parent=folders/*}/logsZ%\022#/" - + "v2/{parent=billingAccounts/*}/logsB\230\001\n\025c" - + "om.google.logging.v2B\014LoggingProtoP\001Z8go" - + "ogle.golang.org/genproto/googleapis/logg" - + "ing/v2;logging\370\001\001\252\002\027Google.Cloud.Logging" - + ".V2\312\002\027Google\\Cloud\\Logging\\V2b\006proto3" + + "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" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -146,13 +156,15 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.MonitoredResourceProto.getDescriptor(), com.google.logging.v2.LogEntryProto.getDescriptor(), + com.google.logging.v2.LoggingConfigProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), }, assigner); internal_static_google_logging_v2_DeleteLogRequest_descriptor = @@ -253,16 +265,20 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.MonitoredResourceProto.getDescriptor(); com.google.logging.v2.LogEntryProto.getDescriptor(); + com.google.logging.v2.LoggingConfigProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.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/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java index f401146b52c4..de26df863bcc 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java @@ -224,11 +224,10 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { * * *
-   * Required. A nonempty list of fields to change in the existing exclusion.
+   * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
-   * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-   * Fields not mentioned in `update_mask` are not changed and are ignored in
-   * the request.
+   * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+   * `update_mask` are not changed and are ignored in the request.
    * For example, to change the filter and description of an exclusion,
    * specify an `update_mask` of `"filter,description"`.
    * 
@@ -242,11 +241,10 @@ public boolean hasUpdateMask() { * * *
-   * Required. A nonempty list of fields to change in the existing exclusion.
+   * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
-   * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-   * Fields not mentioned in `update_mask` are not changed and are ignored in
-   * the request.
+   * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+   * `update_mask` are not changed and are ignored in the request.
    * For example, to change the filter and description of an exclusion,
    * specify an `update_mask` of `"filter,description"`.
    * 
@@ -260,11 +258,10 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. A nonempty list of fields to change in the existing exclusion.
+   * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
-   * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-   * Fields not mentioned in `update_mask` are not changed and are ignored in
-   * the request.
+   * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+   * `update_mask` are not changed and are ignored in the request.
    * For example, to change the filter and description of an exclusion,
    * specify an `update_mask` of `"filter,description"`.
    * 
@@ -966,11 +963,10 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { * * *
-     * Required. A nonempty list of fields to change in the existing exclusion.
+     * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
-     * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-     * Fields not mentioned in `update_mask` are not changed and are ignored in
-     * the request.
+     * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+     * `update_mask` are not changed and are ignored in the request.
      * For example, to change the filter and description of an exclusion,
      * specify an `update_mask` of `"filter,description"`.
      * 
@@ -984,11 +980,10 @@ public boolean hasUpdateMask() { * * *
-     * Required. A nonempty list of fields to change in the existing exclusion.
+     * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
-     * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-     * Fields not mentioned in `update_mask` are not changed and are ignored in
-     * the request.
+     * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+     * `update_mask` are not changed and are ignored in the request.
      * For example, to change the filter and description of an exclusion,
      * specify an `update_mask` of `"filter,description"`.
      * 
@@ -1008,11 +1003,10 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. A nonempty list of fields to change in the existing exclusion.
+     * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
-     * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-     * Fields not mentioned in `update_mask` are not changed and are ignored in
-     * the request.
+     * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+     * `update_mask` are not changed and are ignored in the request.
      * For example, to change the filter and description of an exclusion,
      * specify an `update_mask` of `"filter,description"`.
      * 
@@ -1036,11 +1030,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A nonempty list of fields to change in the existing exclusion.
+     * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
-     * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-     * Fields not mentioned in `update_mask` are not changed and are ignored in
-     * the request.
+     * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+     * `update_mask` are not changed and are ignored in the request.
      * For example, to change the filter and description of an exclusion,
      * specify an `update_mask` of `"filter,description"`.
      * 
@@ -1061,11 +1054,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. A nonempty list of fields to change in the existing exclusion.
+     * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
-     * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-     * Fields not mentioned in `update_mask` are not changed and are ignored in
-     * the request.
+     * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+     * `update_mask` are not changed and are ignored in the request.
      * For example, to change the filter and description of an exclusion,
      * specify an `update_mask` of `"filter,description"`.
      * 
@@ -1091,11 +1083,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. A nonempty list of fields to change in the existing exclusion.
+     * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
-     * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-     * Fields not mentioned in `update_mask` are not changed and are ignored in
-     * the request.
+     * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+     * `update_mask` are not changed and are ignored in the request.
      * For example, to change the filter and description of an exclusion,
      * specify an `update_mask` of `"filter,description"`.
      * 
@@ -1117,11 +1108,10 @@ public Builder clearUpdateMask() { * * *
-     * Required. A nonempty list of fields to change in the existing exclusion.
+     * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
-     * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-     * Fields not mentioned in `update_mask` are not changed and are ignored in
-     * the request.
+     * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+     * `update_mask` are not changed and are ignored in the request.
      * For example, to change the filter and description of an exclusion,
      * specify an `update_mask` of `"filter,description"`.
      * 
@@ -1137,11 +1127,10 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. A nonempty list of fields to change in the existing exclusion.
+     * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
-     * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-     * Fields not mentioned in `update_mask` are not changed and are ignored in
-     * the request.
+     * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+     * `update_mask` are not changed and are ignored in the request.
      * For example, to change the filter and description of an exclusion,
      * specify an `update_mask` of `"filter,description"`.
      * 
@@ -1161,11 +1150,10 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. A nonempty list of fields to change in the existing exclusion.
+     * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
-     * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-     * Fields not mentioned in `update_mask` are not changed and are ignored in
-     * the request.
+     * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+     * `update_mask` are not changed and are ignored in the request.
      * For example, to change the filter and description of an exclusion,
      * specify an `update_mask` of `"filter,description"`.
      * 
diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java index b08f4c6755e1..ba2e23fbe0cf 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java @@ -77,11 +77,10 @@ public interface UpdateExclusionRequestOrBuilder * * *
-   * Required. A nonempty list of fields to change in the existing exclusion.
+   * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
-   * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-   * Fields not mentioned in `update_mask` are not changed and are ignored in
-   * the request.
+   * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+   * `update_mask` are not changed and are ignored in the request.
    * For example, to change the filter and description of an exclusion,
    * specify an `update_mask` of `"filter,description"`.
    * 
@@ -93,11 +92,10 @@ public interface UpdateExclusionRequestOrBuilder * * *
-   * Required. A nonempty list of fields to change in the existing exclusion.
+   * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
-   * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-   * Fields not mentioned in `update_mask` are not changed and are ignored in
-   * the request.
+   * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+   * `update_mask` are not changed and are ignored in the request.
    * For example, to change the filter and description of an exclusion,
    * specify an `update_mask` of `"filter,description"`.
    * 
@@ -109,11 +107,10 @@ public interface UpdateExclusionRequestOrBuilder * * *
-   * Required. A nonempty list of fields to change in the existing exclusion.
+   * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
-   * [LogExclusion][google.logging.v2.LogExclusion] included in this request.
-   * Fields not mentioned in `update_mask` are not changed and are ignored in
-   * the request.
+   * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
+   * `update_mask` are not changed and are ignored in the request.
    * For example, to change the filter and description of an exclusion,
    * specify an `update_mask` of `"filter,description"`.
    * 
diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java index b41a9d08105a..4b9a62475264 100644 --- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java +++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java @@ -228,9 +228,8 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { * * *
-   * Optional. See
-   * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
-   * for a description of this field.  When updating a sink, the effect of this
+   * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
+   * for a description of this field. When updating a sink, the effect of this
    * field on the value of `writer_identity` in the updated sink depends on both
    * the old and new values of this field:
    * +   If the old and new values of this field are both false or both true,
@@ -255,7 +254,7 @@ public boolean getUniqueWriterIdentity() {
    * 
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
-   * in the update mask.  `name` and output only fields cannot be updated.
+   * in the update mask. `name` and output only fields cannot be updated.
    * An empty updateMask is temporarily treated as using the following mask
    * for backwards compatibility purposes:
    *   destination,filter,includeChildren
@@ -277,7 +276,7 @@ public boolean hasUpdateMask() {
    * 
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
-   * in the update mask.  `name` and output only fields cannot be updated.
+   * in the update mask. `name` and output only fields cannot be updated.
    * An empty updateMask is temporarily treated as using the following mask
    * for backwards compatibility purposes:
    *   destination,filter,includeChildren
@@ -299,7 +298,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * 
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
-   * in the update mask.  `name` and output only fields cannot be updated.
+   * in the update mask. `name` and output only fields cannot be updated.
    * An empty updateMask is temporarily treated as using the following mask
    * for backwards compatibility purposes:
    *   destination,filter,includeChildren
@@ -1014,9 +1013,8 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      *
      *
      * 
-     * Optional. See
-     * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
-     * for a description of this field.  When updating a sink, the effect of this
+     * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
+     * for a description of this field. When updating a sink, the effect of this
      * field on the value of `writer_identity` in the updated sink depends on both
      * the old and new values of this field:
      * +   If the old and new values of this field are both false or both true,
@@ -1036,9 +1034,8 @@ public boolean getUniqueWriterIdentity() {
      *
      *
      * 
-     * Optional. See
-     * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
-     * for a description of this field.  When updating a sink, the effect of this
+     * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
+     * for a description of this field. When updating a sink, the effect of this
      * field on the value of `writer_identity` in the updated sink depends on both
      * the old and new values of this field:
      * +   If the old and new values of this field are both false or both true,
@@ -1061,9 +1058,8 @@ public Builder setUniqueWriterIdentity(boolean value) {
      *
      *
      * 
-     * Optional. See
-     * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
-     * for a description of this field.  When updating a sink, the effect of this
+     * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
+     * for a description of this field. When updating a sink, the effect of this
      * field on the value of `writer_identity` in the updated sink depends on both
      * the old and new values of this field:
      * +   If the old and new values of this field are both false or both true,
@@ -1095,7 +1091,7 @@ public Builder clearUniqueWriterIdentity() {
      * 
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
-     * in the update mask.  `name` and output only fields cannot be updated.
+     * in the update mask. `name` and output only fields cannot be updated.
      * An empty updateMask is temporarily treated as using the following mask
      * for backwards compatibility purposes:
      *   destination,filter,includeChildren
@@ -1117,7 +1113,7 @@ public boolean hasUpdateMask() {
      * 
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
-     * in the update mask.  `name` and output only fields cannot be updated.
+     * in the update mask. `name` and output only fields cannot be updated.
      * An empty updateMask is temporarily treated as using the following mask
      * for backwards compatibility purposes:
      *   destination,filter,includeChildren
@@ -1145,7 +1141,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * 
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
-     * in the update mask.  `name` and output only fields cannot be updated.
+     * in the update mask. `name` and output only fields cannot be updated.
      * An empty updateMask is temporarily treated as using the following mask
      * for backwards compatibility purposes:
      *   destination,filter,includeChildren
@@ -1177,7 +1173,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * 
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
-     * in the update mask.  `name` and output only fields cannot be updated.
+     * in the update mask. `name` and output only fields cannot be updated.
      * An empty updateMask is temporarily treated as using the following mask
      * for backwards compatibility purposes:
      *   destination,filter,includeChildren
@@ -1206,7 +1202,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * 
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
-     * in the update mask.  `name` and output only fields cannot be updated.
+     * in the update mask. `name` and output only fields cannot be updated.
      * An empty updateMask is temporarily treated as using the following mask
      * for backwards compatibility purposes:
      *   destination,filter,includeChildren
@@ -1240,7 +1236,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * 
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
-     * in the update mask.  `name` and output only fields cannot be updated.
+     * in the update mask. `name` and output only fields cannot be updated.
      * An empty updateMask is temporarily treated as using the following mask
      * for backwards compatibility purposes:
      *   destination,filter,includeChildren
@@ -1270,7 +1266,7 @@ public Builder clearUpdateMask() {
      * 
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
-     * in the update mask.  `name` and output only fields cannot be updated.
+     * in the update mask. `name` and output only fields cannot be updated.
      * An empty updateMask is temporarily treated as using the following mask
      * for backwards compatibility purposes:
      *   destination,filter,includeChildren
@@ -1294,7 +1290,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * 
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
-     * in the update mask.  `name` and output only fields cannot be updated.
+     * in the update mask. `name` and output only fields cannot be updated.
      * An empty updateMask is temporarily treated as using the following mask
      * for backwards compatibility purposes:
      *   destination,filter,includeChildren
@@ -1322,7 +1318,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
-     * in the update mask.  `name` and output only fields cannot be updated.
+     * in the update mask. `name` and output only fields cannot be updated.
      * An empty updateMask is temporarily treated as using the following mask
      * for backwards compatibility purposes:
      *   destination,filter,includeChildren
diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java
index d7084c419101..260afbd4aa96 100644
--- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java
@@ -79,9 +79,8 @@ public interface UpdateSinkRequestOrBuilder
    *
    *
    * 
-   * Optional. See
-   * [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
-   * for a description of this field.  When updating a sink, the effect of this
+   * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
+   * for a description of this field. When updating a sink, the effect of this
    * field on the value of `writer_identity` in the updated sink depends on both
    * the old and new values of this field:
    * +   If the old and new values of this field are both false or both true,
@@ -102,7 +101,7 @@ public interface UpdateSinkRequestOrBuilder
    * 
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
-   * in the update mask.  `name` and output only fields cannot be updated.
+   * in the update mask. `name` and output only fields cannot be updated.
    * An empty updateMask is temporarily treated as using the following mask
    * for backwards compatibility purposes:
    *   destination,filter,includeChildren
@@ -122,7 +121,7 @@ public interface UpdateSinkRequestOrBuilder
    * 
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
-   * in the update mask.  `name` and output only fields cannot be updated.
+   * in the update mask. `name` and output only fields cannot be updated.
    * An empty updateMask is temporarily treated as using the following mask
    * for backwards compatibility purposes:
    *   destination,filter,includeChildren
@@ -142,7 +141,7 @@ public interface UpdateSinkRequestOrBuilder
    * 
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
-   * in the update mask.  `name` and output only fields cannot be updated.
+   * in the update mask. `name` and output only fields cannot be updated.
    * An empty updateMask is temporarily treated as using the following mask
    * for backwards compatibility purposes:
    *   destination,filter,includeChildren
diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
index 84f77d014caa..c1dda784e490 100644
--- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
+++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
@@ -401,8 +401,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * Log entries with timestamps that are more than the
    * [logs retention period](/logging/quota-policy) in the past or more than
    * 24 hours in the future will not be available when calling `entries.list`.
-   * However, those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * However, those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * To improve throughput and to avoid exceeding the
    * [quota limit](/logging/quota-policy) for calls to `entries.write`,
    * you should try to include several log entries in this list,
@@ -432,8 +432,8 @@ public java.util.List getEntriesList() {
    * Log entries with timestamps that are more than the
    * [logs retention period](/logging/quota-policy) in the past or more than
    * 24 hours in the future will not be available when calling `entries.list`.
-   * However, those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * However, those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * To improve throughput and to avoid exceeding the
    * [quota limit](/logging/quota-policy) for calls to `entries.write`,
    * you should try to include several log entries in this list,
@@ -464,8 +464,8 @@ public java.util.List getEntriesList() {
    * Log entries with timestamps that are more than the
    * [logs retention period](/logging/quota-policy) in the past or more than
    * 24 hours in the future will not be available when calling `entries.list`.
-   * However, those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * However, those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * To improve throughput and to avoid exceeding the
    * [quota limit](/logging/quota-policy) for calls to `entries.write`,
    * you should try to include several log entries in this list,
@@ -495,8 +495,8 @@ public int getEntriesCount() {
    * Log entries with timestamps that are more than the
    * [logs retention period](/logging/quota-policy) in the past or more than
    * 24 hours in the future will not be available when calling `entries.list`.
-   * However, those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * However, those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * To improve throughput and to avoid exceeding the
    * [quota limit](/logging/quota-policy) for calls to `entries.write`,
    * you should try to include several log entries in this list,
@@ -526,8 +526,8 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
    * Log entries with timestamps that are more than the
    * [logs retention period](/logging/quota-policy) in the past or more than
    * 24 hours in the future will not be available when calling `entries.list`.
-   * However, those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * However, those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * To improve throughput and to avoid exceeding the
    * [quota limit](/logging/quota-policy) for calls to `entries.write`,
    * you should try to include several log entries in this list,
@@ -1638,8 +1638,8 @@ private void ensureEntriesIsMutable() {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -1673,8 +1673,8 @@ public java.util.List getEntriesList() {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -1708,8 +1708,8 @@ public int getEntriesCount() {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -1743,8 +1743,8 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -1784,8 +1784,8 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -1822,8 +1822,8 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder buil
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -1863,8 +1863,8 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -1904,8 +1904,8 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -1942,8 +1942,8 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -1980,8 +1980,8 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder buil
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -2019,8 +2019,8 @@ public Builder addAllEntries(
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -2057,8 +2057,8 @@ public Builder clearEntries() {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -2095,8 +2095,8 @@ public Builder removeEntries(int index) {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -2126,8 +2126,8 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -2161,8 +2161,8 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -2197,8 +2197,8 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -2229,8 +2229,8 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
@@ -2261,8 +2261,8 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) {
      * Log entries with timestamps that are more than the
      * [logs retention period](/logging/quota-policy) in the past or more than
      * 24 hours in the future will not be available when calling `entries.list`.
-     * However, those log entries can still be exported with
-     * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+     * However, those log entries can still be
+     * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
      * [quota limit](/logging/quota-policy) for calls to `entries.write`,
      * you should try to include several log entries in this list,
diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java
index 951285eab22d..47b515aa465c 100644
--- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java
@@ -186,8 +186,8 @@ public interface WriteLogEntriesRequestOrBuilder
    * Log entries with timestamps that are more than the
    * [logs retention period](/logging/quota-policy) in the past or more than
    * 24 hours in the future will not be available when calling `entries.list`.
-   * However, those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * However, those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * To improve throughput and to avoid exceeding the
    * [quota limit](/logging/quota-policy) for calls to `entries.write`,
    * you should try to include several log entries in this list,
@@ -215,8 +215,8 @@ public interface WriteLogEntriesRequestOrBuilder
    * Log entries with timestamps that are more than the
    * [logs retention period](/logging/quota-policy) in the past or more than
    * 24 hours in the future will not be available when calling `entries.list`.
-   * However, those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * However, those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * To improve throughput and to avoid exceeding the
    * [quota limit](/logging/quota-policy) for calls to `entries.write`,
    * you should try to include several log entries in this list,
@@ -244,8 +244,8 @@ public interface WriteLogEntriesRequestOrBuilder
    * Log entries with timestamps that are more than the
    * [logs retention period](/logging/quota-policy) in the past or more than
    * 24 hours in the future will not be available when calling `entries.list`.
-   * However, those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * However, those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * To improve throughput and to avoid exceeding the
    * [quota limit](/logging/quota-policy) for calls to `entries.write`,
    * you should try to include several log entries in this list,
@@ -273,8 +273,8 @@ public interface WriteLogEntriesRequestOrBuilder
    * Log entries with timestamps that are more than the
    * [logs retention period](/logging/quota-policy) in the past or more than
    * 24 hours in the future will not be available when calling `entries.list`.
-   * However, those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * However, those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * To improve throughput and to avoid exceeding the
    * [quota limit](/logging/quota-policy) for calls to `entries.write`,
    * you should try to include several log entries in this list,
@@ -302,8 +302,8 @@ public interface WriteLogEntriesRequestOrBuilder
    * Log entries with timestamps that are more than the
    * [logs retention period](/logging/quota-policy) in the past or more than
    * 24 hours in the future will not be available when calling `entries.list`.
-   * However, those log entries can still be exported with
-   * [LogSinks](/logging/docs/api/tasks/exporting-logs).
+   * However, those log entries can still be
+   * [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
    * To improve throughput and to avoid exceeding the
    * [quota limit](/logging/quota-policy) for calls to `entries.write`,
    * you should try to include several log entries in this list,
diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/type/http_request.proto b/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/type/http_request.proto
new file mode 100644
index 000000000000..fc1afd7dc002
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/type/http_request.proto
@@ -0,0 +1,94 @@
+// Copyright 2019 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
+//
+//     http://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.
+//
+
+syntax = "proto3";
+
+package google.logging.type;
+
+import "google/protobuf/duration.proto";
+import "google/api/annotations.proto";
+
+option csharp_namespace = "Google.Cloud.Logging.Type";
+option go_package = "google.golang.org/genproto/googleapis/logging/type;ltype";
+option java_multiple_files = true;
+option java_outer_classname = "HttpRequestProto";
+option java_package = "com.google.logging.type";
+option php_namespace = "Google\\Cloud\\Logging\\Type";
+
+// A common proto for logging HTTP requests. Only contains semantics
+// defined by the HTTP specification. Product-specific logging
+// information MUST be defined in a separate message.
+message HttpRequest {
+  // The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
+  string request_method = 1;
+
+  // The scheme (http, https), the host name, the path and the query
+  // portion of the URL that was requested.
+  // Example: `"http://example.com/some/info?color=red"`.
+  string request_url = 2;
+
+  // The size of the HTTP request message in bytes, including the request
+  // headers and the request body.
+  int64 request_size = 3;
+
+  // The response code indicating the status of response.
+  // Examples: 200, 404.
+  int32 status = 4;
+
+  // The size of the HTTP response message sent back to the client, in bytes,
+  // including the response headers and the response body.
+  int64 response_size = 5;
+
+  // The user agent sent by the client. Example:
+  // `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
+  // CLR 1.0.3705)"`.
+  string user_agent = 6;
+
+  // The IP address (IPv4 or IPv6) of the client that issued the HTTP
+  // request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
+  string remote_ip = 7;
+
+  // The IP address (IPv4 or IPv6) of the origin server that the request was
+  // sent to.
+  string server_ip = 13;
+
+  // The referer URL of the request, as defined in
+  // [HTTP/1.1 Header Field
+  // Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
+  string referer = 8;
+
+  // The request processing latency on the server, from the time the request was
+  // received until the response was sent.
+  google.protobuf.Duration latency = 14;
+
+  // Whether or not a cache lookup was attempted.
+  bool cache_lookup = 11;
+
+  // Whether or not an entity was served from cache
+  // (with or without validation).
+  bool cache_hit = 9;
+
+  // Whether or not the response was validated with the origin server before
+  // being served from cache. This field is only meaningful if `cache_hit` is
+  // True.
+  bool cache_validated_with_origin_server = 10;
+
+  // The number of HTTP response bytes inserted into cache. Set only when a
+  // cache fill was attempted.
+  int64 cache_fill_bytes = 12;
+
+  // Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
+  string protocol = 15;
+}
diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/type/log_severity.proto b/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/type/log_severity.proto
new file mode 100644
index 000000000000..c6fd055a9001
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/type/log_severity.proto
@@ -0,0 +1,72 @@
+// Copyright 2019 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
+//
+//     http://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.
+//
+
+syntax = "proto3";
+
+package google.logging.type;
+
+import "google/api/annotations.proto";
+
+option csharp_namespace = "Google.Cloud.Logging.Type";
+option go_package = "google.golang.org/genproto/googleapis/logging/type;ltype";
+option java_multiple_files = true;
+option java_outer_classname = "LogSeverityProto";
+option java_package = "com.google.logging.type";
+option php_namespace = "Google\\Cloud\\Logging\\Type";
+
+// The severity of the event described in a log entry, expressed as one of the
+// standard severity levels listed below.  For your reference, the levels are
+// assigned the listed numeric values. The effect of using numeric values other
+// than those listed is undefined.
+//
+// You can filter for log entries by severity.  For example, the following
+// filter expression will match log entries with severities `INFO`, `NOTICE`,
+// and `WARNING`:
+//
+//     severity > DEBUG AND severity <= WARNING
+//
+// If you are writing log entries, you should map other severity encodings to
+// one of these standard levels. For example, you might map all of Java's FINE,
+// FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
+// original severity level in the log entry payload if you wish.
+enum LogSeverity {
+  // (0) The log entry has no assigned severity level.
+  DEFAULT = 0;
+
+  // (100) Debug or trace information.
+  DEBUG = 100;
+
+  // (200) Routine information, such as ongoing status or performance.
+  INFO = 200;
+
+  // (300) Normal but significant events, such as start up, shut down, or
+  // a configuration change.
+  NOTICE = 300;
+
+  // (400) Warning events might cause problems.
+  WARNING = 400;
+
+  // (500) Error events are likely to cause problems.
+  ERROR = 500;
+
+  // (600) Critical events cause more severe problems or outages.
+  CRITICAL = 600;
+
+  // (700) A person must take an action immediately.
+  ALERT = 700;
+
+  // (800) One or more systems are unusable.
+  EMERGENCY = 800;
+}
diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto b/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto
index de9786daf733..f0b037545199 100644
--- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto
+++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC.
+// Copyright 2019 Google LLC.
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -17,13 +17,14 @@ syntax = "proto3";
 
 package google.logging.v2;
 
-import "google/api/annotations.proto";
 import "google/api/monitored_resource.proto";
 import "google/logging/type/http_request.proto";
 import "google/logging/type/log_severity.proto";
 import "google/protobuf/any.proto";
 import "google/protobuf/struct.proto";
 import "google/protobuf/timestamp.proto";
+import "google/rpc/status.proto";
+import "google/api/annotations.proto";
 
 option cc_enable_arenas = true;
 option csharp_namespace = "Google.Cloud.Logging.V2";
@@ -34,6 +35,7 @@ option java_package = "com.google.logging.v2";
 option php_namespace = "Google\\Cloud\\Logging\\V2";
 
 // An individual entry in a log.
+//
 message LogEntry {
   // Required. The resource name of the log to which this log entry belongs:
   //
@@ -42,9 +44,9 @@ message LogEntry {
   //     "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
   //     "folders/[FOLDER_ID]/logs/[LOG_ID]"
   //
-  //  A project number may optionally be used in place of PROJECT_ID. The
-  //  project number is translated to its corresponding PROJECT_ID internally
-  //  and the `log_name` field will contain PROJECT_ID in queries and exports.
+  // A project number may optionally be used in place of PROJECT_ID. The project
+  // number is translated to its corresponding PROJECT_ID internally and the
+  // `log_name` field will contain PROJECT_ID in queries and exports.
   //
   // `[LOG_ID]` must be URL-encoded within `log_name`. Example:
   // `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
@@ -59,17 +61,23 @@ message LogEntry {
   // any results.
   string log_name = 12;
 
-  // Required. The primary monitored resource associated with this log entry.
-  // Example: a log entry that reports a database error would be
-  // associated with the monitored resource designating the particular
-  // database that reported the error.
+  // Required. The monitored resource that produced this log entry.
+  //
+  // Example: a log entry that reports a database error would be associated with
+  // the monitored resource designating the particular database that reported
+  // the error.
   google.api.MonitoredResource resource = 8;
 
   // Optional. The log entry payload, which can be one of multiple types.
   oneof payload {
-    // The log entry payload, represented as a protocol buffer.  Some
-    // Google Cloud Platform services use this field for their log
-    // entry payloads.
+    // The log entry payload, represented as a protocol buffer. Some Google
+    // Cloud Platform services use this field for their log entry payloads.
+    //
+    // The following protocol buffer types are supported; user-defined types
+    // are not supported:
+    //
+    //   "type.googleapis.com/google.cloud.audit.AuditLog"
+    //   "type.googleapis.com/google.appengine.logging.v1.RequestLog"
     google.protobuf.Any proto_payload = 2;
 
     // The log entry payload, represented as a Unicode string (UTF-8).
@@ -80,19 +88,18 @@ message LogEntry {
     google.protobuf.Struct json_payload = 6;
   }
 
-  // Optional. The time the event described by the log entry occurred.
-  // This time is used to compute the log entry's age and to enforce
-  // the logs retention period. If this field is omitted in a new log
-  // entry, then Logging assigns it the current time.
-  // Timestamps have nanosecond accuracy, but trailing zeros in the fractional
-  // seconds might be omitted when the timestamp is displayed.
+  // Optional. The time the event described by the log entry occurred.  This
+  // time is used to compute the log entry's age and to enforce the logs
+  // retention period. If this field is omitted in a new log entry, then Logging
+  // assigns it the current time.  Timestamps have nanosecond accuracy, but
+  // trailing zeros in the fractional seconds might be omitted when the
+  // timestamp is displayed.
   //
-  // Incoming log entries should have timestamps that are no more than
-  // the [logs retention period](/logging/quotas) in the past,
-  // and no more than 24 hours in the future. Log entries outside those time
-  // boundaries will not be available when calling `entries.list`, but
-  // those log entries can still be exported with
-  // [LogSinks](/logging/docs/api/tasks/exporting-logs).
+  // Incoming log entries should have timestamps that are no more than the [logs
+  // retention period](/logging/quotas) in the past, and no more than 24 hours
+  // in the future. Log entries outside those time boundaries will not be
+  // available when calling `entries.list`, but those log entries can still be
+  // [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
   google.protobuf.Timestamp timestamp = 9;
 
   // Output only. The time the log entry was received by Logging.
@@ -103,25 +110,31 @@ message LogEntry {
   google.logging.type.LogSeverity severity = 10;
 
   // 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.
+  // 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.
   string insert_id = 4;
 
-  // Optional. Information about the HTTP request associated with this
-  // log entry, if applicable.
+  // Optional. Information about the HTTP request associated with this log
+  // entry, if applicable.
   google.logging.type.HttpRequest http_request = 7;
 
   // Optional. A set of user-defined (key, value) data that provides additional
   // information about the log entry.
   map labels = 11;
 
-  // Output only. Additional metadata about the monitored resource.
+  // Deprecated. Output only. Additional metadata about the monitored resource.
+  //
   // Only `k8s_container`, `k8s_pod`, and `k8s_node` MonitoredResources have
-  // this field populated.
-  google.api.MonitoredResourceMetadata metadata = 25;
+  // this field populated for GKE versions older than 1.12.6. For GKE versions
+  // 1.12.6 and above, the `metadata` field has been deprecated. The Kubernetes
+  // pod labels that used to be in `metadata.userLabels` will now be present in
+  // the `labels` field with a key prefix of `k8s-pod/`. The Stackdriver system
+  // labels that were present in the `metadata.systemLabels` field will no
+  // longer be available in the LogEntry.
+  google.api.MonitoredResourceMetadata metadata = 25 [deprecated = true];
 
   // Optional. Information about an operation associated with the log entry, if
   // applicable.
@@ -134,12 +147,14 @@ message LogEntry {
   string trace = 22;
 
   // Optional. The span ID within the trace associated with the log entry.
-  // For Trace spans, this is the same format that the Trace
-  // API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such
-  // as "000000000000004a".
+  //
+  // For Trace spans, this is the same format that the Trace API v2 uses: a
+  // 16-character hexadecimal encoding of an 8-byte array, such as
+  // "000000000000004a".
   string span_id = 27;
 
   // Optional. The sampling decision of the trace associated with the log entry.
+  //
   // True means that the trace resource name in the `trace` field was sampled
   // for storage in a trace backend. False means that the trace was not sampled
   // for storage when this log entry was written, or the sampling decision was
@@ -155,12 +170,12 @@ message LogEntry {
 // Additional information about a potentially long-running operation with which
 // a log entry is associated.
 message LogEntryOperation {
-  // Optional. An arbitrary operation identifier. Log entries with the
-  // same identifier are assumed to be part of the same operation.
+  // Optional. An arbitrary operation identifier. Log entries with the same
+  // identifier are assumed to be part of the same operation.
   string id = 1;
 
-  // Optional. An arbitrary producer identifier. The combination of
-  // `id` and `producer` must be globally unique.  Examples for `producer`:
+  // Optional. An arbitrary producer identifier. The combination of `id` and
+  // `producer` must be globally unique. Examples for `producer`:
   // `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
   string producer = 2;
 
diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto b/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto
index d04cd5c03dd0..fc4217593770 100644
--- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto
+++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC.
+// Copyright 2019 Google LLC.
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -17,13 +17,15 @@ syntax = "proto3";
 
 package google.logging.v2;
 
-import "google/api/annotations.proto";
 import "google/api/monitored_resource.proto";
 import "google/logging/v2/log_entry.proto";
+import "google/logging/v2/logging_config.proto";
 import "google/protobuf/duration.proto";
 import "google/protobuf/empty.proto";
 import "google/protobuf/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";
@@ -35,6 +37,14 @@ option php_namespace = "Google\\Cloud\\Logging\\V2";
 
 // Service for ingesting and querying logs.
 service LoggingServiceV2 {
+  option (google.api.default_host) = "logging.googleapis.com";
+  option (google.api.oauth_scopes) =
+      "https://www.googleapis.com/auth/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/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
@@ -42,9 +52,18 @@ service LoggingServiceV2 {
   rpc DeleteLog(DeleteLogRequest) returns (google.protobuf.Empty) {
     option (google.api.http) = {
       delete: "/v2/{log_name=projects/*/logs/*}"
-      additional_bindings { delete: "/v2/{log_name=organizations/*/logs/*}" }
-      additional_bindings { delete: "/v2/{log_name=folders/*/logs/*}" }
-      additional_bindings { delete: "/v2/{log_name=billingAccounts/*/logs/*}" }
+      additional_bindings {
+        delete: "/v2/{log_name=*/*/logs/*}"
+      }
+      additional_bindings {
+        delete: "/v2/{log_name=organizations/*/logs/*}"
+      }
+      additional_bindings {
+        delete: "/v2/{log_name=folders/*/logs/*}"
+      }
+      additional_bindings {
+        delete: "/v2/{log_name=billingAccounts/*/logs/*}"
+      }
     };
   }
 
@@ -55,17 +74,16 @@ service LoggingServiceV2 {
   // A single request may contain log entries for a maximum of 1000
   // different resources (projects, organizations, billing accounts or
   // folders)
-  rpc WriteLogEntries(WriteLogEntriesRequest)
-      returns (WriteLogEntriesResponse) {
+  rpc WriteLogEntries(WriteLogEntriesRequest) returns (WriteLogEntriesResponse) {
     option (google.api.http) = {
       post: "/v2/entries:write"
       body: "*"
     };
   }
 
-  // Lists log entries.  Use this method to retrieve log entries from
-  // Logging.  For ways to export log entries, see
-  // [Exporting Logs](/logging/docs/export).
+  // Lists log entries.  Use this method to retrieve log entries that originated
+  // from a project/folder/organization/billing account.  For ways to export log
+  // entries, see [Exporting Logs](/logging/docs/export).
   rpc ListLogEntries(ListLogEntriesRequest) returns (ListLogEntriesResponse) {
     option (google.api.http) = {
       post: "/v2/entries:list"
@@ -74,8 +92,7 @@ service LoggingServiceV2 {
   }
 
   // Lists the descriptors for monitored resource types used by Logging.
-  rpc ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest)
-      returns (ListMonitoredResourceDescriptorsResponse) {
+  rpc ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest) returns (ListMonitoredResourceDescriptorsResponse) {
     option (google.api.http) = {
       get: "/v2/monitoredResourceDescriptors"
     };
@@ -86,10 +103,18 @@ service LoggingServiceV2 {
   rpc ListLogs(ListLogsRequest) returns (ListLogsResponse) {
     option (google.api.http) = {
       get: "/v2/{parent=*/*}/logs"
-      additional_bindings { get: "/v2/{parent=projects/*}/logs" }
-      additional_bindings { get: "/v2/{parent=organizations/*}/logs" }
-      additional_bindings { get: "/v2/{parent=folders/*}/logs" }
-      additional_bindings { get: "/v2/{parent=billingAccounts/*}/logs" }
+      additional_bindings {
+        get: "/v2/{parent=projects/*}/logs"
+      }
+      additional_bindings {
+        get: "/v2/{parent=organizations/*}/logs"
+      }
+      additional_bindings {
+        get: "/v2/{parent=folders/*}/logs"
+      }
+      additional_bindings {
+        get: "/v2/{parent=billingAccounts/*}/logs"
+      }
     };
   }
 }
@@ -164,8 +189,8 @@ message WriteLogEntriesRequest {
   // Log entries with timestamps that are more than the
   // [logs retention period](/logging/quota-policy) in the past or more than
   // 24 hours in the future will not be available when calling `entries.list`.
-  // However, those log entries can still be exported with
-  // [LogSinks](/logging/docs/api/tasks/exporting-logs).
+  // However, those log entries can still be
+  // [exported with LogSinks](/logging/docs/api/tasks/exporting-logs).
   //
   // To improve throughput and to avoid exceeding the
   // [quota limit](/logging/quota-policy) for calls to `entries.write`,
@@ -188,7 +213,9 @@ message WriteLogEntriesRequest {
 
 // Result returned from WriteLogEntries.
 // empty
-message WriteLogEntriesResponse {}
+message WriteLogEntriesResponse {
+
+}
 
 // Error details for WriteLogEntries with partial success.
 message WriteLogEntriesPartialErrors {
@@ -205,9 +232,7 @@ message WriteLogEntriesPartialErrors {
 message ListLogEntriesRequest {
   // Deprecated. Use `resource_names` instead.  One or more project identifiers
   // or project numbers from which to retrieve log entries.  Example:
-  // `"my-project-1A"`. If present, these project identifiers are converted to
-  // resource name format and added to the list of resources in
-  // `resource_names`.
+  // `"my-project-1A"`.
   repeated string project_ids = 1 [deprecated = true];
 
   // Required. Names of one or more parent resources from which to
@@ -218,6 +243,7 @@ message ListLogEntriesRequest {
   //     "billingAccounts/[BILLING_ACCOUNT_ID]"
   //     "folders/[FOLDER_ID]"
   //
+  //
   // Projects listed in the `project_ids` field are added to this list.
   repeated string resource_names = 8;
 
@@ -320,8 +346,8 @@ message ListLogsRequest {
 // Result returned from ListLogs.
 message ListLogsResponse {
   // A list of log names. For example,
-  // `"projects/my-project/syslog"` or
-  // `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
+  // `"projects/my-project/logs/syslog"` or
+  // `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
   repeated string log_names = 3;
 
   // If there might be more results than those appearing in this response, then
diff --git a/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto b/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto
index 2afea1062df5..a9ccdf51cb19 100644
--- a/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto
+++ b/google-api-grpc/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC.
+// Copyright 2019 Google LLC.
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -17,10 +17,12 @@ syntax = "proto3";
 
 package google.logging.v2;
 
-import "google/api/annotations.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";
@@ -30,17 +32,31 @@ option java_outer_classname = "LoggingConfigProto";
 option java_package = "com.google.logging.v2";
 option php_namespace = "Google\\Cloud\\Logging\\V2";
 
-// Service for configuring sinks used to export log entries out of
-// Logging.
+// Service for configuring sinks used to route log entries.
 service ConfigServiceV2 {
+  option (google.api.default_host) = "logging.googleapis.com";
+  option (google.api.oauth_scopes) =
+      "https://www.googleapis.com/auth/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";
+
   // Lists sinks.
   rpc ListSinks(ListSinksRequest) returns (ListSinksResponse) {
     option (google.api.http) = {
       get: "/v2/{parent=*/*}/sinks"
-      additional_bindings { get: "/v2/{parent=projects/*}/sinks" }
-      additional_bindings { get: "/v2/{parent=organizations/*}/sinks" }
-      additional_bindings { get: "/v2/{parent=folders/*}/sinks" }
-      additional_bindings { get: "/v2/{parent=billingAccounts/*}/sinks" }
+      additional_bindings {
+        get: "/v2/{parent=projects/*}/sinks"
+      }
+      additional_bindings {
+        get: "/v2/{parent=organizations/*}/sinks"
+      }
+      additional_bindings {
+        get: "/v2/{parent=folders/*}/sinks"
+      }
+      additional_bindings {
+        get: "/v2/{parent=billingAccounts/*}/sinks"
+      }
     };
   }
 
@@ -48,27 +64,41 @@ service ConfigServiceV2 {
   rpc GetSink(GetSinkRequest) returns (LogSink) {
     option (google.api.http) = {
       get: "/v2/{sink_name=*/*/sinks/*}"
-      additional_bindings { get: "/v2/{sink_name=projects/*/sinks/*}" }
-      additional_bindings { get: "/v2/{sink_name=organizations/*/sinks/*}" }
-      additional_bindings { get: "/v2/{sink_name=folders/*/sinks/*}" }
-      additional_bindings { get: "/v2/{sink_name=billingAccounts/*/sinks/*}" }
+      additional_bindings {
+        get: "/v2/{sink_name=projects/*/sinks/*}"
+      }
+      additional_bindings {
+        get: "/v2/{sink_name=organizations/*/sinks/*}"
+      }
+      additional_bindings {
+        get: "/v2/{sink_name=folders/*/sinks/*}"
+      }
+      additional_bindings {
+        get: "/v2/{sink_name=billingAccounts/*/sinks/*}"
+      }
     };
   }
 
-  // Creates a sink that exports specified log entries to a destination.  The
+  // Creates a sink that exports specified log entries to a destination. The
   // export of newly-ingested log entries begins immediately, unless the sink's
-  // `writer_identity` is not permitted to write to the destination.  A sink can
+  // `writer_identity` is not permitted to write to the destination. A sink can
   // export log entries only from the resource owning the sink.
   rpc CreateSink(CreateSinkRequest) returns (LogSink) {
     option (google.api.http) = {
       post: "/v2/{parent=*/*}/sinks"
       body: "sink"
-      additional_bindings { post: "/v2/{parent=projects/*}/sinks" body: "sink" }
+      additional_bindings {
+        post: "/v2/{parent=projects/*}/sinks"
+        body: "sink"
+      }
       additional_bindings {
         post: "/v2/{parent=organizations/*}/sinks"
         body: "sink"
       }
-      additional_bindings { post: "/v2/{parent=folders/*}/sinks" body: "sink" }
+      additional_bindings {
+        post: "/v2/{parent=folders/*}/sinks"
+        body: "sink"
+      }
       additional_bindings {
         post: "/v2/{parent=billingAccounts/*}/sinks"
         body: "sink"
@@ -76,8 +106,9 @@ service ConfigServiceV2 {
     };
   }
 
-  // Updates a sink.  This method replaces the following fields in the existing
+  // Updates a sink. This method replaces the following fields in the existing
   // sink with values from the new sink: `destination`, and `filter`.
+  //
   // The updated sink might also have a new `writer_identity`; see the
   // `unique_writer_identity` field.
   rpc UpdateSink(UpdateSinkRequest) returns (LogSink) {
@@ -124,9 +155,15 @@ service ConfigServiceV2 {
   rpc DeleteSink(DeleteSinkRequest) returns (google.protobuf.Empty) {
     option (google.api.http) = {
       delete: "/v2/{sink_name=*/*/sinks/*}"
-      additional_bindings { delete: "/v2/{sink_name=projects/*/sinks/*}" }
-      additional_bindings { delete: "/v2/{sink_name=organizations/*/sinks/*}" }
-      additional_bindings { delete: "/v2/{sink_name=folders/*/sinks/*}" }
+      additional_bindings {
+        delete: "/v2/{sink_name=projects/*/sinks/*}"
+      }
+      additional_bindings {
+        delete: "/v2/{sink_name=organizations/*/sinks/*}"
+      }
+      additional_bindings {
+        delete: "/v2/{sink_name=folders/*/sinks/*}"
+      }
       additional_bindings {
         delete: "/v2/{sink_name=billingAccounts/*/sinks/*}"
       }
@@ -137,10 +174,18 @@ service ConfigServiceV2 {
   rpc ListExclusions(ListExclusionsRequest) returns (ListExclusionsResponse) {
     option (google.api.http) = {
       get: "/v2/{parent=*/*}/exclusions"
-      additional_bindings { get: "/v2/{parent=projects/*}/exclusions" }
-      additional_bindings { get: "/v2/{parent=organizations/*}/exclusions" }
-      additional_bindings { get: "/v2/{parent=folders/*}/exclusions" }
-      additional_bindings { get: "/v2/{parent=billingAccounts/*}/exclusions" }
+      additional_bindings {
+        get: "/v2/{parent=projects/*}/exclusions"
+      }
+      additional_bindings {
+        get: "/v2/{parent=organizations/*}/exclusions"
+      }
+      additional_bindings {
+        get: "/v2/{parent=folders/*}/exclusions"
+      }
+      additional_bindings {
+        get: "/v2/{parent=billingAccounts/*}/exclusions"
+      }
     };
   }
 
@@ -148,10 +193,18 @@ service ConfigServiceV2 {
   rpc GetExclusion(GetExclusionRequest) returns (LogExclusion) {
     option (google.api.http) = {
       get: "/v2/{name=*/*/exclusions/*}"
-      additional_bindings { get: "/v2/{name=projects/*/exclusions/*}" }
-      additional_bindings { get: "/v2/{name=organizations/*/exclusions/*}" }
-      additional_bindings { get: "/v2/{name=folders/*/exclusions/*}" }
-      additional_bindings { get: "/v2/{name=billingAccounts/*/exclusions/*}" }
+      additional_bindings {
+        get: "/v2/{name=projects/*/exclusions/*}"
+      }
+      additional_bindings {
+        get: "/v2/{name=organizations/*/exclusions/*}"
+      }
+      additional_bindings {
+        get: "/v2/{name=folders/*/exclusions/*}"
+      }
+      additional_bindings {
+        get: "/v2/{name=billingAccounts/*/exclusions/*}"
+      }
     };
   }
 
@@ -209,9 +262,15 @@ service ConfigServiceV2 {
   rpc DeleteExclusion(DeleteExclusionRequest) returns (google.protobuf.Empty) {
     option (google.api.http) = {
       delete: "/v2/{name=*/*/exclusions/*}"
-      additional_bindings { delete: "/v2/{name=projects/*/exclusions/*}" }
-      additional_bindings { delete: "/v2/{name=organizations/*/exclusions/*}" }
-      additional_bindings { delete: "/v2/{name=folders/*/exclusions/*}" }
+      additional_bindings {
+        delete: "/v2/{name=projects/*/exclusions/*}"
+      }
+      additional_bindings {
+        delete: "/v2/{name=organizations/*/exclusions/*}"
+      }
+      additional_bindings {
+        delete: "/v2/{name=folders/*/exclusions/*}"
+      }
       additional_bindings {
         delete: "/v2/{name=billingAccounts/*/exclusions/*}"
       }
@@ -221,9 +280,9 @@ service ConfigServiceV2 {
 
 // Describes a sink used to export log entries to one of the following
 // destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
-// Cloud Pub/Sub topic.  A logs filter controls which log entries are
-// exported. The sink must be created within a project, organization, billing
-// account, or folder.
+// Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
+// The sink must be created within a project, organization, billing account, or
+// folder.
 message LogSink {
   // Available log entry formats. Log entries can be written to
   // Logging in either format and can be exported in either format.
@@ -240,7 +299,7 @@ message LogSink {
   }
 
   // Required. The client-assigned sink identifier, unique within the
-  // project. Example: `"my-syslog-errors-to-pubsub"`.  Sink identifiers are
+  // 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.
@@ -254,34 +313,33 @@ message LogSink {
   //
   // The sink's `writer_identity`, set when the sink is created, must
   // have permission to write to the destination or else the log
-  // entries are not exported.  For more information, see
-  // [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).
+  // entries are not exported. For more information, see
+  // [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs).
   string destination = 3;
 
-  // Optional.
-  // An [advanced logs filter](/logging/docs/view/advanced_filters).  The only
+  // 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
-  // that match the filter.  For example:
+  // that match the filter. For example:
   //
   //     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
   string filter = 5;
 
   // 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.
+  // entries. The v2 format is used by default and cannot be changed.
   VersionFormat output_version_format = 6 [deprecated = true];
 
   // Output only. An IAM identity—a service account or group—under
-  // which Logging writes the exported log entries to the sink's
-  // destination.  This field is set by
-  // [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
+  // which Logging writes the exported log entries to the sink's destination.
+  // This field is set by
+  // [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
   // and
-  // [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
-  // based on the setting of `unique_writer_identity` in those methods.
+  // [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink]
+  // based on the value of `unique_writer_identity` in those methods.
   //
   // Until you grant this identity write-access to the destination, log entry
   // exports from this sink will fail. For more information,
-  // see [Granting access for a
-  // resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
+  // see [Granting Access for a
+  // 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;
@@ -301,13 +359,41 @@ message LogSink {
   //     resource.type=gce_instance
   bool include_children = 9;
 
-  // Deprecated. This field is ignored when creating or updating sinks.
+  // Optional. Destination dependent options.
+  oneof options {
+    // Optional. Options that affect sinks exporting data to BigQuery.
+    BigQueryOptions bigquery_options = 12;
+  }
+
+  // Output only. The creation timestamp of the sink.
+  //
+  // This field may not be present for older sinks.
+  google.protobuf.Timestamp create_time = 13;
+
+  // Output only. The last update timestamp of the sink.
+  //
+  // This field may not be present for older sinks.
+  google.protobuf.Timestamp update_time = 14;
+
+  // Do not use. This field is ignored.
   google.protobuf.Timestamp start_time = 10 [deprecated = true];
 
-  // Deprecated. This field is ignored when creating or updating sinks.
+  // Do not use. This field is ignored.
   google.protobuf.Timestamp end_time = 11 [deprecated = true];
 }
 
+// Options that change functionality of a sink exporting data to BigQuery.
+message BigQueryOptions {
+  // Optional. Whether to use [BigQuery's partition
+  // tables](/bigquery/docs/partitioned-tables). By default, Logging
+  // creates dated tables based on the log entries' timestamps, e.g.
+  // syslog_20170523. With partitioned tables the date suffix is no longer
+  // present and [special query
+  // 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;
+}
+
 // The parameters to `ListSinks`.
 message ListSinksRequest {
   // Required. The parent resource whose sinks are to be listed:
@@ -319,13 +405,13 @@ message ListSinksRequest {
   string parent = 1;
 
   // Optional. If present, then retrieve the next batch of results from the
-  // preceding call to this method.  `pageToken` must be the value of
-  // `nextPageToken` from the previous response.  The values of other method
+  // preceding call to this method. `pageToken` must be the value of
+  // `nextPageToken` from the previous response. The values of other method
   // parameters should be identical to those in the previous call.
   string page_token = 2;
 
   // Optional. The maximum number of results to return from this request.
-  // Non-positive values are ignored.  The presence of `nextPageToken` in the
+  // Non-positive values are ignored. The presence of `nextPageToken` in the
   // response indicates that more results might be available.
   int32 page_size = 3;
 }
@@ -336,7 +422,7 @@ message ListSinksResponse {
   repeated LogSink sinks = 1;
 
   // If there might be more results than appear in this response, then
-  // `nextPageToken` is included.  To get the next set of results, call the same
+  // `nextPageToken` is included. To get the next set of results, call the same
   // method again using the value of `nextPageToken` as `pageToken`.
   string next_page_token = 2;
 }
@@ -371,17 +457,16 @@ message CreateSinkRequest {
   LogSink sink = 2;
 
   // 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
+  // in the new sink. If this value is omitted or set to false, and if the
   // sink's parent is a project, then the value returned as `writer_identity` is
-  // the same group or service account used by Logging before the
-  // addition of writer identities to this API. The sink's destination must be
-  // in the same project as the sink itself.
+  // the same group or service account used by Logging before the addition of
+  // writer identities to this API. The sink's destination must be in the same
+  // project as the sink itself.
   //
   // If this field is set to true, or if the sink is owned by a non-project
   // resource such as an organization, then the value of `writer_identity` will
-  // be a unique service account used only for exports from the new sink.  For
-  // more information, see `writer_identity` in
-  // [LogSink][google.logging.v2.LogSink].
+  // be a unique service account used only for exports from the new sink. For
+  // more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
   bool unique_writer_identity = 3;
 }
 
@@ -402,9 +487,8 @@ message UpdateSinkRequest {
   // as part of `sink_name`.
   LogSink sink = 2;
 
-  // Optional. See
-  // [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
-  // for a description of this field.  When updating a sink, the effect of this
+  // Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
+  // for a description of this field. When updating a sink, the effect of this
   // field on the value of `writer_identity` in the updated sink depends on both
   // the old and new values of this field:
   //
@@ -418,7 +502,7 @@ message UpdateSinkRequest {
 
   // Optional. Field mask that specifies the fields in `sink` that need
   // an update. A sink field will be overwritten if, and only if, it is
-  // in the update mask.  `name` and output only fields cannot be updated.
+  // in the update mask. `name` and output only fields cannot be updated.
   //
   // An empty updateMask is temporarily treated as using the following mask
   // for backwards compatibility purposes:
@@ -448,11 +532,11 @@ message DeleteSinkRequest {
 }
 
 // Specifies a set of log entries that are not to be stored in
-// Logging. If your project receives a large volume of logs, you might be able
-// to use exclusions to reduce your chargeable logs. Exclusions are processed
-// after log sinks, so you can export log entries before they are excluded.
-// Audit log entries and log entries from Amazon Web Services are never
-// excluded.
+// Logging. If your GCP resource receives a large volume of logs, you can
+// use exclusions to reduce your chargeable logs. Exclusions are
+// processed after log sinks, so you can export log entries before they are
+// excluded. Note that organization-level and folder-level exclusions don't
+// apply to child resources, and that you can't exclude audit log entries.
 message LogExclusion {
   // Required. A client-assigned identifier, such as
   // `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -462,22 +546,31 @@ message LogExclusion {
   // Optional. A description of this exclusion.
   string description = 2;
 
-  // Required.
-  // An [advanced logs filter](/logging/docs/view/advanced_filters)
+  // Required. An [advanced logs filter](/logging/docs/view/advanced-queries)
   // that matches the log entries to be excluded. By using the
-  // [sample function](/logging/docs/view/advanced_filters#sample),
+  // [sample function](/logging/docs/view/advanced-queries#sample),
   // you can exclude less than 100% of the matching log entries.
-  // For example, the following filter matches 99% of low-severity log
-  // entries from load balancers:
+  // For example, the following query matches 99% of low-severity log
+  // entries from Google Cloud Storage buckets:
   //
-  // `"resource.type=http_load_balancer severityThis class provides the ability to make remote calls to the backing service through method
  * calls that map to API methods. Sample code to get started:
@@ -528,8 +528,10 @@ public final UnaryCallable createSinkCallable() {
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
    * Updates a sink. This method replaces the following fields in the existing sink with values from
-   * the new sink: `destination`, and `filter`. The updated sink might also have a new
-   * `writer_identity`; see the `unique_writer_identity` field.
+   * the new sink: `destination`, and `filter`.
+   *
+   * 

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

Sample code: * @@ -576,8 +578,10 @@ public final LogSink updateSink(SinkName sinkName, LogSink sink, FieldMask updat // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Updates a sink. This method replaces the following fields in the existing sink with values from - * the new sink: `destination`, and `filter`. The updated sink might also have a new - * `writer_identity`; see the `unique_writer_identity` field. + * the new sink: `destination`, and `filter`. + * + *

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

Sample code: * @@ -624,8 +628,10 @@ public final LogSink updateSink(String sinkName, LogSink sink, FieldMask updateM // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Updates a sink. This method replaces the following fields in the existing sink with values from - * the new sink: `destination`, and `filter`. The updated sink might also have a new - * `writer_identity`; see the `unique_writer_identity` field. + * the new sink: `destination`, and `filter`. + * + *

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

Sample code: * @@ -661,8 +667,10 @@ public final LogSink updateSink(SinkName sinkName, LogSink sink) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Updates a sink. This method replaces the following fields in the existing sink with values from - * the new sink: `destination`, and `filter`. The updated sink might also have a new - * `writer_identity`; see the `unique_writer_identity` field. + * the new sink: `destination`, and `filter`. + * + *

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

Sample code: * @@ -695,8 +703,10 @@ public final LogSink updateSink(String sinkName, LogSink sink) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Updates a sink. This method replaces the following fields in the existing sink with values from - * the new sink: `destination`, and `filter`. The updated sink might also have a new - * `writer_identity`; see the `unique_writer_identity` field. + * the new sink: `destination`, and `filter`. + * + *

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

Sample code: * @@ -722,8 +732,10 @@ public final LogSink updateSink(UpdateSinkRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Updates a sink. This method replaces the following fields in the existing sink with values from - * the new sink: `destination`, and `filter`. The updated sink might also have a new - * `writer_identity`; see the `unique_writer_identity` field. + * the new sink: `destination`, and `filter`. + * + *

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

Sample code: * @@ -1225,7 +1237,7 @@ public final UnaryCallable createExclusion *

Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * @param exclusion Required. New values for the existing exclusion. Only the fields specified in * `update_mask` are relevant. - * @param updateMask Required. A nonempty list of fields to change in the existing exclusion. New + * @param updateMask Required. A non-empty list of fields to change in the existing exclusion. New * values for the fields are taken from the corresponding fields in the * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not * mentioned in `update_mask` are not changed and are ignored in the request. @@ -1268,7 +1280,7 @@ public final LogExclusion updateExclusion( *

Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * @param exclusion Required. New values for the existing exclusion. Only the fields specified in * `update_mask` are relevant. - * @param updateMask Required. A nonempty list of fields to change in the existing exclusion. New + * @param updateMask Required. A non-empty list of fields to change in the existing exclusion. New * values for the fields are taken from the corresponding fields in the * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not * mentioned in `update_mask` are not changed and are ignored in the request. diff --git a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java index 34110d4471ae..495951b25a2d 100644 --- a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java +++ b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java @@ -324,8 +324,8 @@ public final UnaryCallable deleteLogCallable() { * method. *

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

To improve throughput and to avoid exceeding the [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. @@ -398,8 +398,8 @@ public final WriteLogEntriesResponse writeLogEntries( * method. *

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

To improve throughput and to avoid exceeding the [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. @@ -475,8 +475,9 @@ public final WriteLogEntriesResponse writeLogEntries(WriteLogEntriesRequest requ // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists log entries. Use this method to retrieve log entries from Logging. For ways to export log - * entries, see [Exporting Logs](/logging/docs/export). + * Lists log entries. Use this method to retrieve log entries that originated from a + * project/folder/organization/billing account. For ways to export log entries, see [Exporting + * Logs](/logging/docs/export). * *

Sample code: * @@ -522,8 +523,9 @@ public final ListLogEntriesPagedResponse listLogEntries( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists log entries. Use this method to retrieve log entries from Logging. For ways to export log - * entries, see [Exporting Logs](/logging/docs/export). + * Lists log entries. Use this method to retrieve log entries that originated from a + * project/folder/organization/billing account. For ways to export log entries, see [Exporting + * Logs](/logging/docs/export). * *

Sample code: * @@ -548,8 +550,9 @@ public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists log entries. Use this method to retrieve log entries from Logging. For ways to export log - * entries, see [Exporting Logs](/logging/docs/export). + * Lists log entries. Use this method to retrieve log entries that originated from a + * project/folder/organization/billing account. For ways to export log entries, see [Exporting + * Logs](/logging/docs/export). * *

Sample code: * @@ -574,8 +577,9 @@ public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists log entries. Use this method to retrieve log entries from Logging. For ways to export log - * entries, see [Exporting Logs](/logging/docs/export). + * Lists log entries. Use this method to retrieve log entries that originated from a + * project/folder/organization/billing account. For ways to export log entries, see [Exporting + * Logs](/logging/docs/export). * *

Sample code: * diff --git a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java index cc6d9a18f22a..e46e287286f8 100644 --- a/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java +++ b/google-cloud-clients/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java @@ -19,32 +19,32 @@ * *

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

============= LoggingClient ============= + *

============ ConfigClient ============ * - *

Service Description: Service for ingesting and querying logs. + *

Service Description: Service for configuring sinks used to route log entries. * - *

Sample for LoggingClient: + *

Sample for ConfigClient: * *

  * 
- * try (LoggingClient loggingClient = LoggingClient.create()) {
- *   LogName logName = ProjectLogName.of("[PROJECT]", "[LOG]");
- *   loggingClient.deleteLog(logName);
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ *   SinkName sinkName = ProjectSinkName.of("[PROJECT]", "[SINK]");
+ *   LogSink response = configClient.getSink(sinkName);
  * }
  * 
  * 
* - * ============ ConfigClient ============ + * ============= LoggingClient ============= * - *

Service Description: Service for configuring sinks used to export log entries out of Logging. + *

Service Description: Service for ingesting and querying logs. * - *

Sample for ConfigClient: + *

Sample for LoggingClient: * *

  * 
- * try (ConfigClient configClient = ConfigClient.create()) {
- *   SinkName sinkName = ProjectSinkName.of("[PROJECT]", "[SINK]");
- *   LogSink response = configClient.getSink(sinkName);
+ * try (LoggingClient loggingClient = LoggingClient.create()) {
+ *   LogName logName = ProjectLogName.of("[PROJECT]", "[LOG]");
+ *   loggingClient.deleteLog(logName);
  * }
  * 
  * 
diff --git a/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java b/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java index f13fb50f18cf..65563e76bec6 100644 --- a/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java +++ b/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java @@ -68,8 +68,8 @@ @javax.annotation.Generated("by GAPIC") public class ConfigClientTest { - private static MockLoggingServiceV2 mockLoggingServiceV2; private static MockConfigServiceV2 mockConfigServiceV2; + private static MockLoggingServiceV2 mockLoggingServiceV2; private static MockMetricsServiceV2 mockMetricsServiceV2; private static MockServiceHelper serviceHelper; private ConfigClient client; @@ -77,14 +77,14 @@ public class ConfigClientTest { @BeforeClass public static void startStaticServer() { - mockLoggingServiceV2 = new MockLoggingServiceV2(); mockConfigServiceV2 = new MockConfigServiceV2(); + mockLoggingServiceV2 = new MockLoggingServiceV2(); mockMetricsServiceV2 = new MockMetricsServiceV2(); serviceHelper = new MockServiceHelper( "in-process-1", Arrays.asList( - mockLoggingServiceV2, mockConfigServiceV2, mockMetricsServiceV2)); + mockConfigServiceV2, mockLoggingServiceV2, mockMetricsServiceV2)); serviceHelper.start(); } diff --git a/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java b/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java index c42da72c818b..84c52e53df4a 100644 --- a/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java +++ b/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java @@ -60,8 +60,8 @@ @javax.annotation.Generated("by GAPIC") public class LoggingClientTest { - private static MockLoggingServiceV2 mockLoggingServiceV2; private static MockConfigServiceV2 mockConfigServiceV2; + private static MockLoggingServiceV2 mockLoggingServiceV2; private static MockMetricsServiceV2 mockMetricsServiceV2; private static MockServiceHelper serviceHelper; private LoggingClient client; @@ -69,14 +69,14 @@ public class LoggingClientTest { @BeforeClass public static void startStaticServer() { - mockLoggingServiceV2 = new MockLoggingServiceV2(); mockConfigServiceV2 = new MockConfigServiceV2(); + mockLoggingServiceV2 = new MockLoggingServiceV2(); mockMetricsServiceV2 = new MockMetricsServiceV2(); serviceHelper = new MockServiceHelper( "in-process-1", Arrays.asList( - mockLoggingServiceV2, mockConfigServiceV2, mockMetricsServiceV2)); + mockConfigServiceV2, mockLoggingServiceV2, mockMetricsServiceV2)); serviceHelper.start(); } diff --git a/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java b/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java index ac621d49bedf..f1c04174fb61 100644 --- a/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java +++ b/google-cloud-clients/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java @@ -54,8 +54,8 @@ @javax.annotation.Generated("by GAPIC") public class MetricsClientTest { - private static MockLoggingServiceV2 mockLoggingServiceV2; private static MockConfigServiceV2 mockConfigServiceV2; + private static MockLoggingServiceV2 mockLoggingServiceV2; private static MockMetricsServiceV2 mockMetricsServiceV2; private static MockServiceHelper serviceHelper; private MetricsClient client; @@ -63,14 +63,14 @@ public class MetricsClientTest { @BeforeClass public static void startStaticServer() { - mockLoggingServiceV2 = new MockLoggingServiceV2(); mockConfigServiceV2 = new MockConfigServiceV2(); + mockLoggingServiceV2 = new MockLoggingServiceV2(); mockMetricsServiceV2 = new MockMetricsServiceV2(); serviceHelper = new MockServiceHelper( "in-process-1", Arrays.asList( - mockLoggingServiceV2, mockConfigServiceV2, mockMetricsServiceV2)); + mockConfigServiceV2, mockLoggingServiceV2, mockMetricsServiceV2)); serviceHelper.start(); } diff --git a/google-cloud-clients/google-cloud-logging/synth.metadata b/google-cloud-clients/google-cloud-logging/synth.metadata index a7c9d83a41c9..4c089195310d 100644 --- a/google-cloud-clients/google-cloud-logging/synth.metadata +++ b/google-cloud-clients/google-cloud-logging/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-08-02T07:51:58.359952Z", + "updateTime": "2019-10-02T07:47:52.258007Z", "sources": [ { "generator": { "name": "artman", - "version": "0.32.0", - "dockerImage": "googleapis/artman@sha256:6929f343c400122d85818195b18613330a12a014bffc1e08499550d40571479d" + "version": "0.37.1", + "dockerImage": "googleapis/artman@sha256:6068f67900a3f0bdece596b97bda8fc70406ca0e137a941f4c81d3217c994a80" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1b1ef1ca146c2119f077bca5e2b638c6bacb0925", - "internalRef": "261214002" + "sha": "2123bcae97debe57e0870fca157cdf21e32bf3fb", + "internalRef": "272289410" } } ],