From fab2ce0765dc100ffe3fad551c88240aee3d010a Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 31 Jan 2024 21:27:24 +0000 Subject: [PATCH 01/75] feat: OpentelemetryMetricsRecorder Implementation --- gax-java/gax/pom.xml | 12 + .../google/api/gax/tracing/MetricsTracer.java | 2 + .../tracing/OpentelemetryMetricsRecorder.java | 111 ++++++++ .../api/gax/tracing/MetricsTracerTest.java | 24 +- .../OpentelemetryMetricsRecorderTest.java | 237 ++++++++++++++++++ gax-java/pom.xml | 7 + 6 files changed, 385 insertions(+), 8 deletions(-) create mode 100644 gax-java/gax/src/main/java/com/google/api/gax/tracing/OpentelemetryMetricsRecorder.java create mode 100644 gax-java/gax/src/test/java/com/google/api/gax/tracing/OpentelemetryMetricsRecorderTest.java diff --git a/gax-java/gax/pom.xml b/gax-java/gax/pom.xml index 6473de3e20..16dcc32233 100644 --- a/gax-java/gax/pom.xml +++ b/gax-java/gax/pom.xml @@ -57,6 +57,18 @@ graal-sdk provided + + io.opentelemetry + opentelemetry-api + + + io.opentelemetry + opentelemetry-sdk + + + io.opentelemetry + opentelemetry-exporter-otlp + diff --git a/gax-java/gax/src/main/java/com/google/api/gax/tracing/MetricsTracer.java b/gax-java/gax/src/main/java/com/google/api/gax/tracing/MetricsTracer.java index 45a8558599..432548de30 100644 --- a/gax-java/gax/src/main/java/com/google/api/gax/tracing/MetricsTracer.java +++ b/gax-java/gax/src/main/java/com/google/api/gax/tracing/MetricsTracer.java @@ -53,6 +53,7 @@ public class MetricsTracer implements ApiTracer { private static final String STATUS_ATTRIBUTE = "status"; + private static final String LANGUAGE = "Java"; private Stopwatch attemptTimer; @@ -64,6 +65,7 @@ public class MetricsTracer implements ApiTracer { public MetricsTracer(MethodName methodName, MetricsRecorder metricsRecorder) { this.attributes.put("method_name", methodName.toString()); + this.attributes.put("language", LANGUAGE); this.metricsRecorder = metricsRecorder; } diff --git a/gax-java/gax/src/main/java/com/google/api/gax/tracing/OpentelemetryMetricsRecorder.java b/gax-java/gax/src/main/java/com/google/api/gax/tracing/OpentelemetryMetricsRecorder.java new file mode 100644 index 0000000000..63117086cc --- /dev/null +++ b/gax-java/gax/src/main/java/com/google/api/gax/tracing/OpentelemetryMetricsRecorder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2024 Google LLC + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Google LLC nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package com.google.api.gax.tracing; + +import com.google.common.annotations.VisibleForTesting; +import io.opentelemetry.api.common.Attributes; +import io.opentelemetry.api.common.AttributesBuilder; +import io.opentelemetry.api.metrics.DoubleHistogram; +import io.opentelemetry.api.metrics.LongCounter; +import io.opentelemetry.api.metrics.Meter; +import java.util.Map; + +public class OpentelemetryMetricsRecorder implements MetricsRecorder { + + private Meter meter; + + private DoubleHistogram attemptLatencyRecorder; + + private DoubleHistogram operationLatencyRecorder; + + private LongCounter operationCountRecorder; + + private LongCounter attemptCountRecorder; + + private Attributes attributes; + + public OpentelemetryMetricsRecorder(Meter meter) { + this.meter = meter; + this.attemptLatencyRecorder = + meter + .histogramBuilder("attempt_latency") + .setDescription("Duration of an individual attempt") + .setUnit("ms") + .build(); + this.operationLatencyRecorder = + meter + .histogramBuilder("operation_latency") + .setDescription( + "Total time until final operation success or failure, including retries and backoff.") + .setUnit("ms") + .build(); + this.operationCountRecorder = + meter + .counterBuilder("operation_count") + .setDescription("Count of Operations") + .setUnit("1") + .build(); + this.attemptCountRecorder = + meter + .counterBuilder("attempt_count") + .setDescription("Count of Attempts") + .setUnit("1") + .build(); + } + + public void recordAttemptLatency(double attemptLatency, Map attributes) { + attemptLatencyRecorder.record(attemptLatency, toOtelAttributes(attributes)); + } + + public void recordAttemptCount(long count, Map attributes) { + attemptCountRecorder.add(count, toOtelAttributes(attributes)); + } + + public void recordOperationLatency(double operationLatency, Map attributes) { + operationLatencyRecorder.record(operationLatency, toOtelAttributes(attributes)); + } + + public void recordOperationCount(long count, Map attributes) { + operationCountRecorder.add(count, toOtelAttributes(attributes)); + } + + @VisibleForTesting + Attributes toOtelAttributes(Map attributes) { + + if (attributes == null) { + throw new IllegalArgumentException("Input attributes map cannot be null"); + } + + AttributesBuilder attributesBuilder = Attributes.builder(); + attributes.forEach(attributesBuilder::put); + return attributesBuilder.build(); + } +} diff --git a/gax-java/gax/src/test/java/com/google/api/gax/tracing/MetricsTracerTest.java b/gax-java/gax/src/test/java/com/google/api/gax/tracing/MetricsTracerTest.java index 7b6b76f181..e30d7f1662 100644 --- a/gax-java/gax/src/test/java/com/google/api/gax/tracing/MetricsTracerTest.java +++ b/gax-java/gax/src/test/java/com/google/api/gax/tracing/MetricsTracerTest.java @@ -77,7 +77,8 @@ public void testOperationSucceeded_recordsAttributes() { Map attributes = ImmutableMap.of( "status", "OK", - "method_name", "fake_service.fake_method"); + "method_name", "fake_service.fake_method", + "language", "Java"); verify(metricsRecorder).recordOperationCount(1, attributes); verify(metricsRecorder).recordOperationLatency(anyDouble(), eq(attributes)); @@ -96,7 +97,8 @@ public void testOperationFailed_recordsAttributes() { Map attributes = ImmutableMap.of( "status", "INVALID_ARGUMENT", - "method_name", "fake_service.fake_method"); + "method_name", "fake_service.fake_method", + "language", "Java"); verify(metricsRecorder).recordOperationCount(1, attributes); verify(metricsRecorder).recordOperationLatency(anyDouble(), eq(attributes)); @@ -112,7 +114,8 @@ public void testOperationCancelled_recordsAttributes() { Map attributes = ImmutableMap.of( "status", "CANCELLED", - "method_name", "fake_service.fake_method"); + "method_name", "fake_service.fake_method", + "language", "Java"); verify(metricsRecorder).recordOperationCount(1, attributes); verify(metricsRecorder).recordOperationLatency(anyDouble(), eq(attributes)); @@ -132,7 +135,8 @@ public void testAttemptSucceeded_recordsAttributes() { Map attributes = ImmutableMap.of( "status", "OK", - "method_name", "fake_service.fake_method"); + "method_name", "fake_service.fake_method", + "language", "Java"); verify(metricsRecorder).recordAttemptCount(1, attributes); verify(metricsRecorder).recordAttemptLatency(anyDouble(), eq(attributes)); @@ -155,7 +159,8 @@ public void testAttemptFailed_recordsAttributes() { Map attributes = ImmutableMap.of( "status", "INVALID_ARGUMENT", - "method_name", "fake_service.fake_method"); + "method_name", "fake_service.fake_method", + "language", "Java"); verify(metricsRecorder).recordAttemptCount(1, attributes); verify(metricsRecorder).recordAttemptLatency(anyDouble(), eq(attributes)); @@ -174,7 +179,8 @@ public void testAttemptCancelled_recordsAttributes() { Map attributes = ImmutableMap.of( "status", "CANCELLED", - "method_name", "fake_service.fake_method"); + "method_name", "fake_service.fake_method", + "language", "Java"); verify(metricsRecorder).recordAttemptCount(1, attributes); verify(metricsRecorder).recordAttemptLatency(anyDouble(), eq(attributes)); @@ -196,7 +202,8 @@ public void testAttemptFailedRetriesExhausted_recordsAttributes() { Map attributes = ImmutableMap.of( "status", "DEADLINE_EXCEEDED", - "method_name", "fake_service.fake_method"); + "method_name", "fake_service.fake_method", + "language", "Java"); verify(metricsRecorder).recordAttemptCount(1, attributes); verify(metricsRecorder).recordAttemptLatency(anyDouble(), eq(attributes)); @@ -218,7 +225,8 @@ public void testAttemptPermanentFailure_recordsAttributes() { Map attributes = ImmutableMap.of( "status", "NOT_FOUND", - "method_name", "fake_service.fake_method"); + "method_name", "fake_service.fake_method", + "language", "Java"); verify(metricsRecorder).recordAttemptCount(1, attributes); verify(metricsRecorder).recordAttemptLatency(anyDouble(), eq(attributes)); diff --git a/gax-java/gax/src/test/java/com/google/api/gax/tracing/OpentelemetryMetricsRecorderTest.java b/gax-java/gax/src/test/java/com/google/api/gax/tracing/OpentelemetryMetricsRecorderTest.java new file mode 100644 index 0000000000..c14ccdb6f5 --- /dev/null +++ b/gax-java/gax/src/test/java/com/google/api/gax/tracing/OpentelemetryMetricsRecorderTest.java @@ -0,0 +1,237 @@ +package com.google.api.gax.tracing; + +import static org.junit.Assert.assertThrows; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.verifyNoMoreInteractions; + +import com.google.common.collect.ImmutableMap; +import com.google.common.truth.Truth; +import io.opentelemetry.api.common.AttributeKey; +import io.opentelemetry.api.common.Attributes; +import io.opentelemetry.api.metrics.DoubleHistogram; +import io.opentelemetry.api.metrics.DoubleHistogramBuilder; +import io.opentelemetry.api.metrics.LongCounter; +import io.opentelemetry.api.metrics.LongCounterBuilder; +import io.opentelemetry.api.metrics.Meter; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; +import org.mockito.Mock; +import org.mockito.Mockito; +import org.mockito.junit.MockitoJUnit; +import org.mockito.junit.MockitoRule; +import org.mockito.quality.Strictness; + +@RunWith(JUnit4.class) +public class OpentelemetryMetricsRecorderTest { + + // stricter way of testing for early detection of unused stubs and argument mismatches + @Rule + public final MockitoRule mockitoRule = MockitoJUnit.rule().strictness(Strictness.STRICT_STUBS); + + private OpentelemetryMetricsRecorder otelMetricsRecorder; + + @Mock private Meter meter; + @Mock private LongCounter attemptCountRecorder; + @Mock private LongCounterBuilder attemptCountRecorderBuilder; + @Mock private DoubleHistogramBuilder attemptLatencyRecorderBuilder; + @Mock private DoubleHistogram attemptLatencyRecorder; + @Mock private DoubleHistogram operationLatencyRecorder; + @Mock private DoubleHistogramBuilder operationLatencyRecorderBuilder; + @Mock private LongCounter operationCountRecorder; + @Mock private LongCounterBuilder operationCountRecorderBuilder; + + @Before + public void setUp() { + + meter = Mockito.mock(Meter.class); + + // setup mocks for all the recorders using chained mocking + setupAttemptCountRecorder(); + setupAttemptLatencyRecorder(); + setupOperationLatencyRecorder(); + setupOperationCountRecorder(); + + otelMetricsRecorder = new OpentelemetryMetricsRecorder(meter); + } + + @Test + public void testAttemptCountRecorder_recordsAttributes() { + + ImmutableMap attributes = + ImmutableMap.of( + "status", "OK", + "method_name", "fake_service.fake_method", + "language", "Java"); + + Attributes otelAttributes = otelMetricsRecorder.toOtelAttributes(attributes); + otelMetricsRecorder.recordAttemptCount(1, attributes); + + verify(attemptCountRecorder).add(1, otelAttributes); + verifyNoMoreInteractions(attemptCountRecorder); + } + + @Test + public void testAttemptLatencyRecorder_recordsAttributes() { + + ImmutableMap attributes = + ImmutableMap.of( + "status", "NOT_FOUND", + "method_name", "fake_service.fake_method", + "language", "Java"); + + Attributes otelAttributes = otelMetricsRecorder.toOtelAttributes(attributes); + otelMetricsRecorder.recordAttemptLatency(1.1, attributes); + + verify(attemptLatencyRecorder).record(1.1, otelAttributes); + verifyNoMoreInteractions(attemptLatencyRecorder); + } + + @Test + public void testOperationCountRecorder_recordsAttributes() { + + ImmutableMap attributes = + ImmutableMap.of( + "status", "OK", + "method_name", "fake_service.fake_method", + "language", "Java"); + + Attributes otelAttributes = otelMetricsRecorder.toOtelAttributes(attributes); + otelMetricsRecorder.recordOperationCount(1, attributes); + + verify(operationCountRecorder).add(1, otelAttributes); + verifyNoMoreInteractions(operationCountRecorder); + } + + @Test + public void testOperationLatencyRecorder_recordsAttributes() { + + ImmutableMap attributes = + ImmutableMap.of( + "status", "INVALID_ARGUMENT", + "method_name", "fake_service.fake_method", + "language", "Java"); + + Attributes otelAttributes = otelMetricsRecorder.toOtelAttributes(attributes); + otelMetricsRecorder.recordOperationLatency(1.7, attributes); + + verify(operationLatencyRecorder).record(1.7, otelAttributes); + verifyNoMoreInteractions(operationLatencyRecorder); + } + + @Test + public void testToOtelAttributes_correctConversion() { + + ImmutableMap attributes = + ImmutableMap.of( + "status", "OK", + "method_name", "fake_service.fake_method", + "language", "Java"); + + Attributes otelAttributes = otelMetricsRecorder.toOtelAttributes(attributes); + + Truth.assertThat(otelAttributes.get(AttributeKey.stringKey("status"))).isEqualTo("OK"); + Truth.assertThat(otelAttributes.get(AttributeKey.stringKey("method_name"))) + .isEqualTo("fake_service.fake_method"); + Truth.assertThat(otelAttributes.get(AttributeKey.stringKey("language"))).isEqualTo("Java"); + } + + @Test + public void testToOtelAttributes_nullInput() { + + Throwable thrown = + assertThrows( + IllegalArgumentException.class, + () -> { + otelMetricsRecorder.toOtelAttributes(null); + }); + Truth.assertThat(thrown).hasMessageThat().contains("Input attributes map cannot be null"); + } + + /// this is a potential candidate for test in the future when we enforce non-null values in the + // attributes map + // will remove this before merging the PR + // @Test + // public void testToOtelAttributes_nullKeyValuePair() { + // + // + // Map attributes = new HashMap<>(); + // attributes.put("status", "OK"); + // attributes.put("method_name", "fake_service.fake_method"); + // attributes.put("language", "Java"); + // // try to insert a key-value pair with a null value + // attributes.put("fakeDatabaseId", null); + // + // Attributes otelAttributes = otelMetricsRecorder.toOtelAttributes(attributes); + // + // //only 3 attributes should be added to the Attributes object + // Truth.assertThat(otelAttributes.get(AttributeKey.stringKey("status"))).isEqualTo("OK"); + // + // Truth.assertThat(otelAttributes.get(AttributeKey.stringKey("method_name"))).isEqualTo("fake_service.fake_method"); + // Truth.assertThat(otelAttributes.get(AttributeKey.stringKey("language"))).isEqualTo("Java"); + // + // // attributes should only have 3 entries since the 4th attribute value is null + // Truth.assertThat(otelAttributes.size()).isEqualTo(3); + // } + + private void setupAttemptCountRecorder() { + + attemptCountRecorderBuilder = Mockito.mock(LongCounterBuilder.class); + attemptCountRecorder = Mockito.mock(LongCounter.class); + + // Configure chained mocking for AttemptCountRecorder + Mockito.when(meter.counterBuilder("attempt_count")).thenReturn(attemptCountRecorderBuilder); + Mockito.when(attemptCountRecorderBuilder.setDescription("Count of Attempts")) + .thenReturn(attemptCountRecorderBuilder); + Mockito.when(attemptCountRecorderBuilder.setUnit("1")).thenReturn(attemptCountRecorderBuilder); + Mockito.when(attemptCountRecorderBuilder.build()).thenReturn(attemptCountRecorder); + } + + private void setupOperationCountRecorder() { + + operationCountRecorderBuilder = Mockito.mock(LongCounterBuilder.class); + operationCountRecorder = Mockito.mock(LongCounter.class); + + // Configure chained mocking for operationCountRecorder + Mockito.when(meter.counterBuilder("operation_count")).thenReturn(operationCountRecorderBuilder); + Mockito.when(operationCountRecorderBuilder.setDescription("Count of Operations")) + .thenReturn(operationCountRecorderBuilder); + Mockito.when(operationCountRecorderBuilder.setUnit("1")) + .thenReturn(operationCountRecorderBuilder); + Mockito.when(operationCountRecorderBuilder.build()).thenReturn(operationCountRecorder); + } + + private void setupAttemptLatencyRecorder() { + + attemptLatencyRecorderBuilder = Mockito.mock(DoubleHistogramBuilder.class); + attemptLatencyRecorder = Mockito.mock(DoubleHistogram.class); + + // Configure chained mocking for attemptLatencyRecorder + Mockito.when(meter.histogramBuilder("attempt_latency")) + .thenReturn(attemptLatencyRecorderBuilder); + Mockito.when(attemptLatencyRecorderBuilder.setDescription("Duration of an individual attempt")) + .thenReturn(attemptLatencyRecorderBuilder); + Mockito.when(attemptLatencyRecorderBuilder.setUnit("ms")) + .thenReturn(attemptLatencyRecorderBuilder); + Mockito.when(attemptLatencyRecorderBuilder.build()).thenReturn(attemptLatencyRecorder); + } + + private void setupOperationLatencyRecorder() { + + operationLatencyRecorderBuilder = Mockito.mock(DoubleHistogramBuilder.class); + operationLatencyRecorder = Mockito.mock(DoubleHistogram.class); + + // Configure chained mocking for operationLatencyRecorder + Mockito.when(meter.histogramBuilder("operation_latency")) + .thenReturn(operationLatencyRecorderBuilder); + Mockito.when( + operationLatencyRecorderBuilder.setDescription( + "Total time until final operation success or failure, including retries and backoff.")) + .thenReturn(operationLatencyRecorderBuilder); + Mockito.when(operationLatencyRecorderBuilder.setUnit("ms")) + .thenReturn(operationLatencyRecorderBuilder); + Mockito.when(operationLatencyRecorderBuilder.build()).thenReturn(operationLatencyRecorder); + } +} diff --git a/gax-java/pom.xml b/gax-java/pom.xml index fad3ac4f99..0a0b0f75fd 100644 --- a/gax-java/pom.xml +++ b/gax-java/pom.xml @@ -158,6 +158,13 @@ pom import + + io.opentelemetry + opentelemetry-bom + 1.27.0 + pom + import + From 1fc2e9a26cf3b271cadb5e22e164e9e383dc3c1e Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Thu, 1 Feb 2024 22:57:34 +0000 Subject: [PATCH 02/75] chore: showcase test setup --- .../google/showcase/v1beta1/EchoSettings.java | 5 + .../v1beta1/stub/EchoStubSettings.java | 84 +++++++++++ .../showcase/v1beta1/it/ITOtelMetrics.java | 134 ++++++++++++++++++ .../it/util/TestClientInitializer.java | 36 +++++ showcase/pom.xml | 57 +++++++- 5 files changed, 315 insertions(+), 1 deletion(-) create mode 100644 showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java index 388995f9bb..cbf52c128f 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java @@ -234,6 +234,11 @@ public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } + @BetaApi + public static Builder createHttpJsonDefaultOtel() { + return new Builder(EchoStubSettings.newHttpJsonBuilderOtel()); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java index 4f6166ee64..ba858e2afa 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java @@ -51,10 +51,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.gax.tracing.MetricsTracerFactory; +import com.google.api.gax.tracing.OpentelemetryMetricsRecorder; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.opentelemetry.metric.GoogleCloudMetricExporter; +import com.google.cloud.opentelemetry.metric.MetricConfiguration; +import com.google.cloud.opentelemetry.metric.MetricDescriptorStrategy; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -80,6 +85,14 @@ import com.google.showcase.v1beta1.WaitMetadata; import com.google.showcase.v1beta1.WaitRequest; import com.google.showcase.v1beta1.WaitResponse; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.metrics.Meter; +import io.opentelemetry.exporter.prometheus.PrometheusHttpServer; +import io.opentelemetry.sdk.OpenTelemetrySdk; +import io.opentelemetry.sdk.metrics.SdkMeterProvider; +import io.opentelemetry.sdk.metrics.export.MetricExporter; +import io.opentelemetry.sdk.metrics.export.PeriodicMetricReader; +import io.opentelemetry.sdk.resources.Resource; import java.io.IOException; import java.util.Collections; import java.util.List; @@ -156,6 +169,42 @@ public class EchoStubSettings extends StubSettings { private final UnaryCallSettings testIamPermissionsSettings; + private static Meter meter = openTelemetry() + .meterBuilder("gax") + .setInstrumentationVersion(GaxProperties.getGaxVersion()) + .build(); + + static OpentelemetryMetricsRecorder otelMetricsRecorder = new OpentelemetryMetricsRecorder(meter); + private static MetricsTracerFactory createOpenTelemetryTracerFactory() { + return new MetricsTracerFactory(otelMetricsRecorder); + } + + public static OpenTelemetry openTelemetry() { + Resource resource = Resource.builder().build(); + + MetricExporter metricExporter = GoogleCloudMetricExporter.createWithConfiguration( + MetricConfiguration.builder() + // Configure the cloud project id. Note: this is autodiscovered by default. + .setProjectId("spanner-demo-326919") + .setPrefix("custom.googleapis.com") + // Configure a strategy for how/when to configure metric descriptors. + .setDescriptorStrategy(MetricDescriptorStrategy.SEND_ONCE) + .build()); + PrometheusHttpServer prometheusReader = PrometheusHttpServer.builder().setPort(9090).build(); + PeriodicMetricReader metricReader = PeriodicMetricReader.builder(metricExporter).setInterval( + java.time.Duration.ofSeconds(10)).build(); + + SdkMeterProvider sdkMeterProvider = SdkMeterProvider.builder() + .registerMetricReader(prometheusReader) + .registerMetricReader(metricReader) + .setResource(resource) + .build(); + + return OpenTelemetrySdk.builder() + .setMeterProvider(sdkMeterProvider) + .build(); + } + private static final PagedListDescriptor PAGED_EXPAND_PAGE_STR_DESC = new PagedListDescriptor() { @@ -516,6 +565,15 @@ public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } + public static Builder newHttpJsonBuilderOtel() { + return Builder.createHttpJsonDefaultOtel(); + } + + public static Builder newGrpcBuilderOtel() { + return Builder.createGrpcDefaultOtel(); + + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -723,6 +781,32 @@ private static Builder createHttpJsonDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefaultOtel() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + builder.setTracerFactory(createOpenTelemetryTracerFactory()); + return initDefaults(builder); + } + + private static Builder createGrpcDefaultOtel() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultGrpcTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultGrpcApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + builder.setTracerFactory(createOpenTelemetryTracerFactory()); + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .echoSettings() diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java new file mode 100644 index 0000000000..acd0e91d7e --- /dev/null +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -0,0 +1,134 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.showcase.v1beta1.it; + +import static com.google.common.truth.Truth.assertThat; +import static org.junit.Assert.assertThrows; + +import com.google.api.gax.grpc.GrpcStatusCode; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.RetryingFuture; +import com.google.api.gax.rpc.CancelledException; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.NotFoundException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StatusCode.Code; +import com.google.common.collect.ImmutableSet; +import com.google.common.util.concurrent.FutureCallback; +import com.google.rpc.Status; +import com.google.showcase.v1beta1.BlockRequest; +import com.google.showcase.v1beta1.BlockResponse; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoRequest; +import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.it.util.TestClientInitializer; +import java.util.concurrent.Future; +import java.util.concurrent.TimeUnit; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +public class ITOtelMetrics { + + private static EchoClient grpcClient; + + private static EchoClient httpjsonClient; + + @BeforeClass + public static void createClients() throws Exception { + // Create gRPC Echo Client + grpcClient = TestClientInitializer.createGrpcEchoClient(); + // Create Http JSON Echo Client + httpjsonClient = TestClientInitializer.createHttpJsonEchoClientOtel(); + } + + @AfterClass + public static void destroyClients() throws InterruptedException { + grpcClient.close(); + httpjsonClient.close(); + + grpcClient.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + httpjsonClient.awaitTermination( + TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + } + + @Test + public void testHttpJson_serverResponseError_throwsException() throws InterruptedException { + + EchoRequest requestWithNoError = + EchoRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) + .build(); + + httpjsonClient.echo(requestWithNoError); + + Thread.sleep(30000); + + + // assertThat(exception.getStatusCode().getCode()).isEqualTo(StatusCode.Code.CANCELLED); + } + + @Test + public void testGrpc_attemptFailedRetriesExhausted_throwsException() throws Exception { + + RetrySettings defaultRetrySettings = + RetrySettings.newBuilder() + .setMaxAttempts(2) + .build(); + EchoClient grpcClientWithRetrySetting = TestClientInitializer.createGrpcEchoClientOtelWithRetrySettings( + defaultRetrySettings, ImmutableSet.of(Code.INVALID_ARGUMENT)); + + BlockRequest blockRequest = + BlockRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) + .build(); + RetryingFuture retryingFuture = + (RetryingFuture) grpcClientWithRetrySetting.blockCallable() + .futureCall(blockRequest); + + Thread.sleep(50000); + + BlockResponse blockResponse = retryingFuture.get(10000, TimeUnit.SECONDS); + + } + // + @Test + public void testGrpc_attemptPermanentFailure_throwsException() throws Exception { + + RetrySettings defaultRetrySettings = + RetrySettings.newBuilder() + .setMaxAttempts(2) + .build(); + EchoClient grpcClientWithRetrySetting = TestClientInitializer.createGrpcEchoClientOtelWithRetrySettings( + defaultRetrySettings, ImmutableSet.of(Code.UNAVAILABLE)); + + // if the request code is not in set of retryable codes, the ApiResultRetryAlgorithm + // send false for shouldRetry(), which sends false in retryAlgorithm.shouldRetryBasedOnResult() + // which triggers this scenario - https://github.com/googleapis/sdk-platform-java/blob/main/gax-java/gax/src/main/java/com/google/api/gax/retrying/BasicRetryingFuture.java#L194-L198 + + BlockRequest blockRequest = + BlockRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) + .build(); + + RetryingFuture retryingFuture = + (RetryingFuture) grpcClientWithRetrySetting.blockCallable() + .futureCall(blockRequest); + BlockResponse blockResponse = retryingFuture.get(100, TimeUnit.SECONDS); + + } +} \ No newline at end of file diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java index d2606402d8..6859283a38 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java @@ -61,10 +61,46 @@ public static EchoClient createGrpcEchoClient(List intercepto return EchoClient.create(grpcEchoSettings); } + public static EchoClient createGrpcEchoClientOtelWithRetrySettings(RetrySettings retrySettings, Set retryableCodes) + throws Exception { + EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newGrpcBuilderOtel(); + grpcEchoSettingsBuilder + .blockSettings() + .setRetrySettings(retrySettings) + .setRetryableCodes(retryableCodes); + EchoSettings grpcEchoSettingsOtel = EchoSettings.create(grpcEchoSettingsBuilder.build()); + grpcEchoSettingsOtel = + grpcEchoSettingsOtel + .toBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTransportChannelProvider( + EchoSettings.defaultGrpcTransportProviderBuilder() + .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) + .build()) + .setEndpoint("localhost:7469") + .build(); + return EchoClient.create(grpcEchoSettingsOtel); + } + public static EchoClient createHttpJsonEchoClient() throws Exception { return createHttpJsonEchoClient(ImmutableList.of()); } + public static EchoClient createHttpJsonEchoClientOtel() + throws Exception { + EchoSettings httpJsonEchoSettingsOtel = + EchoSettings.createHttpJsonDefaultOtel() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTransportChannelProvider( + EchoSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport( + new NetHttpTransport.Builder().doNotValidateCertificate().build()) + .setEndpoint("http://localhost:7469") + .build()) + .build(); + return EchoClient.create(httpJsonEchoSettingsOtel); + } + public static EchoClient createHttpJsonEchoClient(List interceptorList) throws Exception { EchoSettings httpJsonEchoSettings = diff --git a/showcase/pom.xml b/showcase/pom.xml index 546296279c..50b75c2897 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -38,6 +38,13 @@ pom import + + io.opentelemetry + opentelemetry-bom + 1.27.0 + pom + import + com.google.api.grpc proto-gapic-showcase-v1beta1 @@ -53,7 +60,11 @@ gapic-showcase 0.0.1-SNAPSHOT - + + io.opentelemetry + opentelemetry-exporter-prometheus + 1.27.0-alpha + junit junit @@ -63,6 +74,50 @@ + + + io.opentelemetry + opentelemetry-exporter-prometheus + 1.27.0-alpha + + + + io.micrometer + micrometer-registry-prometheus + 1.9.7 + + + io.opentelemetry + opentelemetry-api + + + io.opentelemetry + opentelemetry-sdk + + + com.google.cloud.opentelemetry + exporter-metrics + 0.25.1 + + + io.opentelemetry + opentelemetry-api + + + io.opentelemetry + opentelemetry-sdk + + + io.opentelemetry + opentelemetry-exporter-otlp + + + io.opentelemetry + opentelemetry-semconv + 1.27.0-alpha + + + gapic-showcase grpc-gapic-showcase-v1beta1 From b08e849724c67cde499dc2a4ad8b984a5dae0f58 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 15:26:22 +0000 Subject: [PATCH 03/75] chore: setup otel collector --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 64b648607d..c6f0dbe7a1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -213,6 +213,12 @@ jobs: tar -xf showcase-* ./gapic-showcase run & cd - + - name: Install OTEL Collector + run: | + pwd + ls -l + curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.93.0/otelcol_0.93.0_linux_amd64.tar.gz + tar -xvf otelcol_0.93.0_linux_amd64.tar.gz - name: Showcase integration tests working-directory: showcase run: | From bfcfb87a8ecfeef981e56888679fe67b27112038 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 15:34:08 +0000 Subject: [PATCH 04/75] chore: fix --- .../it/util/TestClientInitializer.java | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java index 6859283a38..d2606402d8 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java @@ -61,46 +61,10 @@ public static EchoClient createGrpcEchoClient(List intercepto return EchoClient.create(grpcEchoSettings); } - public static EchoClient createGrpcEchoClientOtelWithRetrySettings(RetrySettings retrySettings, Set retryableCodes) - throws Exception { - EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newGrpcBuilderOtel(); - grpcEchoSettingsBuilder - .blockSettings() - .setRetrySettings(retrySettings) - .setRetryableCodes(retryableCodes); - EchoSettings grpcEchoSettingsOtel = EchoSettings.create(grpcEchoSettingsBuilder.build()); - grpcEchoSettingsOtel = - grpcEchoSettingsOtel - .toBuilder() - .setCredentialsProvider(NoCredentialsProvider.create()) - .setTransportChannelProvider( - EchoSettings.defaultGrpcTransportProviderBuilder() - .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) - .build()) - .setEndpoint("localhost:7469") - .build(); - return EchoClient.create(grpcEchoSettingsOtel); - } - public static EchoClient createHttpJsonEchoClient() throws Exception { return createHttpJsonEchoClient(ImmutableList.of()); } - public static EchoClient createHttpJsonEchoClientOtel() - throws Exception { - EchoSettings httpJsonEchoSettingsOtel = - EchoSettings.createHttpJsonDefaultOtel() - .setCredentialsProvider(NoCredentialsProvider.create()) - .setTransportChannelProvider( - EchoSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport( - new NetHttpTransport.Builder().doNotValidateCertificate().build()) - .setEndpoint("http://localhost:7469") - .build()) - .build(); - return EchoClient.create(httpJsonEchoSettingsOtel); - } - public static EchoClient createHttpJsonEchoClient(List interceptorList) throws Exception { EchoSettings httpJsonEchoSettings = From 254fb389f848d6a36954ca462d0bb3836ce07c43 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 15:37:50 +0000 Subject: [PATCH 05/75] chore: lint error --- .../showcase/v1beta1/it/ITOtelMetrics.java | 125 +++++++++--------- 1 file changed, 65 insertions(+), 60 deletions(-) diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index acd0e91d7e..34495d380c 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -19,6 +19,7 @@ import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertThrows; +import com.google.api.core.ApiFuture; import com.google.api.gax.grpc.GrpcStatusCode; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.retrying.RetryingFuture; @@ -36,6 +37,9 @@ import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.it.util.TestClientInitializer; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import org.junit.AfterClass; @@ -44,91 +48,92 @@ public class ITOtelMetrics { - private static EchoClient grpcClient; + private static EchoClient grpcClientOpenTelemetry; - private static EchoClient httpjsonClient; + private static EchoClient httpjsonClientOpenTelemetry; @BeforeClass public static void createClients() throws Exception { - // Create gRPC Echo Client - grpcClient = TestClientInitializer.createGrpcEchoClient(); - // Create Http JSON Echo Client - httpjsonClient = TestClientInitializer.createHttpJsonEchoClientOtel(); + // grpcClientOpenTelemetry = TestClientInitializer.createGrpcEchoClientOpenTelemetry(); + httpjsonClientOpenTelemetry = TestClientInitializer.createHttpJsonEchoClientOpenTelemetry(); } @AfterClass public static void destroyClients() throws InterruptedException { - grpcClient.close(); - httpjsonClient.close(); + // grpcClientOpenTelemetry.close(); + httpjsonClientOpenTelemetry.close(); - grpcClient.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); - httpjsonClient.awaitTermination( + // grpcClientOpenTelemetry.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + httpjsonClientOpenTelemetry.awaitTermination( TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); } @Test - public void testHttpJson_serverResponseError_throwsException() throws InterruptedException { + public void testHttpJson_OperationSucceded() throws InterruptedException { EchoRequest requestWithNoError = EchoRequest.newBuilder() .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) .build(); - httpjsonClient.echo(requestWithNoError); + EchoResponse response = httpjsonClientOpenTelemetry.echo(requestWithNoError); Thread.sleep(30000); + boolean fileExists = Files.exists(Paths.get("../../../metrics.txt")); + + System.out.println(fileExists); // assertThat(exception.getStatusCode().getCode()).isEqualTo(StatusCode.Code.CANCELLED); } - @Test - public void testGrpc_attemptFailedRetriesExhausted_throwsException() throws Exception { - - RetrySettings defaultRetrySettings = - RetrySettings.newBuilder() - .setMaxAttempts(2) - .build(); - EchoClient grpcClientWithRetrySetting = TestClientInitializer.createGrpcEchoClientOtelWithRetrySettings( - defaultRetrySettings, ImmutableSet.of(Code.INVALID_ARGUMENT)); - - BlockRequest blockRequest = - BlockRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) - .build(); - RetryingFuture retryingFuture = - (RetryingFuture) grpcClientWithRetrySetting.blockCallable() - .futureCall(blockRequest); - - Thread.sleep(50000); - - BlockResponse blockResponse = retryingFuture.get(10000, TimeUnit.SECONDS); - - } + // @Test + // public void testGrpc_attemptFailedRetriesExhausted_throwsException() throws Exception { // - @Test - public void testGrpc_attemptPermanentFailure_throwsException() throws Exception { - - RetrySettings defaultRetrySettings = - RetrySettings.newBuilder() - .setMaxAttempts(2) - .build(); - EchoClient grpcClientWithRetrySetting = TestClientInitializer.createGrpcEchoClientOtelWithRetrySettings( - defaultRetrySettings, ImmutableSet.of(Code.UNAVAILABLE)); - - // if the request code is not in set of retryable codes, the ApiResultRetryAlgorithm - // send false for shouldRetry(), which sends false in retryAlgorithm.shouldRetryBasedOnResult() - // which triggers this scenario - https://github.com/googleapis/sdk-platform-java/blob/main/gax-java/gax/src/main/java/com/google/api/gax/retrying/BasicRetryingFuture.java#L194-L198 - - BlockRequest blockRequest = - BlockRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) - .build(); - - RetryingFuture retryingFuture = - (RetryingFuture) grpcClientWithRetrySetting.blockCallable() - .futureCall(blockRequest); - BlockResponse blockResponse = retryingFuture.get(100, TimeUnit.SECONDS); - - } + // RetrySettings defaultRetrySettings = + // RetrySettings.newBuilder() + // .setMaxAttempts(2) + // .build(); + // EchoClient grpcClientWithRetrySetting = TestClientInitializer.createGrpcEchoClientOtelWithRetrySettings( + // defaultRetrySettings, ImmutableSet.of(Code.INVALID_ARGUMENT)); + // + // BlockRequest blockRequest = + // BlockRequest.newBuilder() + // .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) + // .build(); + // RetryingFuture retryingFuture = + // (RetryingFuture) grpcClientWithRetrySetting.blockCallable() + // .futureCall(blockRequest); + // + // Thread.sleep(50000); + // + // BlockResponse blockResponse = retryingFuture.get(10000, TimeUnit.SECONDS); + // + // } + // + // @Test + // public void testGrpc_attemptPermanentFailure_throwsException() throws Exception { + // + // RetrySettings defaultRetrySettings = + // RetrySettings.newBuilder() + // .setMaxAttempts(2) + // .build(); + // EchoClient grpcClientWithRetrySetting = TestClientInitializer.createGrpcEchoClientOtelWithRetrySettings( + // defaultRetrySettings, ImmutableSet.of(Code.UNAVAILABLE)); + // + // // if the request code is not in set of retryable codes, the ApiResultRetryAlgorithm + // // send false for shouldRetry(), which sends false in retryAlgorithm.shouldRetryBasedOnResult() + // // which triggers this scenario - https://github.com/googleapis/sdk-platform-java/blob/main/gax-java/gax/src/main/java/com/google/api/gax/retrying/BasicRetryingFuture.java#L194-L198 + // + // BlockRequest blockRequest = + // BlockRequest.newBuilder() + // .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) + // .build(); + // + // RetryingFuture retryingFuture = + // (RetryingFuture) grpcClientWithRetrySetting.blockCallable() + // .futureCall(blockRequest); + // BlockResponse blockResponse = retryingFuture.get(100, TimeUnit.SECONDS); + // + // } } \ No newline at end of file From db4f772a07b9712ca6f8aea905a414f9ade16333 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 15:42:13 +0000 Subject: [PATCH 06/75] chore: lint error --- .../showcase/v1beta1/it/ITOtelMetrics.java | 35 +++++++------------ 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 34495d380c..491015e876 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -16,31 +16,15 @@ package com.google.showcase.v1beta1.it; -import static com.google.common.truth.Truth.assertThat; -import static org.junit.Assert.assertThrows; - -import com.google.api.core.ApiFuture; -import com.google.api.gax.grpc.GrpcStatusCode; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.retrying.RetryingFuture; -import com.google.api.gax.rpc.CancelledException; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.NotFoundException; -import com.google.api.gax.rpc.StatusCode; + import com.google.api.gax.rpc.StatusCode.Code; -import com.google.common.collect.ImmutableSet; -import com.google.common.util.concurrent.FutureCallback; import com.google.rpc.Status; -import com.google.showcase.v1beta1.BlockRequest; -import com.google.showcase.v1beta1.BlockResponse; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.it.util.TestClientInitializer; import java.nio.file.Files; -import java.nio.file.Path; import java.nio.file.Paths; -import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import org.junit.AfterClass; import org.junit.BeforeClass; @@ -63,7 +47,8 @@ public static void destroyClients() throws InterruptedException { // grpcClientOpenTelemetry.close(); httpjsonClientOpenTelemetry.close(); - // grpcClientOpenTelemetry.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + // grpcClientOpenTelemetry.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, + // TimeUnit.SECONDS); httpjsonClientOpenTelemetry.awaitTermination( TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); } @@ -94,7 +79,8 @@ public void testHttpJson_OperationSucceded() throws InterruptedException { // RetrySettings.newBuilder() // .setMaxAttempts(2) // .build(); - // EchoClient grpcClientWithRetrySetting = TestClientInitializer.createGrpcEchoClientOtelWithRetrySettings( + // EchoClient grpcClientWithRetrySetting = + // TestClientInitializer.createGrpcEchoClientOtelWithRetrySettings( // defaultRetrySettings, ImmutableSet.of(Code.INVALID_ARGUMENT)); // // BlockRequest blockRequest = @@ -118,12 +104,15 @@ public void testHttpJson_OperationSucceded() throws InterruptedException { // RetrySettings.newBuilder() // .setMaxAttempts(2) // .build(); - // EchoClient grpcClientWithRetrySetting = TestClientInitializer.createGrpcEchoClientOtelWithRetrySettings( + // EchoClient grpcClientWithRetrySetting = + // TestClientInitializer.createGrpcEchoClientOtelWithRetrySettings( // defaultRetrySettings, ImmutableSet.of(Code.UNAVAILABLE)); // // // if the request code is not in set of retryable codes, the ApiResultRetryAlgorithm - // // send false for shouldRetry(), which sends false in retryAlgorithm.shouldRetryBasedOnResult() - // // which triggers this scenario - https://github.com/googleapis/sdk-platform-java/blob/main/gax-java/gax/src/main/java/com/google/api/gax/retrying/BasicRetryingFuture.java#L194-L198 + // // send false for shouldRetry(), which sends false in + // retryAlgorithm.shouldRetryBasedOnResult() + // // which triggers this scenario - + // https://github.com/googleapis/sdk-platform-java/blob/main/gax-java/gax/src/main/java/com/google/api/gax/retrying/BasicRetryingFuture.java#L194-L198 // // BlockRequest blockRequest = // BlockRequest.newBuilder() @@ -136,4 +125,4 @@ public void testHttpJson_OperationSucceded() throws InterruptedException { // BlockResponse blockResponse = retryingFuture.get(100, TimeUnit.SECONDS); // // } -} \ No newline at end of file +} From 1772d42e828435addaccb3474793033f2b46a701 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 15:47:09 +0000 Subject: [PATCH 07/75] chore: ignore linter for now --- .github/workflows/ci.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c6f0dbe7a1..49cb596018 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -190,10 +190,10 @@ jobs: - name: Install Maven modules run: | mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip - - name: Java Linter - working-directory: showcase - run: | - mvn -B -ntp fmt:check +# - name: Java Linter +# working-directory: showcase +# run: | +# mvn -B -ntp fmt:check - name: Showcase golden tests working-directory: showcase run: | From 93b744fb9275c5104b13e38c294fd1d8d2d65da9 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 15:52:06 +0000 Subject: [PATCH 08/75] chore: test setup --- .github/workflows/ci.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 49cb596018..bb9b0e5f77 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -187,20 +187,20 @@ jobs: java-version: ${{ matrix.java }} distribution: temurin - run: mvn -version - - name: Install Maven modules - run: | - mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip +# - name: Install Maven modules +# run: | +# mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip # - name: Java Linter # working-directory: showcase # run: | # mvn -B -ntp fmt:check - - name: Showcase golden tests - working-directory: showcase - run: | - mvn test \ - -P enable-golden-tests \ - --batch-mode \ - --no-transfer-progress +# - name: Showcase golden tests +# working-directory: showcase +# run: | +# mvn test \ +# -P enable-golden-tests \ +# --batch-mode \ +# --no-transfer-progress - name: Parse showcase version working-directory: showcase/gapic-showcase run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV" From fb7fd5d531132996a706ad71fc96b9cfcee0e7a7 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 16:00:00 +0000 Subject: [PATCH 09/75] otel-collector-setup --- .github/workflows/ci.yaml | 34 ++++++++----------- .../google/showcase/v1beta1/EchoSettings.java | 5 +++ .../v1beta1/stub/EchoStubSettings.java | 24 ++++++------- .../it/util/TestClientInitializer.java | 29 ++++++++++++++++ showcase/pom.xml | 5 +++ 5 files changed, 65 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bb9b0e5f77..64b648607d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -187,20 +187,20 @@ jobs: java-version: ${{ matrix.java }} distribution: temurin - run: mvn -version -# - name: Install Maven modules -# run: | -# mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip -# - name: Java Linter -# working-directory: showcase -# run: | -# mvn -B -ntp fmt:check -# - name: Showcase golden tests -# working-directory: showcase -# run: | -# mvn test \ -# -P enable-golden-tests \ -# --batch-mode \ -# --no-transfer-progress + - name: Install Maven modules + run: | + mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip + - name: Java Linter + working-directory: showcase + run: | + mvn -B -ntp fmt:check + - name: Showcase golden tests + working-directory: showcase + run: | + mvn test \ + -P enable-golden-tests \ + --batch-mode \ + --no-transfer-progress - name: Parse showcase version working-directory: showcase/gapic-showcase run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV" @@ -213,12 +213,6 @@ jobs: tar -xf showcase-* ./gapic-showcase run & cd - - - name: Install OTEL Collector - run: | - pwd - ls -l - curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.93.0/otelcol_0.93.0_linux_amd64.tar.gz - tar -xvf otelcol_0.93.0_linux_amd64.tar.gz - name: Showcase integration tests working-directory: showcase run: | diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java index cbf52c128f..6f196529a1 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java @@ -239,6 +239,11 @@ public static Builder createHttpJsonDefaultOtel() { return new Builder(EchoStubSettings.newHttpJsonBuilderOtel()); } + @BetaApi + public static Builder createGrpcDefaultOtel() { + return new Builder(EchoStubSettings.newGrpcBuilderOtel()); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java index ba858e2afa..3fa51692c7 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java @@ -99,6 +99,7 @@ import java.util.Map; import javax.annotation.Generated; import org.threeten.bp.Duration; +import io.opentelemetry.exporter.otlp.metrics.OtlpGrpcMetricExporter; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -169,33 +170,32 @@ public class EchoStubSettings extends StubSettings { private final UnaryCallSettings testIamPermissionsSettings; - private static Meter meter = openTelemetry() + private final static Meter meter = openTelemetry() .meterBuilder("gax") .setInstrumentationVersion(GaxProperties.getGaxVersion()) .build(); - static OpentelemetryMetricsRecorder otelMetricsRecorder = new OpentelemetryMetricsRecorder(meter); + private static OpentelemetryMetricsRecorder otelMetricsRecorder = new OpentelemetryMetricsRecorder(meter); private static MetricsTracerFactory createOpenTelemetryTracerFactory() { return new MetricsTracerFactory(otelMetricsRecorder); } + OtlpGrpcMetricExporter metricExporter = OtlpGrpcMetricExporter.builder() + .setEndpoint("http://localhost:4317") // Assuming default OTel Collector endpoint + .build(); + + public static OpenTelemetry openTelemetry() { Resource resource = Resource.builder().build(); - MetricExporter metricExporter = GoogleCloudMetricExporter.createWithConfiguration( - MetricConfiguration.builder() - // Configure the cloud project id. Note: this is autodiscovered by default. - .setProjectId("spanner-demo-326919") - .setPrefix("custom.googleapis.com") - // Configure a strategy for how/when to configure metric descriptors. - .setDescriptorStrategy(MetricDescriptorStrategy.SEND_ONCE) - .build()); - PrometheusHttpServer prometheusReader = PrometheusHttpServer.builder().setPort(9090).build(); + OtlpGrpcMetricExporter metricExporter = OtlpGrpcMetricExporter.builder() + .setEndpoint("http://localhost:4317") // Assuming default OTel Collector endpoint + .build(); + PeriodicMetricReader metricReader = PeriodicMetricReader.builder(metricExporter).setInterval( java.time.Duration.ofSeconds(10)).build(); SdkMeterProvider sdkMeterProvider = SdkMeterProvider.builder() - .registerMetricReader(prometheusReader) .registerMetricReader(metricReader) .setResource(resource) .build(); diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java index d2606402d8..0a2d58f7ec 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java @@ -233,4 +233,33 @@ public static ComplianceClient createHttpJsonComplianceClient( .build(); return ComplianceClient.create(httpJsonComplianceSettings); } + public static EchoClient createHttpJsonEchoClientOpenTelemetry() + throws Exception { + + EchoSettings httpJsonEchoSettingsOtel = + EchoSettings.createHttpJsonDefaultOtel() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTransportChannelProvider( + EchoSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport( + new NetHttpTransport.Builder().doNotValidateCertificate().build()) + .setEndpoint("http://localhost:7469") + .build()) + .build(); + return EchoClient.create(httpJsonEchoSettingsOtel); + } + + public static EchoClient createGrpcEchoClientOpenTelemetry() + throws Exception { + + EchoSettings grpcEchoSettingsOtel = EchoSettings.createGrpcDefaultOtel() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTransportChannelProvider( + EchoSettings.defaultGrpcTransportProviderBuilder() + .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) + .build()) + .setEndpoint("localhost:7469") + .build(); + return EchoClient.create(grpcEchoSettingsOtel); + } } diff --git a/showcase/pom.xml b/showcase/pom.xml index 50b75c2897..eceb11e39f 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -103,6 +103,11 @@ io.opentelemetry opentelemetry-api + + io.opentelemetry + opentelemetry-sdk-metrics + 1.27.0 + io.opentelemetry opentelemetry-sdk From 166fc6136ac3c816824b4c6e71886e578906723c Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 16:10:14 +0000 Subject: [PATCH 10/75] chore: fix lint --- .../showcase/v1beta1/it/ITOtelMetrics.java | 1 - .../it/util/TestClientInitializer.java | 24 +++++++++---------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 491015e876..5c4ebc15df 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -16,7 +16,6 @@ package com.google.showcase.v1beta1.it; - import com.google.api.gax.rpc.StatusCode.Code; import com.google.rpc.Status; import com.google.showcase.v1beta1.EchoClient; diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java index 0a2d58f7ec..f8f3510028 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java @@ -233,8 +233,8 @@ public static ComplianceClient createHttpJsonComplianceClient( .build(); return ComplianceClient.create(httpJsonComplianceSettings); } - public static EchoClient createHttpJsonEchoClientOpenTelemetry() - throws Exception { + + public static EchoClient createHttpJsonEchoClientOpenTelemetry() throws Exception { EchoSettings httpJsonEchoSettingsOtel = EchoSettings.createHttpJsonDefaultOtel() @@ -249,17 +249,17 @@ public static EchoClient createHttpJsonEchoClientOpenTelemetry() return EchoClient.create(httpJsonEchoSettingsOtel); } - public static EchoClient createGrpcEchoClientOpenTelemetry() - throws Exception { + public static EchoClient createGrpcEchoClientOpenTelemetry() throws Exception { - EchoSettings grpcEchoSettingsOtel = EchoSettings.createGrpcDefaultOtel() - .setCredentialsProvider(NoCredentialsProvider.create()) - .setTransportChannelProvider( - EchoSettings.defaultGrpcTransportProviderBuilder() - .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) - .build()) - .setEndpoint("localhost:7469") - .build(); + EchoSettings grpcEchoSettingsOtel = + EchoSettings.createGrpcDefaultOtel() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTransportChannelProvider( + EchoSettings.defaultGrpcTransportProviderBuilder() + .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) + .build()) + .setEndpoint("localhost:7469") + .build(); return EchoClient.create(grpcEchoSettingsOtel); } } From 3fcdd5dfec04c409ed0827ddac47cc8e22d9336f Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 16:19:39 +0000 Subject: [PATCH 11/75] chore: fix --- .github/workflows/ci.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 64b648607d..cc425f6668 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -194,13 +194,13 @@ jobs: working-directory: showcase run: | mvn -B -ntp fmt:check - - name: Showcase golden tests - working-directory: showcase - run: | - mvn test \ - -P enable-golden-tests \ - --batch-mode \ - --no-transfer-progress +# - name: Showcase golden tests +# working-directory: showcase +# run: | +# mvn test \ +# -P enable-golden-tests \ +# --batch-mode \ +# --no-transfer-progress - name: Parse showcase version working-directory: showcase/gapic-showcase run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV" From d908c28894b3fc737177bce0931def44b37ad342 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 16:25:06 +0000 Subject: [PATCH 12/75] chore: otel install --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cc425f6668..21589723b7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -213,6 +213,12 @@ jobs: tar -xf showcase-* ./gapic-showcase run & cd - + - name: Install OTEL Collector + run: | + pwd + ls -l + curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.93.0/otelcol_0.93.0_linux_amd64.tar.gz + tar -xvf otelcol_0.93.0_linux_amd64.tar.gz - name: Showcase integration tests working-directory: showcase run: | From 0382056c59d3ce78c60412db883843f1ee20a24c Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 16:39:03 +0000 Subject: [PATCH 13/75] chore: otel install --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 21589723b7..6c6d9fa3cb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -214,11 +214,13 @@ jobs: ./gapic-showcase run & cd - - name: Install OTEL Collector + working-directory: showcase run: | pwd ls -l curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.93.0/otelcol_0.93.0_linux_amd64.tar.gz tar -xvf otelcol_0.93.0_linux_amd64.tar.gz + ./otelcol --config otel-col-config.yaml - name: Showcase integration tests working-directory: showcase run: | From 4a8cdc90bca7f85741a1af94f32aa313522b320a Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 16:39:31 +0000 Subject: [PATCH 14/75] chore: otel-setup --- showcase/otel-col-config.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 showcase/otel-col-config.yaml diff --git a/showcase/otel-col-config.yaml b/showcase/otel-col-config.yaml new file mode 100644 index 0000000000..ec16ed9c88 --- /dev/null +++ b/showcase/otel-col-config.yaml @@ -0,0 +1,17 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: "localhost:4317" + +exporters: + file: + path: "./metrics.txt" + +service: + extensions: [] + pipelines: + metrics: + receivers: [otlp] + processors: [] + exporters: [file] \ No newline at end of file From 27f308b2c0109f1c376456ea446af86c2276c6ed Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Wed, 7 Feb 2024 16:43:53 +0000 Subject: [PATCH 15/75] chore: run-otel-background --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6c6d9fa3cb..30ce808071 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -220,7 +220,7 @@ jobs: ls -l curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.93.0/otelcol_0.93.0_linux_amd64.tar.gz tar -xvf otelcol_0.93.0_linux_amd64.tar.gz - ./otelcol --config otel-col-config.yaml + ./otelcol --config otel-col-config.yaml & - name: Showcase integration tests working-directory: showcase run: | From e877bcf7dcc8e6091d138f1d090aa66c9c0a04f2 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Fri, 9 Feb 2024 17:52:59 +0000 Subject: [PATCH 16/75] cleanup --- .github/workflows/ci.yaml | 22 ++--- .../google/api/gax/rpc/ClientSettings.java | 15 ++++ .../google/showcase/v1beta1/EchoSettings.java | 10 --- .../v1beta1/stub/EchoStubSettings.java | 84 ------------------- .../it/util/TestClientInitializer.java | 29 ------- 5 files changed, 22 insertions(+), 138 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 30ce808071..64b648607d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -194,13 +194,13 @@ jobs: working-directory: showcase run: | mvn -B -ntp fmt:check -# - name: Showcase golden tests -# working-directory: showcase -# run: | -# mvn test \ -# -P enable-golden-tests \ -# --batch-mode \ -# --no-transfer-progress + - name: Showcase golden tests + working-directory: showcase + run: | + mvn test \ + -P enable-golden-tests \ + --batch-mode \ + --no-transfer-progress - name: Parse showcase version working-directory: showcase/gapic-showcase run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV" @@ -213,14 +213,6 @@ jobs: tar -xf showcase-* ./gapic-showcase run & cd - - - name: Install OTEL Collector - working-directory: showcase - run: | - pwd - ls -l - curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.93.0/otelcol_0.93.0_linux_amd64.tar.gz - tar -xvf otelcol_0.93.0_linux_amd64.tar.gz - ./otelcol --config otel-col-config.yaml & - name: Showcase integration tests working-directory: showcase run: | diff --git a/gax-java/gax/src/main/java/com/google/api/gax/rpc/ClientSettings.java b/gax-java/gax/src/main/java/com/google/api/gax/rpc/ClientSettings.java index 25929756f5..3b1796ff46 100644 --- a/gax-java/gax/src/main/java/com/google/api/gax/rpc/ClientSettings.java +++ b/gax-java/gax/src/main/java/com/google/api/gax/rpc/ClientSettings.java @@ -33,6 +33,7 @@ import com.google.api.core.ApiFunction; import com.google.api.gax.core.CredentialsProvider; import com.google.api.gax.core.ExecutorProvider; +import com.google.api.gax.tracing.ApiTracerFactory; import com.google.common.base.MoreObjects; import java.io.IOException; import java.util.concurrent.Executor; @@ -284,6 +285,15 @@ public B setGdchApiAudience(@Nullable String gdchApiAudience) { return self(); } + /** + * Sets the ApiTracerFactory for the client instance. To enable default metrics, users need to create an instance + * of metricsRecorder and pass it to the metricsTracerFactory, and set it here. + */ + public B setTracerFactory(@Nullable ApiTracerFactory tracerFactory) { + stubSettings.setTracerFactory(tracerFactory); + return self(); + } + /** * Gets the ExecutorProvider that was previously set on this Builder. This ExecutorProvider is * to use for running asynchronous API call logic (such as retries and long-running operations), @@ -351,6 +361,11 @@ public Duration getWatchdogCheckInterval() { return stubSettings.getStreamWatchdogCheckInterval(); } + /** Gets the TracerFactory that was previously set in this Builder */ + public ApiTracerFactory getTracerFactory() { + return stubSettings.getTracerFactory(); + } + /** Gets the GDCH API audience that was previously set in this Builder */ @Nullable public String getGdchApiAudience() { diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java index 6f196529a1..388995f9bb 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java @@ -234,16 +234,6 @@ public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } - @BetaApi - public static Builder createHttpJsonDefaultOtel() { - return new Builder(EchoStubSettings.newHttpJsonBuilderOtel()); - } - - @BetaApi - public static Builder createGrpcDefaultOtel() { - return new Builder(EchoStubSettings.newGrpcBuilderOtel()); - } - /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java index 3fa51692c7..4f6166ee64 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java @@ -51,15 +51,10 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.gax.tracing.MetricsTracerFactory; -import com.google.api.gax.tracing.OpentelemetryMetricsRecorder; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; -import com.google.cloud.opentelemetry.metric.GoogleCloudMetricExporter; -import com.google.cloud.opentelemetry.metric.MetricConfiguration; -import com.google.cloud.opentelemetry.metric.MetricDescriptorStrategy; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -85,21 +80,12 @@ import com.google.showcase.v1beta1.WaitMetadata; import com.google.showcase.v1beta1.WaitRequest; import com.google.showcase.v1beta1.WaitResponse; -import io.opentelemetry.api.OpenTelemetry; -import io.opentelemetry.api.metrics.Meter; -import io.opentelemetry.exporter.prometheus.PrometheusHttpServer; -import io.opentelemetry.sdk.OpenTelemetrySdk; -import io.opentelemetry.sdk.metrics.SdkMeterProvider; -import io.opentelemetry.sdk.metrics.export.MetricExporter; -import io.opentelemetry.sdk.metrics.export.PeriodicMetricReader; -import io.opentelemetry.sdk.resources.Resource; import java.io.IOException; import java.util.Collections; import java.util.List; import java.util.Map; import javax.annotation.Generated; import org.threeten.bp.Duration; -import io.opentelemetry.exporter.otlp.metrics.OtlpGrpcMetricExporter; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -170,41 +156,6 @@ public class EchoStubSettings extends StubSettings { private final UnaryCallSettings testIamPermissionsSettings; - private final static Meter meter = openTelemetry() - .meterBuilder("gax") - .setInstrumentationVersion(GaxProperties.getGaxVersion()) - .build(); - - private static OpentelemetryMetricsRecorder otelMetricsRecorder = new OpentelemetryMetricsRecorder(meter); - private static MetricsTracerFactory createOpenTelemetryTracerFactory() { - return new MetricsTracerFactory(otelMetricsRecorder); - } - - OtlpGrpcMetricExporter metricExporter = OtlpGrpcMetricExporter.builder() - .setEndpoint("http://localhost:4317") // Assuming default OTel Collector endpoint - .build(); - - - public static OpenTelemetry openTelemetry() { - Resource resource = Resource.builder().build(); - - OtlpGrpcMetricExporter metricExporter = OtlpGrpcMetricExporter.builder() - .setEndpoint("http://localhost:4317") // Assuming default OTel Collector endpoint - .build(); - - PeriodicMetricReader metricReader = PeriodicMetricReader.builder(metricExporter).setInterval( - java.time.Duration.ofSeconds(10)).build(); - - SdkMeterProvider sdkMeterProvider = SdkMeterProvider.builder() - .registerMetricReader(metricReader) - .setResource(resource) - .build(); - - return OpenTelemetrySdk.builder() - .setMeterProvider(sdkMeterProvider) - .build(); - } - private static final PagedListDescriptor PAGED_EXPAND_PAGE_STR_DESC = new PagedListDescriptor() { @@ -565,15 +516,6 @@ public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } - public static Builder newHttpJsonBuilderOtel() { - return Builder.createHttpJsonDefaultOtel(); - } - - public static Builder newGrpcBuilderOtel() { - return Builder.createGrpcDefaultOtel(); - - } - /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -781,32 +723,6 @@ private static Builder createHttpJsonDefault() { return initDefaults(builder); } - private static Builder createHttpJsonDefaultOtel() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - builder.setTracerFactory(createOpenTelemetryTracerFactory()); - return initDefaults(builder); - } - - private static Builder createGrpcDefaultOtel() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultGrpcTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultGrpcApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - builder.setTracerFactory(createOpenTelemetryTracerFactory()); - return initDefaults(builder); - } - private static Builder initDefaults(Builder builder) { builder .echoSettings() diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java index f8f3510028..d2606402d8 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java @@ -233,33 +233,4 @@ public static ComplianceClient createHttpJsonComplianceClient( .build(); return ComplianceClient.create(httpJsonComplianceSettings); } - - public static EchoClient createHttpJsonEchoClientOpenTelemetry() throws Exception { - - EchoSettings httpJsonEchoSettingsOtel = - EchoSettings.createHttpJsonDefaultOtel() - .setCredentialsProvider(NoCredentialsProvider.create()) - .setTransportChannelProvider( - EchoSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport( - new NetHttpTransport.Builder().doNotValidateCertificate().build()) - .setEndpoint("http://localhost:7469") - .build()) - .build(); - return EchoClient.create(httpJsonEchoSettingsOtel); - } - - public static EchoClient createGrpcEchoClientOpenTelemetry() throws Exception { - - EchoSettings grpcEchoSettingsOtel = - EchoSettings.createGrpcDefaultOtel() - .setCredentialsProvider(NoCredentialsProvider.create()) - .setTransportChannelProvider( - EchoSettings.defaultGrpcTransportProviderBuilder() - .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) - .build()) - .setEndpoint("localhost:7469") - .build(); - return EchoClient.create(grpcEchoSettingsOtel); - } } From cfde7f68ac57e20526b95dbdd489ae4bb7758bc5 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Fri, 9 Feb 2024 19:00:30 +0000 Subject: [PATCH 17/75] chore: run test on gha --- .../showcase/v1beta1/it/ITOtelMetrics.java | 189 ++++++++++-------- .../testHttpJson_OperationSucceded.yaml} | 2 +- showcase/scripts/start_otelcol.sh | 24 +++ showcase/scripts/verify_metrics.sh | 18 ++ 4 files changed, 148 insertions(+), 85 deletions(-) rename showcase/{otel-col-config.yaml => opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml} (78%) create mode 100755 showcase/scripts/start_otelcol.sh create mode 100755 showcase/scripts/verify_metrics.sh diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 5c4ebc15df..df1196e8a9 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -16,112 +16,133 @@ package com.google.showcase.v1beta1.it; +import static org.junit.Assert.assertThrows; + +import com.google.api.client.http.javanet.NetHttpTransport; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ListenableFutureToApiFuture; +import com.google.api.core.SettableApiFuture; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.RetryingFuture; +import com.google.api.gax.rpc.CancelledException; +import com.google.api.gax.rpc.NotFoundException; import com.google.api.gax.rpc.StatusCode.Code; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.gax.tracing.ApiTracerFactory; +import com.google.api.gax.tracing.MetricsTracerFactory; +import com.google.api.gax.tracing.OpentelemetryMetricsRecorder; +import com.google.common.collect.ImmutableSet; +import com.google.common.util.concurrent.ListenableFuture; +import com.google.common.util.concurrent.SettableFuture; import com.google.rpc.Status; +import io.grpc.ManagedChannelBuilder; +import com.google.showcase.v1beta1.BlockRequest; +import com.google.showcase.v1beta1.BlockResponse; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.EchoSettings; +import com.google.showcase.v1beta1.stub.EchoStubSettings; +import com.google.showcase.v1beta1.WaitResponse; import com.google.showcase.v1beta1.it.util.TestClientInitializer; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.metrics.Meter; +import io.opentelemetry.api.metrics.ObservableLongMeasurement; +import io.opentelemetry.exporter.otlp.metrics.OtlpGrpcMetricExporter; +import io.opentelemetry.sdk.OpenTelemetrySdk; +import io.opentelemetry.sdk.metrics.SdkMeterProvider; +import io.opentelemetry.sdk.metrics.data.MetricData; +import io.opentelemetry.sdk.metrics.export.MetricReader; +import io.opentelemetry.sdk.metrics.export.PeriodicMetricReader; +import io.opentelemetry.sdk.resources.Resource; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; import java.nio.file.Files; import java.nio.file.Paths; +import java.util.List; +import java.util.concurrent.Callable; +import java.util.concurrent.CancellationException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import org.junit.AfterClass; +import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; public class ITOtelMetrics { - private static EchoClient grpcClientOpenTelemetry; - - private static EchoClient httpjsonClientOpenTelemetry; - - @BeforeClass - public static void createClients() throws Exception { - // grpcClientOpenTelemetry = TestClientInitializer.createGrpcEchoClientOpenTelemetry(); - httpjsonClientOpenTelemetry = TestClientInitializer.createHttpJsonEchoClientOpenTelemetry(); - } - - @AfterClass - public static void destroyClients() throws InterruptedException { - // grpcClientOpenTelemetry.close(); - httpjsonClientOpenTelemetry.close(); - - // grpcClientOpenTelemetry.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, - // TimeUnit.SECONDS); - httpjsonClientOpenTelemetry.awaitTermination( - TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); - } - + // Helper function for creating opentelemetry object defined below, used in each test. @Test - public void testHttpJson_OperationSucceded() throws InterruptedException { + public void testHttpJson_OperationSucceded_recordsMetrics() + throws Exception { + + //initialize the otel-collector + Process process = Runtime.getRuntime().exec("../scripts/start_otelcol.sh ../opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml"); + process.waitFor(); + + EchoSettings httpJsonEchoSettings = + EchoSettings.newHttpJsonBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTracerFactory(createOpenTelemetryTracerFactory()) + .setTransportChannelProvider( + EchoSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport( + new NetHttpTransport.Builder().doNotValidateCertificate().build()) + .setEndpoint("http://localhost:7469") + .build()) + .build(); + EchoClient client = EchoClient.create(httpJsonEchoSettings); EchoRequest requestWithNoError = EchoRequest.newBuilder() .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) .build(); + client.echoCallable().futureCall(requestWithNoError).get(); + //wait for the metrics to get uploaded + Thread.sleep(3000); + //verify the metrics and cleanup + Process cleanup = Runtime.getRuntime().exec("../scripts/verify_metrics.sh ../opentelemetry-helper/metrics/testHttpJson_OperationSucceded.txt"); + process.waitFor(); - EchoResponse response = httpjsonClientOpenTelemetry.echo(requestWithNoError); - - Thread.sleep(30000); - - boolean fileExists = Files.exists(Paths.get("../../../metrics.txt")); - - System.out.println(fileExists); - - // assertThat(exception.getStatusCode().getCode()).isEqualTo(StatusCode.Code.CANCELLED); } - // @Test - // public void testGrpc_attemptFailedRetriesExhausted_throwsException() throws Exception { - // - // RetrySettings defaultRetrySettings = - // RetrySettings.newBuilder() - // .setMaxAttempts(2) - // .build(); - // EchoClient grpcClientWithRetrySetting = - // TestClientInitializer.createGrpcEchoClientOtelWithRetrySettings( - // defaultRetrySettings, ImmutableSet.of(Code.INVALID_ARGUMENT)); - // - // BlockRequest blockRequest = - // BlockRequest.newBuilder() - // .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) - // .build(); - // RetryingFuture retryingFuture = - // (RetryingFuture) grpcClientWithRetrySetting.blockCallable() - // .futureCall(blockRequest); - // - // Thread.sleep(50000); - // - // BlockResponse blockResponse = retryingFuture.get(10000, TimeUnit.SECONDS); - // - // } - // - // @Test - // public void testGrpc_attemptPermanentFailure_throwsException() throws Exception { - // - // RetrySettings defaultRetrySettings = - // RetrySettings.newBuilder() - // .setMaxAttempts(2) - // .build(); - // EchoClient grpcClientWithRetrySetting = - // TestClientInitializer.createGrpcEchoClientOtelWithRetrySettings( - // defaultRetrySettings, ImmutableSet.of(Code.UNAVAILABLE)); - // - // // if the request code is not in set of retryable codes, the ApiResultRetryAlgorithm - // // send false for shouldRetry(), which sends false in - // retryAlgorithm.shouldRetryBasedOnResult() - // // which triggers this scenario - - // https://github.com/googleapis/sdk-platform-java/blob/main/gax-java/gax/src/main/java/com/google/api/gax/retrying/BasicRetryingFuture.java#L194-L198 - // - // BlockRequest blockRequest = - // BlockRequest.newBuilder() - // .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) - // .build(); - // - // RetryingFuture retryingFuture = - // (RetryingFuture) grpcClientWithRetrySetting.blockCallable() - // .futureCall(blockRequest); - // BlockResponse blockResponse = retryingFuture.get(100, TimeUnit.SECONDS); - // - // } + private static ApiTracerFactory createOpenTelemetryTracerFactory() { + // OTLP Metric Exporter setup + OtlpGrpcMetricExporter metricExporter = OtlpGrpcMetricExporter.builder() + .setEndpoint("http://localhost:4317") + .build(); + + // Periodic Metric Reader configuration + PeriodicMetricReader metricReader = PeriodicMetricReader.builder(metricExporter) + .setInterval(java.time.Duration.ofSeconds(2)) + .build(); + + // OpenTelemetry SDK Configuration + Resource resource = Resource.builder().build(); + SdkMeterProvider sdkMeterProvider = SdkMeterProvider.builder() + .registerMetricReader(metricReader) + .setResource(resource) + .build(); + + OpenTelemetry openTelemetry = OpenTelemetrySdk.builder() + .setMeterProvider(sdkMeterProvider) + .build(); + + // Meter Creation + Meter meter = openTelemetry.meterBuilder("gax") + .setInstrumentationVersion(GaxProperties.getGaxVersion()) + .build(); + + // OpenTelemetry Metrics Recorder + OpentelemetryMetricsRecorder otelMetricsRecorder = new OpentelemetryMetricsRecorder(meter); + + // Finally, create the Tracer Factory + return new MetricsTracerFactory(otelMetricsRecorder); + } } diff --git a/showcase/otel-col-config.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml similarity index 78% rename from showcase/otel-col-config.yaml rename to showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml index ec16ed9c88..12df125cf6 100644 --- a/showcase/otel-col-config.yaml +++ b/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml @@ -6,7 +6,7 @@ receivers: exporters: file: - path: "./metrics.txt" + path: "testHttpJson_OperationSucceded.yaml-metrics.txt" service: extensions: [] diff --git a/showcase/scripts/start_otelcol.sh b/showcase/scripts/start_otelcol.sh new file mode 100755 index 0000000000..58c47c24fc --- /dev/null +++ b/showcase/scripts/start_otelcol.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# Define the directory where you want to install everything +install_dir="../opentelemetry-logs" + +# Create the install directory if it doesn't exist +mkdir -p "$install_dir" + +# Change directory to the install directory +cd "$install_dir" + +echo "the otel collector installation is running" + +## in future iterations/improvement, make this version dynamic +curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.93.0/otelcol_0.93.0_linux_amd64.tar.gz +tar -xvf otelcol_0.93.0_linux_amd64.tar.gz + +killall otelcol + +## Start OpenTelemetry Collector with the updated config file +echo "Starting OpenTelemetry Collector with the updated config file: $1" +nohup ./otelcol --config "$1" > /dev/null 2>&1 & + +exit 0 diff --git a/showcase/scripts/verify_metrics.sh b/showcase/scripts/verify_metrics.sh new file mode 100755 index 0000000000..f9f4d51c17 --- /dev/null +++ b/showcase/scripts/verify_metrics.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# add logic for verifying metrics + + +# perform cleanup +# Specify the directory to delete +directory_to_delete="../opentelemetry-logs" + +# Check if the directory exists +if [ -d "$directory_to_delete" ]; then + rm -rf "$directory_to_delete" + echo "Directory '$directory_to_delete' has been deleted." +else + echo "Error: Directory '$directory_to_delete' does not exist." +fi + +exit 0 From c4f3547a457ac0412352fae159e353525071adaf Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Fri, 9 Feb 2024 19:05:31 +0000 Subject: [PATCH 18/75] chore: lint --- .../src/main/java/com/google/api/gax/rpc/ClientSettings.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gax-java/gax/src/main/java/com/google/api/gax/rpc/ClientSettings.java b/gax-java/gax/src/main/java/com/google/api/gax/rpc/ClientSettings.java index 3b1796ff46..f986e2be81 100644 --- a/gax-java/gax/src/main/java/com/google/api/gax/rpc/ClientSettings.java +++ b/gax-java/gax/src/main/java/com/google/api/gax/rpc/ClientSettings.java @@ -286,8 +286,9 @@ public B setGdchApiAudience(@Nullable String gdchApiAudience) { } /** - * Sets the ApiTracerFactory for the client instance. To enable default metrics, users need to create an instance - * of metricsRecorder and pass it to the metricsTracerFactory, and set it here. + * Sets the ApiTracerFactory for the client instance. To enable default metrics, users need to + * create an instance of metricsRecorder and pass it to the metricsTracerFactory, and set it + * here. */ public B setTracerFactory(@Nullable ApiTracerFactory tracerFactory) { stubSettings.setTracerFactory(tracerFactory); From 1b80dfab8cd5791f1ac8fb07da5e162999df1a8d Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Fri, 9 Feb 2024 19:08:05 +0000 Subject: [PATCH 19/75] chore: fix lint --- .../showcase/v1beta1/it/ITOtelMetrics.java | 89 ++++++------------- 1 file changed, 27 insertions(+), 62 deletions(-) diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index df1196e8a9..a80c3b0f65 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -16,74 +16,38 @@ package com.google.showcase.v1beta1.it; -import static org.junit.Assert.assertThrows; import com.google.api.client.http.javanet.NetHttpTransport; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.core.ListenableFutureToApiFuture; -import com.google.api.core.SettableApiFuture; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.retrying.RetryingFuture; -import com.google.api.gax.rpc.CancelledException; -import com.google.api.gax.rpc.NotFoundException; import com.google.api.gax.rpc.StatusCode.Code; -import com.google.api.gax.rpc.UnaryCallable; import com.google.api.gax.tracing.ApiTracerFactory; import com.google.api.gax.tracing.MetricsTracerFactory; import com.google.api.gax.tracing.OpentelemetryMetricsRecorder; -import com.google.common.collect.ImmutableSet; -import com.google.common.util.concurrent.ListenableFuture; -import com.google.common.util.concurrent.SettableFuture; import com.google.rpc.Status; -import io.grpc.ManagedChannelBuilder; -import com.google.showcase.v1beta1.BlockRequest; -import com.google.showcase.v1beta1.BlockResponse; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; -import com.google.showcase.v1beta1.EchoResponse; import com.google.showcase.v1beta1.EchoSettings; -import com.google.showcase.v1beta1.stub.EchoStubSettings; -import com.google.showcase.v1beta1.WaitResponse; -import com.google.showcase.v1beta1.it.util.TestClientInitializer; import io.opentelemetry.api.OpenTelemetry; import io.opentelemetry.api.metrics.Meter; -import io.opentelemetry.api.metrics.ObservableLongMeasurement; import io.opentelemetry.exporter.otlp.metrics.OtlpGrpcMetricExporter; import io.opentelemetry.sdk.OpenTelemetrySdk; import io.opentelemetry.sdk.metrics.SdkMeterProvider; -import io.opentelemetry.sdk.metrics.data.MetricData; -import io.opentelemetry.sdk.metrics.export.MetricReader; import io.opentelemetry.sdk.metrics.export.PeriodicMetricReader; import io.opentelemetry.sdk.resources.Resource; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.nio.file.Files; -import java.nio.file.Paths; -import java.util.List; -import java.util.concurrent.Callable; -import java.util.concurrent.CancellationException; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.Future; -import java.util.concurrent.TimeUnit; -import org.junit.AfterClass; -import org.junit.Before; -import org.junit.BeforeClass; import org.junit.Test; public class ITOtelMetrics { // Helper function for creating opentelemetry object defined below, used in each test. @Test - public void testHttpJson_OperationSucceded_recordsMetrics() - throws Exception { + public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { - //initialize the otel-collector - Process process = Runtime.getRuntime().exec("../scripts/start_otelcol.sh ../opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml"); + // initialize the otel-collector + Process process = + Runtime.getRuntime() + .exec( + "../scripts/start_otelcol.sh ../opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml"); process.waitFor(); EchoSettings httpJsonEchoSettings = @@ -104,40 +68,41 @@ public void testHttpJson_OperationSucceded_recordsMetrics() .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) .build(); client.echoCallable().futureCall(requestWithNoError).get(); - //wait for the metrics to get uploaded + // wait for the metrics to get uploaded Thread.sleep(3000); - //verify the metrics and cleanup - Process cleanup = Runtime.getRuntime().exec("../scripts/verify_metrics.sh ../opentelemetry-helper/metrics/testHttpJson_OperationSucceded.txt"); + // verify the metrics and cleanup + Process cleanup = + Runtime.getRuntime() + .exec( + "../scripts/verify_metrics.sh ../opentelemetry-helper/metrics/testHttpJson_OperationSucceded.txt"); process.waitFor(); - } private static ApiTracerFactory createOpenTelemetryTracerFactory() { // OTLP Metric Exporter setup - OtlpGrpcMetricExporter metricExporter = OtlpGrpcMetricExporter.builder() - .setEndpoint("http://localhost:4317") - .build(); + OtlpGrpcMetricExporter metricExporter = + OtlpGrpcMetricExporter.builder().setEndpoint("http://localhost:4317").build(); // Periodic Metric Reader configuration - PeriodicMetricReader metricReader = PeriodicMetricReader.builder(metricExporter) - .setInterval(java.time.Duration.ofSeconds(2)) - .build(); + PeriodicMetricReader metricReader = + PeriodicMetricReader.builder(metricExporter) + .setInterval(java.time.Duration.ofSeconds(2)) + .build(); // OpenTelemetry SDK Configuration Resource resource = Resource.builder().build(); - SdkMeterProvider sdkMeterProvider = SdkMeterProvider.builder() - .registerMetricReader(metricReader) - .setResource(resource) - .build(); + SdkMeterProvider sdkMeterProvider = + SdkMeterProvider.builder().registerMetricReader(metricReader).setResource(resource).build(); - OpenTelemetry openTelemetry = OpenTelemetrySdk.builder() - .setMeterProvider(sdkMeterProvider) - .build(); + OpenTelemetry openTelemetry = + OpenTelemetrySdk.builder().setMeterProvider(sdkMeterProvider).build(); // Meter Creation - Meter meter = openTelemetry.meterBuilder("gax") - .setInstrumentationVersion(GaxProperties.getGaxVersion()) - .build(); + Meter meter = + openTelemetry + .meterBuilder("gax") + .setInstrumentationVersion(GaxProperties.getGaxVersion()) + .build(); // OpenTelemetry Metrics Recorder OpentelemetryMetricsRecorder otelMetricsRecorder = new OpentelemetryMetricsRecorder(meter); From 0f7b6dd490d3843bd472b695d748710ddae10888 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Fri, 9 Feb 2024 19:11:37 +0000 Subject: [PATCH 20/75] lint --- .../test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java | 1 - 1 file changed, 1 deletion(-) diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index a80c3b0f65..1a3a5d65f0 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -16,7 +16,6 @@ package com.google.showcase.v1beta1.it; - import com.google.api.client.http.javanet.NetHttpTransport; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.NoCredentialsProvider; From 3217611d019b55e9a8b5634b43b6f00215b60579 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Fri, 9 Feb 2024 19:22:16 +0000 Subject: [PATCH 21/75] chore: test if logs exist --- .../showcase/v1beta1/it/ITOtelMetrics.java | 17 +++++++++++++++++ .../configs/testHttpJson_OperationSucceded.yaml | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 1a3a5d65f0..585b9efbdb 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -34,6 +34,9 @@ import io.opentelemetry.sdk.metrics.SdkMeterProvider; import io.opentelemetry.sdk.metrics.export.PeriodicMetricReader; import io.opentelemetry.sdk.resources.Resource; +import java.io.BufferedReader; +import java.io.FileReader; +import java.io.IOException; import org.junit.Test; public class ITOtelMetrics { @@ -69,6 +72,20 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { client.echoCallable().futureCall(requestWithNoError).get(); // wait for the metrics to get uploaded Thread.sleep(3000); + + String filePath = "../opentelemetry-logs/testHttpJson_OperationSucceded-metrics.txt"; + + try (BufferedReader reader = new BufferedReader(new FileReader(filePath))) { + String currentLine; + + while ((currentLine = reader.readLine()) != null) { + System.out.println(currentLine); // Process each line + } + + } catch (IOException e) { + System.err.println("Error reading file: " + e.getMessage()); + } + // verify the metrics and cleanup Process cleanup = Runtime.getRuntime() diff --git a/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml index 12df125cf6..79fc0a68a3 100644 --- a/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml +++ b/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml @@ -6,7 +6,7 @@ receivers: exporters: file: - path: "testHttpJson_OperationSucceded.yaml-metrics.txt" + path: "testHttpJson_OperationSucceded-metrics.txt" service: extensions: [] From 36f7cd31d0805f34171fbcaa69e26cdf7152c15b Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Fri, 9 Feb 2024 21:27:38 +0000 Subject: [PATCH 22/75] chore: let's see if 2 tests run ok --- .../showcase/v1beta1/it/ITOtelMetrics.java | 86 +++++++++++++------ ...l => testHttpJson_OperationCancelled.yaml} | 2 +- .../testHttpJson_OperationSucceeded.yaml | 17 ++++ .../{verify_metrics.sh => cleanup_otelcol.sh} | 6 +- 4 files changed, 81 insertions(+), 30 deletions(-) rename showcase/opentelemetry-helper/configs/{testHttpJson_OperationSucceded.yaml => testHttpJson_OperationCancelled.yaml} (79%) create mode 100644 showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml rename showcase/scripts/{verify_metrics.sh => cleanup_otelcol.sh} (77%) diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 585b9efbdb..9423844142 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -23,6 +23,7 @@ import com.google.api.gax.tracing.ApiTracerFactory; import com.google.api.gax.tracing.MetricsTracerFactory; import com.google.api.gax.tracing.OpentelemetryMetricsRecorder; +import com.google.common.truth.Truth; import com.google.rpc.Status; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; @@ -34,23 +35,25 @@ import io.opentelemetry.sdk.metrics.SdkMeterProvider; import io.opentelemetry.sdk.metrics.export.PeriodicMetricReader; import io.opentelemetry.sdk.resources.Resource; -import java.io.BufferedReader; -import java.io.FileReader; -import java.io.IOException; +import java.io.File; +import org.junit.After; import org.junit.Test; public class ITOtelMetrics { - // Helper function for creating opentelemetry object defined below, used in each test. + @After + public void cleanup_otelcol() throws Exception { + Process process = Runtime.getRuntime().exec("../scripts/cleanup_otelcol.sh"); + process.waitFor(); + } + @Test public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { // initialize the otel-collector - Process process = - Runtime.getRuntime() - .exec( - "../scripts/start_otelcol.sh ../opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml"); - process.waitFor(); + setupOtelCollector( + "../scripts/start_otelcol.sh", + "../opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml"); EchoSettings httpJsonEchoSettings = EchoSettings.newHttpJsonBuilder() @@ -69,31 +72,61 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { EchoRequest.newBuilder() .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) .build(); + client.echoCallable().futureCall(requestWithNoError).get(); + // wait for the metrics to get uploaded Thread.sleep(3000); - String filePath = "../opentelemetry-logs/testHttpJson_OperationSucceded-metrics.txt"; + String filePath = "../opentelemetry-logs/testHttpJson_OperationSucceeded_metrics.txt"; + // 1. Check if the log file exists + File file = new File(filePath); + Truth.assertThat(file.exists()).isTrue(); + // Assert that the file is not empty + Truth.assertThat(file.length() > 0).isTrue(); + } + + @Test + public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { + + // initialize the otel-collector + setupOtelCollector( + "../scripts/start_otelcol.sh", + "../opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml"); + + EchoSettings httpJsonEchoSettings = + EchoSettings.newHttpJsonBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTracerFactory(createOpenTelemetryTracerFactory()) + .setTransportChannelProvider( + EchoSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport( + new NetHttpTransport.Builder().doNotValidateCertificate().build()) + .setEndpoint("http://localhost:7469") + .build()) + .build(); + EchoClient client = EchoClient.create(httpJsonEchoSettings); - try (BufferedReader reader = new BufferedReader(new FileReader(filePath))) { - String currentLine; + EchoRequest requestWithNoError = + EchoRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) + .build(); - while ((currentLine = reader.readLine()) != null) { - System.out.println(currentLine); // Process each line - } + // explicitly cancel the request + client.echoCallable().futureCall(requestWithNoError).cancel(true); - } catch (IOException e) { - System.err.println("Error reading file: " + e.getMessage()); - } + // wait for the metrics to get uploaded + Thread.sleep(3000); - // verify the metrics and cleanup - Process cleanup = - Runtime.getRuntime() - .exec( - "../scripts/verify_metrics.sh ../opentelemetry-helper/metrics/testHttpJson_OperationSucceded.txt"); - process.waitFor(); + String filePath = "../opentelemetry-logs/testHttpJson_OperationCancelled_metrics.txt"; + // 1. Check if the log file exists + File file = new File(filePath); + Truth.assertThat(file.exists()).isTrue(); + // Assert that the file is not empty + Truth.assertThat(file.length() > 0).isTrue(); } + // Helper function for creating opentelemetry object private static ApiTracerFactory createOpenTelemetryTracerFactory() { // OTLP Metric Exporter setup OtlpGrpcMetricExporter metricExporter = @@ -126,4 +159,9 @@ private static ApiTracerFactory createOpenTelemetryTracerFactory() { // Finally, create the Tracer Factory return new MetricsTracerFactory(otelMetricsRecorder); } + + private void setupOtelCollector(String scriptPath, String configPath) throws Exception { + Process process = Runtime.getRuntime().exec(scriptPath + " " + configPath); + process.waitFor(); + } } diff --git a/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml similarity index 79% rename from showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml rename to showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml index 79fc0a68a3..9b4221196f 100644 --- a/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceded.yaml +++ b/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml @@ -6,7 +6,7 @@ receivers: exporters: file: - path: "testHttpJson_OperationSucceded-metrics.txt" + path: "testHttpJson_OperationCancelled_metrics.txt" service: extensions: [] diff --git a/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml new file mode 100644 index 0000000000..2138d0bb06 --- /dev/null +++ b/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml @@ -0,0 +1,17 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: "localhost:4317" + +exporters: + file: + path: "testHttpJson_OperationSucceeded_metrics.txt" + +service: + extensions: [] + pipelines: + metrics: + receivers: [otlp] + processors: [] + exporters: [file] \ No newline at end of file diff --git a/showcase/scripts/verify_metrics.sh b/showcase/scripts/cleanup_otelcol.sh similarity index 77% rename from showcase/scripts/verify_metrics.sh rename to showcase/scripts/cleanup_otelcol.sh index f9f4d51c17..109d1a7701 100755 --- a/showcase/scripts/verify_metrics.sh +++ b/showcase/scripts/cleanup_otelcol.sh @@ -1,10 +1,6 @@ #!/bin/bash -# add logic for verifying metrics - - -# perform cleanup -# Specify the directory to delete +# perform cleanup, Specify the directory to delete directory_to_delete="../opentelemetry-logs" # Check if the directory exists From beb91f104049d57f8081059361c0590b6ee8619f Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Fri, 9 Feb 2024 21:34:53 +0000 Subject: [PATCH 23/75] chore: let's see if 2 tests run ok --- .../java/com/google/showcase/v1beta1/it/ITOtelMetrics.java | 6 +++--- showcase/scripts/start_otelcol.sh | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 9423844142..15c7e4b198 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -76,7 +76,7 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { client.echoCallable().futureCall(requestWithNoError).get(); // wait for the metrics to get uploaded - Thread.sleep(3000); + Thread.sleep(4000); String filePath = "../opentelemetry-logs/testHttpJson_OperationSucceeded_metrics.txt"; // 1. Check if the log file exists @@ -116,7 +116,7 @@ public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { client.echoCallable().futureCall(requestWithNoError).cancel(true); // wait for the metrics to get uploaded - Thread.sleep(3000); + Thread.sleep(4000); String filePath = "../opentelemetry-logs/testHttpJson_OperationCancelled_metrics.txt"; // 1. Check if the log file exists @@ -135,7 +135,7 @@ private static ApiTracerFactory createOpenTelemetryTracerFactory() { // Periodic Metric Reader configuration PeriodicMetricReader metricReader = PeriodicMetricReader.builder(metricExporter) - .setInterval(java.time.Duration.ofSeconds(2)) + .setInterval(java.time.Duration.ofSeconds(3)) .build(); // OpenTelemetry SDK Configuration diff --git a/showcase/scripts/start_otelcol.sh b/showcase/scripts/start_otelcol.sh index 58c47c24fc..ebf99924b0 100755 --- a/showcase/scripts/start_otelcol.sh +++ b/showcase/scripts/start_otelcol.sh @@ -9,8 +9,6 @@ mkdir -p "$install_dir" # Change directory to the install directory cd "$install_dir" -echo "the otel collector installation is running" - ## in future iterations/improvement, make this version dynamic curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.93.0/otelcol_0.93.0_linux_amd64.tar.gz tar -xvf otelcol_0.93.0_linux_amd64.tar.gz From 5a33a4f7518cff3bee09a5a9e2e3ca349516c7fe Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Fri, 9 Feb 2024 22:16:07 +0000 Subject: [PATCH 24/75] chore: will this work? --- .../showcase/v1beta1/it/ITOtelMetrics.java | 18 ++++++++---------- showcase/scripts/cleanup_otelcol.sh | 2 ++ showcase/scripts/start_otelcol.sh | 1 - 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 15c7e4b198..b0fc4d72c0 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -36,12 +36,10 @@ import io.opentelemetry.sdk.metrics.export.PeriodicMetricReader; import io.opentelemetry.sdk.resources.Resource; import java.io.File; -import org.junit.After; import org.junit.Test; public class ITOtelMetrics { - @After public void cleanup_otelcol() throws Exception { Process process = Runtime.getRuntime().exec("../scripts/cleanup_otelcol.sh"); process.waitFor(); @@ -58,7 +56,7 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { EchoSettings httpJsonEchoSettings = EchoSettings.newHttpJsonBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory()) + .setTracerFactory(createOpenTelemetryTracerFactory("4317")) .setTransportChannelProvider( EchoSettings.defaultHttpJsonTransportProviderBuilder() .setHttpTransport( @@ -82,8 +80,8 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { // 1. Check if the log file exists File file = new File(filePath); Truth.assertThat(file.exists()).isTrue(); - // Assert that the file is not empty Truth.assertThat(file.length() > 0).isTrue(); + cleanup_otelcol(); } @Test @@ -97,7 +95,7 @@ public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { EchoSettings httpJsonEchoSettings = EchoSettings.newHttpJsonBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory()) + .setTracerFactory(createOpenTelemetryTracerFactory("4317")) .setTransportChannelProvider( EchoSettings.defaultHttpJsonTransportProviderBuilder() .setHttpTransport( @@ -116,21 +114,21 @@ public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { client.echoCallable().futureCall(requestWithNoError).cancel(true); // wait for the metrics to get uploaded - Thread.sleep(4000); + Thread.sleep(5000); String filePath = "../opentelemetry-logs/testHttpJson_OperationCancelled_metrics.txt"; - // 1. Check if the log file exists File file = new File(filePath); Truth.assertThat(file.exists()).isTrue(); - // Assert that the file is not empty Truth.assertThat(file.length() > 0).isTrue(); + cleanup_otelcol(); } // Helper function for creating opentelemetry object - private static ApiTracerFactory createOpenTelemetryTracerFactory() { + private static ApiTracerFactory createOpenTelemetryTracerFactory(String port) { // OTLP Metric Exporter setup + String endpoint = "http://localhost:" + port; OtlpGrpcMetricExporter metricExporter = - OtlpGrpcMetricExporter.builder().setEndpoint("http://localhost:4317").build(); + OtlpGrpcMetricExporter.builder().setEndpoint(endpoint).build(); // Periodic Metric Reader configuration PeriodicMetricReader metricReader = diff --git a/showcase/scripts/cleanup_otelcol.sh b/showcase/scripts/cleanup_otelcol.sh index 109d1a7701..6a56949522 100755 --- a/showcase/scripts/cleanup_otelcol.sh +++ b/showcase/scripts/cleanup_otelcol.sh @@ -1,5 +1,7 @@ #!/bin/bash +killall otelcol + # perform cleanup, Specify the directory to delete directory_to_delete="../opentelemetry-logs" diff --git a/showcase/scripts/start_otelcol.sh b/showcase/scripts/start_otelcol.sh index ebf99924b0..6db436001a 100755 --- a/showcase/scripts/start_otelcol.sh +++ b/showcase/scripts/start_otelcol.sh @@ -13,7 +13,6 @@ cd "$install_dir" curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.93.0/otelcol_0.93.0_linux_amd64.tar.gz tar -xvf otelcol_0.93.0_linux_amd64.tar.gz -killall otelcol ## Start OpenTelemetry Collector with the updated config file echo "Starting OpenTelemetry Collector with the updated config file: $1" From ae99154d86d096af45cb5086abe898a9cb794a7b Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Fri, 9 Feb 2024 23:37:10 +0000 Subject: [PATCH 25/75] chore: run 3 tests together --- .../showcase/v1beta1/it/ITOtelMetrics.java | 105 ++++++++++++++++-- ...estGrpc_attemptFailedRetriesExhausted.yaml | 17 +++ .../testHttpJson_OperationCancelled.yaml | 2 +- showcase/scripts/cleanup_otelcol.sh | 26 +++-- showcase/scripts/start_otelcol.sh | 7 +- 5 files changed, 132 insertions(+), 25 deletions(-) create mode 100644 showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index b0fc4d72c0..221fb4f8df 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -19,15 +19,22 @@ import com.google.api.client.http.javanet.NetHttpTransport; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.RetryingFuture; import com.google.api.gax.rpc.StatusCode.Code; import com.google.api.gax.tracing.ApiTracerFactory; import com.google.api.gax.tracing.MetricsTracerFactory; import com.google.api.gax.tracing.OpentelemetryMetricsRecorder; +import com.google.common.collect.ImmutableSet; import com.google.common.truth.Truth; import com.google.rpc.Status; +import com.google.showcase.v1beta1.BlockRequest; +import com.google.showcase.v1beta1.BlockResponse; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.EchoSettings; +import com.google.showcase.v1beta1.stub.EchoStubSettings; +import io.grpc.ManagedChannelBuilder; import io.opentelemetry.api.OpenTelemetry; import io.opentelemetry.api.metrics.Meter; import io.opentelemetry.exporter.otlp.metrics.OtlpGrpcMetricExporter; @@ -35,12 +42,17 @@ import io.opentelemetry.sdk.metrics.SdkMeterProvider; import io.opentelemetry.sdk.metrics.export.PeriodicMetricReader; import io.opentelemetry.sdk.resources.Resource; +import java.io.BufferedReader; import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import org.junit.AfterClass; import org.junit.Test; public class ITOtelMetrics { - public void cleanup_otelcol() throws Exception { + @AfterClass + public static void cleanup_otelcol() throws Exception { Process process = Runtime.getRuntime().exec("../scripts/cleanup_otelcol.sh"); process.waitFor(); } @@ -51,6 +63,7 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { // initialize the otel-collector setupOtelCollector( "../scripts/start_otelcol.sh", + "../directory1", "../opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml"); EchoSettings httpJsonEchoSettings = @@ -64,6 +77,7 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { .setEndpoint("http://localhost:7469") .build()) .build(); + EchoClient client = EchoClient.create(httpJsonEchoSettings); EchoRequest requestWithNoError = @@ -74,14 +88,23 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { client.echoCallable().futureCall(requestWithNoError).get(); // wait for the metrics to get uploaded - Thread.sleep(4000); + Thread.sleep(5000); - String filePath = "../opentelemetry-logs/testHttpJson_OperationSucceeded_metrics.txt"; + String filePath = "../directory1/testHttpJson_OperationSucceeded_metrics.txt"; // 1. Check if the log file exists File file = new File(filePath); Truth.assertThat(file.exists()).isTrue(); Truth.assertThat(file.length() > 0).isTrue(); - cleanup_otelcol(); + + // this is for test purpose only, I'm verifying the correct logs exist or not + try (BufferedReader br = new BufferedReader(new FileReader(filePath))) { + String line; + while ((line = br.readLine()) != null) { + System.out.println(line); + } + } catch (IOException e) { + e.printStackTrace(); + } } @Test @@ -90,12 +113,13 @@ public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { // initialize the otel-collector setupOtelCollector( "../scripts/start_otelcol.sh", + "../directory2", "../opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml"); EchoSettings httpJsonEchoSettings = EchoSettings.newHttpJsonBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4317")) + .setTracerFactory(createOpenTelemetryTracerFactory("4318")) .setTransportChannelProvider( EchoSettings.defaultHttpJsonTransportProviderBuilder() .setHttpTransport( @@ -116,14 +140,71 @@ public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { // wait for the metrics to get uploaded Thread.sleep(5000); - String filePath = "../opentelemetry-logs/testHttpJson_OperationCancelled_metrics.txt"; + String filePath = "../directory2/testHttpJson_OperationCancelled_metrics.txt"; File file = new File(filePath); Truth.assertThat(file.exists()).isTrue(); Truth.assertThat(file.length() > 0).isTrue(); - cleanup_otelcol(); } - // Helper function for creating opentelemetry object + @Test + public void testGrpc_attemptFailedRetriesExhausted_throwsException() throws Exception { + + setupOtelCollector( + "../scripts/start_otelcol.sh", + "../directory3", + "../opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml"); + + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(2).build(); + + EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newBuilder(); + grpcEchoSettingsBuilder + .blockSettings() + .setRetrySettings(retrySettings) + .setRetryableCodes(ImmutableSet.of(Code.INVALID_ARGUMENT)); + + EchoSettings grpcEchoSettingsOtel = EchoSettings.create(grpcEchoSettingsBuilder.build()); + grpcEchoSettingsOtel = + grpcEchoSettingsOtel + .toBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTracerFactory(createOpenTelemetryTracerFactory("4319")) + .setTransportChannelProvider( + EchoSettings.defaultGrpcTransportProviderBuilder() + .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) + .build()) + .setEndpoint("localhost:7469") + .build(); + + EchoClient grpcClientWithRetrySetting = EchoClient.create(grpcEchoSettingsOtel); + + BlockRequest blockRequest = + BlockRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) + .build(); + + RetryingFuture retryingFuture = + (RetryingFuture) + grpcClientWithRetrySetting.blockCallable().futureCall(blockRequest); + + Thread.sleep(4000); + + String filePath = "../directory3/testGrpc_attemptFailedRetriesExhausted_metrics.txt"; + File file = new File(filePath); + Truth.assertThat(file.exists()).isTrue(); + Truth.assertThat(file.length() > 0).isTrue(); + + // this is for test purpose only, I'm verifying the correct logs exist or not + try (BufferedReader br = new BufferedReader(new FileReader(filePath))) { + String line; + while ((line = br.readLine()) != null) { + System.out.println(line); + } + } catch (IOException e) { + e.printStackTrace(); + } + } + + // Helper function for creating Opentelemetry object private static ApiTracerFactory createOpenTelemetryTracerFactory(String port) { // OTLP Metric Exporter setup String endpoint = "http://localhost:" + port; @@ -133,7 +214,7 @@ private static ApiTracerFactory createOpenTelemetryTracerFactory(String port) { // Periodic Metric Reader configuration PeriodicMetricReader metricReader = PeriodicMetricReader.builder(metricExporter) - .setInterval(java.time.Duration.ofSeconds(3)) + .setInterval(java.time.Duration.ofSeconds(2)) .build(); // OpenTelemetry SDK Configuration @@ -158,8 +239,10 @@ private static ApiTracerFactory createOpenTelemetryTracerFactory(String port) { return new MetricsTracerFactory(otelMetricsRecorder); } - private void setupOtelCollector(String scriptPath, String configPath) throws Exception { - Process process = Runtime.getRuntime().exec(scriptPath + " " + configPath); + private void setupOtelCollector(String scriptPath, String directoryPath, String configPath) + throws Exception { + Process process = + Runtime.getRuntime().exec(scriptPath + " " + directoryPath + " " + configPath); process.waitFor(); } } diff --git a/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml b/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml new file mode 100644 index 0000000000..64d3c98ed6 --- /dev/null +++ b/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml @@ -0,0 +1,17 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: "localhost:4319" + +exporters: + file: + path: "testGrpc_attemptFailedRetriesExhausted_metrics.txt" + +service: + extensions: [] + pipelines: + metrics: + receivers: [otlp] + processors: [] + exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml index 9b4221196f..5b257dbc5a 100644 --- a/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml +++ b/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml @@ -2,7 +2,7 @@ receivers: otlp: protocols: grpc: - endpoint: "localhost:4317" + endpoint: "localhost:4318" exporters: file: diff --git a/showcase/scripts/cleanup_otelcol.sh b/showcase/scripts/cleanup_otelcol.sh index 6a56949522..38475490f9 100755 --- a/showcase/scripts/cleanup_otelcol.sh +++ b/showcase/scripts/cleanup_otelcol.sh @@ -2,15 +2,21 @@ killall otelcol -# perform cleanup, Specify the directory to delete -directory_to_delete="../opentelemetry-logs" +# Directories to delete +directories_to_delete=( + "../directory1" + "../directory2" + "../directory3" +) -# Check if the directory exists -if [ -d "$directory_to_delete" ]; then - rm -rf "$directory_to_delete" - echo "Directory '$directory_to_delete' has been deleted." -else - echo "Error: Directory '$directory_to_delete' does not exist." -fi +# Iterate over each directory and delete it if it exists +for directory in "${directories_to_delete[@]}"; do + if [ -d "$directory" ]; then + rm -rf "$directory" + echo "Directory '$directory' has been deleted." + else + echo "Error: Directory '$directory' does not exist." + fi +done -exit 0 +exit 0 \ No newline at end of file diff --git a/showcase/scripts/start_otelcol.sh b/showcase/scripts/start_otelcol.sh index 6db436001a..82d9e95938 100755 --- a/showcase/scripts/start_otelcol.sh +++ b/showcase/scripts/start_otelcol.sh @@ -1,7 +1,7 @@ #!/bin/bash # Define the directory where you want to install everything -install_dir="../opentelemetry-logs" +install_dir="$1" # Create the install directory if it doesn't exist mkdir -p "$install_dir" @@ -13,9 +13,10 @@ cd "$install_dir" curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.93.0/otelcol_0.93.0_linux_amd64.tar.gz tar -xvf otelcol_0.93.0_linux_amd64.tar.gz +killall otelcol ## Start OpenTelemetry Collector with the updated config file -echo "Starting OpenTelemetry Collector with the updated config file: $1" -nohup ./otelcol --config "$1" > /dev/null 2>&1 & +echo "Starting OpenTelemetry Collector with the updated config file: $2" +nohup ./otelcol --config "$2" > /dev/null 2>&1 & exit 0 From 52f5abe559ee76a34d100069c962f8f3b6aec307 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Mon, 12 Feb 2024 16:01:34 +0000 Subject: [PATCH 26/75] adding all tests --- .../showcase/v1beta1/it/ITOtelMetrics.java | 385 ++++++++++++++++-- .../configs/testGrpc_OperationCancelled.yaml | 17 + .../configs/testGrpc_OperationFailed.yaml | 17 + .../configs/testGrpc_OperationSucceeded.yaml | 17 + ...estGrpc_attemptFailedRetriesExhausted.yaml | 2 +- .../testGrpc_attemptPermanentFailure.yaml | 17 + .../testHttpJson_OperationCancelled.yaml | 2 +- .../configs/testHttpJson_OperationFailed.yaml | 17 + ...ttpjson_attemptFailedRetriesExhausted.yaml | 17 + .../testHttpjson_attemptPermanentFailure.yaml | 17 + showcase/pom.xml | 6 + showcase/scripts/cleanup_otelcol.sh | 17 +- showcase/scripts/start_otelcol.sh | 2 + 13 files changed, 481 insertions(+), 52 deletions(-) create mode 100644 showcase/opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml create mode 100644 showcase/opentelemetry-helper/configs/testGrpc_OperationFailed.yaml create mode 100644 showcase/opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml create mode 100644 showcase/opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml create mode 100644 showcase/opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml create mode 100644 showcase/opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml create mode 100644 showcase/opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 221fb4f8df..11111e1926 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -16,15 +16,19 @@ package com.google.showcase.v1beta1.it; +import static org.junit.Assert.assertThrows; + import com.google.api.client.http.javanet.NetHttpTransport; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.retrying.RetryingFuture; +import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode.Code; import com.google.api.gax.tracing.ApiTracerFactory; import com.google.api.gax.tracing.MetricsTracerFactory; import com.google.api.gax.tracing.OpentelemetryMetricsRecorder; +import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.common.truth.Truth; import com.google.rpc.Status; @@ -33,6 +37,7 @@ import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.EchoSettings; +import com.google.showcase.v1beta1.it.util.TestClientInitializer; import com.google.showcase.v1beta1.stub.EchoStubSettings; import io.grpc.ManagedChannelBuilder; import io.opentelemetry.api.OpenTelemetry; @@ -46,6 +51,8 @@ import java.io.File; import java.io.FileReader; import java.io.IOException; +import java.util.concurrent.TimeUnit; +import org.junit.After; import org.junit.AfterClass; import org.junit.Test; @@ -85,10 +92,10 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) .build(); - client.echoCallable().futureCall(requestWithNoError).get(); + client.echoCallable().futureCall(requestWithNoError).isDone(); // wait for the metrics to get uploaded - Thread.sleep(5000); + Thread.sleep(3000); String filePath = "../directory1/testHttpJson_OperationSucceeded_metrics.txt"; // 1. Check if the log file exists @@ -96,30 +103,65 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { Truth.assertThat(file.exists()).isTrue(); Truth.assertThat(file.length() > 0).isTrue(); - // this is for test purpose only, I'm verifying the correct logs exist or not - try (BufferedReader br = new BufferedReader(new FileReader(filePath))) { - String line; - while ((line = br.readLine()) != null) { - System.out.println(line); - } - } catch (IOException e) { - e.printStackTrace(); - } + client.close(); + client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); } @Test - public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { + public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { // initialize the otel-collector setupOtelCollector( "../scripts/start_otelcol.sh", "../directory2", + "../opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml"); + + EchoSettings grpcEchoSettings = + EchoSettings.newBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTracerFactory(createOpenTelemetryTracerFactory("4318")) + .setTransportChannelProvider( + EchoSettings.defaultGrpcTransportProviderBuilder() + .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) + .build()) + .setEndpoint("localhost:7469") + .build(); + + EchoClient client = EchoClient.create(grpcEchoSettings); + + EchoRequest requestWithNoError = + EchoRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) + .build(); + + client.echoCallable().futureCall(requestWithNoError).isDone(); + + // wait for the metrics to get uploaded + Thread.sleep(3000); + + String filePath = "../directory2/testGrpc_OperationSucceeded_metrics.txt"; + // 1. Check if the log file exists + File file = new File(filePath); + Truth.assertThat(file.exists()).isTrue(); + Truth.assertThat(file.length() > 0).isTrue(); + + client.close(); + client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + } + + @Test + public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { + + // initialize the otel-collector + setupOtelCollector( + "../scripts/start_otelcol.sh", + "../directory3", "../opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml"); EchoSettings httpJsonEchoSettings = EchoSettings.newHttpJsonBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4318")) + .setTracerFactory(createOpenTelemetryTracerFactory("4319")) .setTransportChannelProvider( EchoSettings.defaultHttpJsonTransportProviderBuilder() .setHttpTransport( @@ -138,20 +180,148 @@ public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { client.echoCallable().futureCall(requestWithNoError).cancel(true); // wait for the metrics to get uploaded - Thread.sleep(5000); + Thread.sleep(3000); - String filePath = "../directory2/testHttpJson_OperationCancelled_metrics.txt"; + String filePath = "../directory3/testHttpJson_OperationCancelled_metrics.txt"; File file = new File(filePath); Truth.assertThat(file.exists()).isTrue(); Truth.assertThat(file.length() > 0).isTrue(); + + client.close(); + client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); } @Test - public void testGrpc_attemptFailedRetriesExhausted_throwsException() throws Exception { + public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { + // initialize the otel-collector setupOtelCollector( "../scripts/start_otelcol.sh", - "../directory3", + "../directory4", + "../opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml"); + + EchoSettings grpcEchoSettings = + EchoSettings.newBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTracerFactory(createOpenTelemetryTracerFactory("4320")) + .setTransportChannelProvider( + EchoSettings.defaultGrpcTransportProviderBuilder() + .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) + .build()) + .setEndpoint("localhost:7469") + .build(); + + EchoClient client = EchoClient.create(grpcEchoSettings); + + EchoRequest requestWithNoError = + EchoRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) + .build(); + + client.echoCallable().futureCall(requestWithNoError).cancel(true); + + // wait for the metrics to get uploaded + Thread.sleep(3000); + + String filePath = "../directory4/testGrpc_OperationCancelled_metrics.txt"; + // 1. Check if the log file exists + File file = new File(filePath); + Truth.assertThat(file.exists()).isTrue(); + Truth.assertThat(file.length() > 0).isTrue(); + + client.close(); + client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + } + + @Test + public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { + + // initialize the otel-collector + setupOtelCollector( + "../scripts/start_otelcol.sh", + "../directory5", + "../opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml"); + + EchoSettings httpJsonEchoSettings = + EchoSettings.newHttpJsonBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTracerFactory(createOpenTelemetryTracerFactory("4321")) + .setTransportChannelProvider( + EchoSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport( + new NetHttpTransport.Builder().doNotValidateCertificate().build()) + .setEndpoint("http://localhost:7469") + .build()) + .build(); + EchoClient client = EchoClient.create(httpJsonEchoSettings); + + EchoRequest requestWithError = + EchoRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.PERMISSION_DENIED.ordinal()).build()) + .build(); + + client.echoCallable().futureCall(requestWithError).isDone(); + + // wait for the metrics to get uploaded + Thread.sleep(3000); + + String filePath = "../directory5/testHttpJson_OperationFailed_metrics.txt"; + File file = new File(filePath); + Truth.assertThat(file.exists()).isTrue(); + Truth.assertThat(file.length() > 0).isTrue(); + + client.close(); + client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + } + + @Test + public void testGrpc_OperationFailed_recordsMetrics() throws Exception { + + // initialize the otel-collector + setupOtelCollector( + "../scripts/start_otelcol.sh", + "../directory6", + "../opentelemetry-helper/configs/testGrpc_OperationFailed.yaml"); + + EchoSettings grpcEchoSettings = + EchoSettings.newBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTracerFactory(createOpenTelemetryTracerFactory("4322")) + .setTransportChannelProvider( + EchoSettings.defaultGrpcTransportProviderBuilder() + .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) + .build()) + .setEndpoint("localhost:7469") + .build(); + + EchoClient client = EchoClient.create(grpcEchoSettings); + + EchoRequest requestWithError = + EchoRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.UNAUTHENTICATED.ordinal()).build()) + .build(); + + client.echoCallable().futureCall(requestWithError).isDone(); + + // wait for the metrics to get uploaded + Thread.sleep(3000); + + String filePath = "../directory6/testGrpc_OperationFailed_metrics.txt"; + // 1. Check if the log file exists + File file = new File(filePath); + Truth.assertThat(file.exists()).isTrue(); + Truth.assertThat(file.length() > 0).isTrue(); + + client.close(); + client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + } + + @Test + public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Exception { + + setupOtelCollector( + "../scripts/start_otelcol.sh", + "../directory7", "../opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml"); RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(2).build(); @@ -162,12 +332,161 @@ public void testGrpc_attemptFailedRetriesExhausted_throwsException() throws Exce .setRetrySettings(retrySettings) .setRetryableCodes(ImmutableSet.of(Code.INVALID_ARGUMENT)); - EchoSettings grpcEchoSettingsOtel = EchoSettings.create(grpcEchoSettingsBuilder.build()); - grpcEchoSettingsOtel = - grpcEchoSettingsOtel + EchoSettings grpcEchoSettings = EchoSettings.create(grpcEchoSettingsBuilder.build()); + grpcEchoSettings = + grpcEchoSettings .toBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4319")) + .setTracerFactory(createOpenTelemetryTracerFactory("4323")) + .setTransportChannelProvider( + EchoSettings.defaultGrpcTransportProviderBuilder() + .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) + .build()) + .setEndpoint("localhost:7469") + .build(); + + EchoClient grpcClientWithRetrySetting = EchoClient.create(grpcEchoSettings); + + BlockRequest blockRequest = + BlockRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) + .build(); + + grpcClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); + + Thread.sleep(3000); + + String filePath = "../directory7/testGrpc_attemptFailedRetriesExhausted_metrics.txt"; + File file = new File(filePath); + Truth.assertThat(file.exists()).isTrue(); + Truth.assertThat(file.length() > 0).isTrue(); + + grpcClientWithRetrySetting.close(); + grpcClientWithRetrySetting.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + } + + @Test + public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws Exception { + + setupOtelCollector( + "../scripts/start_otelcol.sh", + "../directory8", + "../opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml"); + + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(3).build(); + + EchoStubSettings.Builder httpJsonEchoSettingsBuilder = EchoStubSettings.newHttpJsonBuilder(); + httpJsonEchoSettingsBuilder + .blockSettings() + .setRetrySettings(retrySettings) + .setRetryableCodes(ImmutableSet.of(Code.INVALID_ARGUMENT)); + + EchoSettings httpJsonEchoSettings = EchoSettings.create(httpJsonEchoSettingsBuilder.build()); + httpJsonEchoSettings = + httpJsonEchoSettings + .toBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTracerFactory(createOpenTelemetryTracerFactory("4324")) + .setTransportChannelProvider( + EchoSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport( + new NetHttpTransport.Builder().doNotValidateCertificate().build()) + .setEndpoint("http://localhost:7469") + .build()) + .build(); + + EchoClient httpJsonClientWithRetrySetting = EchoClient.create(httpJsonEchoSettings); + + BlockRequest blockRequest = + BlockRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) + .build(); + + httpJsonClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); + + Thread.sleep(3000); + + String filePath = "../directory8/testHttpjson_attemptFailedRetriesExhausted_metrics.txt"; + File file = new File(filePath); + Truth.assertThat(file.exists()).isTrue(); + Truth.assertThat(file.length() > 0).isTrue(); + + httpJsonClientWithRetrySetting.close(); + httpJsonClientWithRetrySetting.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + } + + @Test + public void testHttpjson_attemptPermanentFailure_recordsMetrics() throws Exception { + + setupOtelCollector( + "../scripts/start_otelcol.sh", + "../directory9", + "../opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml"); + + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(5).build(); + + EchoStubSettings.Builder httpJsonEchoSettingsBuilder = EchoStubSettings.newHttpJsonBuilder(); + httpJsonEchoSettingsBuilder + .blockSettings() + .setRetrySettings(retrySettings) + .setRetryableCodes(ImmutableSet.of(Code.NOT_FOUND)); + + EchoSettings httpJsonEchoSettings = EchoSettings.create(httpJsonEchoSettingsBuilder.build()); + httpJsonEchoSettings = + httpJsonEchoSettings + .toBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTracerFactory(createOpenTelemetryTracerFactory("4325")) + .setTransportChannelProvider( + EchoSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport( + new NetHttpTransport.Builder().doNotValidateCertificate().build()) + .setEndpoint("http://localhost:7469") + .build()) + .build(); + + EchoClient httpJsonClientWithRetrySetting = EchoClient.create(httpJsonEchoSettings); + + BlockRequest blockRequest = + BlockRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) + .build(); + + httpJsonClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); + + Thread.sleep(3000); + + String filePath = "../directory9/testHttpjson_attemptPermanentFailure_metrics.txt"; + File file = new File(filePath); + Truth.assertThat(file.exists()).isTrue(); + Truth.assertThat(file.length() > 0).isTrue(); + + httpJsonClientWithRetrySetting.close(); + httpJsonClientWithRetrySetting.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + } + + @Test + public void testGrpc_attemptPermanentFailure_recordsMetrics() throws Exception { + + setupOtelCollector( + "../scripts/start_otelcol.sh", + "../directory10", + "../opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml"); + + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(3).build(); + + EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newBuilder(); + grpcEchoSettingsBuilder + .blockSettings() + .setRetrySettings(retrySettings) + .setRetryableCodes(ImmutableSet.of(Code.NOT_FOUND)); + + EchoSettings grpcEchoSettings = EchoSettings.create(grpcEchoSettingsBuilder.build()); + grpcEchoSettings = + grpcEchoSettings + .toBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTracerFactory(createOpenTelemetryTracerFactory("4326")) .setTransportChannelProvider( EchoSettings.defaultGrpcTransportProviderBuilder() .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) @@ -175,36 +494,28 @@ public void testGrpc_attemptFailedRetriesExhausted_throwsException() throws Exce .setEndpoint("localhost:7469") .build(); - EchoClient grpcClientWithRetrySetting = EchoClient.create(grpcEchoSettingsOtel); + EchoClient grpcClientWithRetrySetting = EchoClient.create(grpcEchoSettings); BlockRequest blockRequest = BlockRequest.newBuilder() .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) .build(); - RetryingFuture retryingFuture = - (RetryingFuture) - grpcClientWithRetrySetting.blockCallable().futureCall(blockRequest); + grpcClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); - Thread.sleep(4000); + Thread.sleep(3000); - String filePath = "../directory3/testGrpc_attemptFailedRetriesExhausted_metrics.txt"; + String filePath = "../directory10/testGrpc_attemptPermanentFailure_metrics.txt"; File file = new File(filePath); Truth.assertThat(file.exists()).isTrue(); Truth.assertThat(file.length() > 0).isTrue(); - // this is for test purpose only, I'm verifying the correct logs exist or not - try (BufferedReader br = new BufferedReader(new FileReader(filePath))) { - String line; - while ((line = br.readLine()) != null) { - System.out.println(line); - } - } catch (IOException e) { - e.printStackTrace(); - } + grpcClientWithRetrySetting.close(); + grpcClientWithRetrySetting.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); } - // Helper function for creating Opentelemetry object + // Helper function for creating Opentelemetry object with a different port for exporter for every test + // this ensures that logs for each test are collected separately private static ApiTracerFactory createOpenTelemetryTracerFactory(String port) { // OTLP Metric Exporter setup String endpoint = "http://localhost:" + port; diff --git a/showcase/opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml b/showcase/opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml new file mode 100644 index 0000000000..0b08825f22 --- /dev/null +++ b/showcase/opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml @@ -0,0 +1,17 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: "localhost:4320" + +exporters: + file: + path: "testGrpc_OperationCancelled_metrics.txt" + +service: + extensions: [] + pipelines: + metrics: + receivers: [otlp] + processors: [] + exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testGrpc_OperationFailed.yaml b/showcase/opentelemetry-helper/configs/testGrpc_OperationFailed.yaml new file mode 100644 index 0000000000..e1443054fb --- /dev/null +++ b/showcase/opentelemetry-helper/configs/testGrpc_OperationFailed.yaml @@ -0,0 +1,17 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: "localhost:4322" + +exporters: + file: + path: "testGrpc_OperationFailed_metrics.txt" + +service: + extensions: [] + pipelines: + metrics: + receivers: [otlp] + processors: [] + exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml b/showcase/opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml new file mode 100644 index 0000000000..426141f8a0 --- /dev/null +++ b/showcase/opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml @@ -0,0 +1,17 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: "localhost:4318" + +exporters: + file: + path: "testGrpc_OperationSucceeded_metrics.txt" + +service: + extensions: [] + pipelines: + metrics: + receivers: [otlp] + processors: [] + exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml b/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml index 64d3c98ed6..c7be9642b8 100644 --- a/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml +++ b/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml @@ -2,7 +2,7 @@ receivers: otlp: protocols: grpc: - endpoint: "localhost:4319" + endpoint: "localhost:4323" exporters: file: diff --git a/showcase/opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml b/showcase/opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml new file mode 100644 index 0000000000..6b385a4c05 --- /dev/null +++ b/showcase/opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml @@ -0,0 +1,17 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: "localhost:4326" + +exporters: + file: + path: "testGrpc_attemptPermanentFailure_metrics.txt" + +service: + extensions: [] + pipelines: + metrics: + receivers: [otlp] + processors: [] + exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml index 5b257dbc5a..c7c2332ff5 100644 --- a/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml +++ b/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml @@ -2,7 +2,7 @@ receivers: otlp: protocols: grpc: - endpoint: "localhost:4318" + endpoint: "localhost:4319" exporters: file: diff --git a/showcase/opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml new file mode 100644 index 0000000000..83cc77a5ef --- /dev/null +++ b/showcase/opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml @@ -0,0 +1,17 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: "localhost:4321" + +exporters: + file: + path: "testHttpJson_OperationFailed_metrics.txt" + +service: + extensions: [] + pipelines: + metrics: + receivers: [otlp] + processors: [] + exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml b/showcase/opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml new file mode 100644 index 0000000000..e8933efa97 --- /dev/null +++ b/showcase/opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml @@ -0,0 +1,17 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: "localhost:4324" + +exporters: + file: + path: "testHttpjson_attemptFailedRetriesExhausted_metrics.txt" + +service: + extensions: [] + pipelines: + metrics: + receivers: [otlp] + processors: [] + exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml b/showcase/opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml new file mode 100644 index 0000000000..4ee529dc65 --- /dev/null +++ b/showcase/opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml @@ -0,0 +1,17 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: "localhost:4325" + +exporters: + file: + path: "testHttpjson_attemptPermanentFailure_metrics.txt" + +service: + extensions: [] + pipelines: + metrics: + receivers: [otlp] + processors: [] + exporters: [file] \ No newline at end of file diff --git a/showcase/pom.xml b/showcase/pom.xml index eceb11e39f..cad067bc94 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -121,6 +121,12 @@ opentelemetry-semconv 1.27.0-alpha + + org.apache.logging.log4j + log4j-core + 2.19.0 + test + diff --git a/showcase/scripts/cleanup_otelcol.sh b/showcase/scripts/cleanup_otelcol.sh index 38475490f9..50b5a92c4f 100755 --- a/showcase/scripts/cleanup_otelcol.sh +++ b/showcase/scripts/cleanup_otelcol.sh @@ -1,22 +1,13 @@ #!/bin/bash -killall otelcol - # Directories to delete -directories_to_delete=( - "../directory1" - "../directory2" - "../directory3" -) - -# Iterate over each directory and delete it if it exists -for directory in "${directories_to_delete[@]}"; do +for ((i = 1; i <= 10; i++)); do + directory="../directory$i" if [ -d "$directory" ]; then - rm -rf "$directory" - echo "Directory '$directory' has been deleted." + rm -rf "$directory" && echo "Directory '$directory' has been deleted." else echo "Error: Directory '$directory' does not exist." fi done -exit 0 \ No newline at end of file +exit 0 diff --git a/showcase/scripts/start_otelcol.sh b/showcase/scripts/start_otelcol.sh index 82d9e95938..90bb29bb81 100755 --- a/showcase/scripts/start_otelcol.sh +++ b/showcase/scripts/start_otelcol.sh @@ -1,5 +1,7 @@ #!/bin/bash +killall otelcol + # Define the directory where you want to install everything install_dir="$1" From fb3757fdb1cd2ab35fbd6cfebec9551075b65b31 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Mon, 12 Feb 2024 16:03:59 +0000 Subject: [PATCH 27/75] fix lint --- .../showcase/v1beta1/it/ITOtelMetrics.java | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 11111e1926..8de7c10c76 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -16,24 +16,18 @@ package com.google.showcase.v1beta1.it; -import static org.junit.Assert.assertThrows; - import com.google.api.client.http.javanet.NetHttpTransport; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.retrying.RetryingFuture; -import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode.Code; import com.google.api.gax.tracing.ApiTracerFactory; import com.google.api.gax.tracing.MetricsTracerFactory; import com.google.api.gax.tracing.OpentelemetryMetricsRecorder; -import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.common.truth.Truth; import com.google.rpc.Status; import com.google.showcase.v1beta1.BlockRequest; -import com.google.showcase.v1beta1.BlockResponse; import com.google.showcase.v1beta1.EchoClient; import com.google.showcase.v1beta1.EchoRequest; import com.google.showcase.v1beta1.EchoSettings; @@ -47,12 +41,8 @@ import io.opentelemetry.sdk.metrics.SdkMeterProvider; import io.opentelemetry.sdk.metrics.export.PeriodicMetricReader; import io.opentelemetry.sdk.resources.Resource; -import java.io.BufferedReader; import java.io.File; -import java.io.FileReader; -import java.io.IOException; import java.util.concurrent.TimeUnit; -import org.junit.After; import org.junit.AfterClass; import org.junit.Test; @@ -362,7 +352,8 @@ public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Excep Truth.assertThat(file.length() > 0).isTrue(); grpcClientWithRetrySetting.close(); - grpcClientWithRetrySetting.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + grpcClientWithRetrySetting.awaitTermination( + TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); } @Test @@ -412,7 +403,8 @@ public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws E Truth.assertThat(file.length() > 0).isTrue(); httpJsonClientWithRetrySetting.close(); - httpJsonClientWithRetrySetting.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + httpJsonClientWithRetrySetting.awaitTermination( + TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); } @Test @@ -462,7 +454,8 @@ public void testHttpjson_attemptPermanentFailure_recordsMetrics() throws Excepti Truth.assertThat(file.length() > 0).isTrue(); httpJsonClientWithRetrySetting.close(); - httpJsonClientWithRetrySetting.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + httpJsonClientWithRetrySetting.awaitTermination( + TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); } @Test @@ -511,10 +504,12 @@ public void testGrpc_attemptPermanentFailure_recordsMetrics() throws Exception { Truth.assertThat(file.length() > 0).isTrue(); grpcClientWithRetrySetting.close(); - grpcClientWithRetrySetting.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + grpcClientWithRetrySetting.awaitTermination( + TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); } - // Helper function for creating Opentelemetry object with a different port for exporter for every test + // Helper function for creating Opentelemetry object with a different port for exporter for every + // test // this ensures that logs for each test are collected separately private static ApiTracerFactory createOpenTelemetryTracerFactory(String port) { // OTLP Metric Exporter setup From de437c18d94770667318b8b05dd755c48b1a48f3 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Mon, 12 Feb 2024 16:13:12 +0000 Subject: [PATCH 28/75] chore: fix time --- .../showcase/v1beta1/it/ITOtelMetrics.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 8de7c10c76..3887d58082 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -85,7 +85,7 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { client.echoCallable().futureCall(requestWithNoError).isDone(); // wait for the metrics to get uploaded - Thread.sleep(3000); + Thread.sleep(5000); String filePath = "../directory1/testHttpJson_OperationSucceeded_metrics.txt"; // 1. Check if the log file exists @@ -127,7 +127,7 @@ public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { client.echoCallable().futureCall(requestWithNoError).isDone(); // wait for the metrics to get uploaded - Thread.sleep(3000); + Thread.sleep(5000); String filePath = "../directory2/testGrpc_OperationSucceeded_metrics.txt"; // 1. Check if the log file exists @@ -170,7 +170,7 @@ public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { client.echoCallable().futureCall(requestWithNoError).cancel(true); // wait for the metrics to get uploaded - Thread.sleep(3000); + Thread.sleep(5000); String filePath = "../directory3/testHttpJson_OperationCancelled_metrics.txt"; File file = new File(filePath); @@ -211,7 +211,7 @@ public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { client.echoCallable().futureCall(requestWithNoError).cancel(true); // wait for the metrics to get uploaded - Thread.sleep(3000); + Thread.sleep(5000); String filePath = "../directory4/testGrpc_OperationCancelled_metrics.txt"; // 1. Check if the log file exists @@ -253,7 +253,7 @@ public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { client.echoCallable().futureCall(requestWithError).isDone(); // wait for the metrics to get uploaded - Thread.sleep(3000); + Thread.sleep(5000); String filePath = "../directory5/testHttpJson_OperationFailed_metrics.txt"; File file = new File(filePath); @@ -294,7 +294,7 @@ public void testGrpc_OperationFailed_recordsMetrics() throws Exception { client.echoCallable().futureCall(requestWithError).isDone(); // wait for the metrics to get uploaded - Thread.sleep(3000); + Thread.sleep(5000); String filePath = "../directory6/testGrpc_OperationFailed_metrics.txt"; // 1. Check if the log file exists @@ -344,7 +344,7 @@ public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Excep grpcClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); - Thread.sleep(3000); + Thread.sleep(5000); String filePath = "../directory7/testGrpc_attemptFailedRetriesExhausted_metrics.txt"; File file = new File(filePath); @@ -395,7 +395,7 @@ public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws E httpJsonClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); - Thread.sleep(3000); + Thread.sleep(5000); String filePath = "../directory8/testHttpjson_attemptFailedRetriesExhausted_metrics.txt"; File file = new File(filePath); @@ -446,7 +446,7 @@ public void testHttpjson_attemptPermanentFailure_recordsMetrics() throws Excepti httpJsonClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); - Thread.sleep(3000); + Thread.sleep(5000); String filePath = "../directory9/testHttpjson_attemptPermanentFailure_metrics.txt"; File file = new File(filePath); @@ -496,7 +496,7 @@ public void testGrpc_attemptPermanentFailure_recordsMetrics() throws Exception { grpcClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); - Thread.sleep(3000); + Thread.sleep(5000); String filePath = "../directory10/testGrpc_attemptPermanentFailure_metrics.txt"; File file = new File(filePath); @@ -520,7 +520,7 @@ private static ApiTracerFactory createOpenTelemetryTracerFactory(String port) { // Periodic Metric Reader configuration PeriodicMetricReader metricReader = PeriodicMetricReader.builder(metricExporter) - .setInterval(java.time.Duration.ofSeconds(2)) + .setInterval(java.time.Duration.ofSeconds(3)) .build(); // OpenTelemetry SDK Configuration From 6024d4df5286181458c1b44c86f3ef5a272379b4 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Tue, 13 Feb 2024 00:07:59 +0000 Subject: [PATCH 29/75] refactoring tests + adding verify logic for metrics --- .../showcase/v1beta1/it/ITOtelMetrics.java | 243 ++++++++---------- showcase/scripts/cleanup_otelcol.sh | 12 +- showcase/scripts/verify_metrics.sh | 55 ++++ 3 files changed, 165 insertions(+), 145 deletions(-) create mode 100755 showcase/scripts/verify_metrics.sh diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 3887d58082..6f1e63812f 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -41,7 +41,7 @@ import io.opentelemetry.sdk.metrics.SdkMeterProvider; import io.opentelemetry.sdk.metrics.export.PeriodicMetricReader; import io.opentelemetry.sdk.resources.Resource; -import java.io.File; +import java.io.IOException; import java.util.concurrent.TimeUnit; import org.junit.AfterClass; import org.junit.Test; @@ -58,10 +58,7 @@ public static void cleanup_otelcol() throws Exception { public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { // initialize the otel-collector - setupOtelCollector( - "../scripts/start_otelcol.sh", - "../directory1", - "../opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml"); + setupOtelCollector("../opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml"); EchoSettings httpJsonEchoSettings = EchoSettings.newHttpJsonBuilder() @@ -82,16 +79,18 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) .build(); - client.echoCallable().futureCall(requestWithNoError).isDone(); + client.echo(requestWithNoError); // wait for the metrics to get uploaded Thread.sleep(5000); - String filePath = "../directory1/testHttpJson_OperationSucceeded_metrics.txt"; - // 1. Check if the log file exists - File file = new File(filePath); - Truth.assertThat(file.exists()).isTrue(); - Truth.assertThat(file.length() > 0).isTrue(); + String filePath = "../test_data/testHttpJson_OperationSucceeded_metrics.txt"; + String attribute1 = + "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"OK\"}}]"; + + String[] params = {filePath, attribute1}; + int result = verify_metrics(params); + Truth.assertThat(result).isEqualTo(0); client.close(); client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); @@ -101,10 +100,7 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { // initialize the otel-collector - setupOtelCollector( - "../scripts/start_otelcol.sh", - "../directory2", - "../opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml"); + setupOtelCollector("../opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml"); EchoSettings grpcEchoSettings = EchoSettings.newBuilder() @@ -120,20 +116,20 @@ public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { EchoClient client = EchoClient.create(grpcEchoSettings); EchoRequest requestWithNoError = - EchoRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) - .build(); + EchoRequest.newBuilder().setContent("test_grpc_operation_succeeded").build(); - client.echoCallable().futureCall(requestWithNoError).isDone(); + client.echo(requestWithNoError); // wait for the metrics to get uploaded Thread.sleep(5000); - String filePath = "../directory2/testGrpc_OperationSucceeded_metrics.txt"; - // 1. Check if the log file exists - File file = new File(filePath); - Truth.assertThat(file.exists()).isTrue(); - Truth.assertThat(file.length() > 0).isTrue(); + String filePath = "../test_data/testGrpc_OperationSucceeded_metrics.txt"; + String attribute1 = + "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"OK\"}}]"; + + String[] params = {filePath, attribute1}; + int result = verify_metrics(params); + Truth.assertThat(result).isEqualTo(0); client.close(); client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); @@ -143,10 +139,7 @@ public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { // initialize the otel-collector - setupOtelCollector( - "../scripts/start_otelcol.sh", - "../directory3", - "../opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml"); + setupOtelCollector("../opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml"); EchoSettings httpJsonEchoSettings = EchoSettings.newHttpJsonBuilder() @@ -172,10 +165,13 @@ public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { // wait for the metrics to get uploaded Thread.sleep(5000); - String filePath = "../directory3/testHttpJson_OperationCancelled_metrics.txt"; - File file = new File(filePath); - Truth.assertThat(file.exists()).isTrue(); - Truth.assertThat(file.length() > 0).isTrue(); + String filePath = "../test_data/testHttpJson_OperationCancelled_metrics.txt"; + String attribute1 = + "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"CANCELLED\"}}]"; + + String[] params = {filePath, attribute1}; + int result = verify_metrics(params); + Truth.assertThat(result).isEqualTo(0); client.close(); client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); @@ -185,10 +181,7 @@ public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { // initialize the otel-collector - setupOtelCollector( - "../scripts/start_otelcol.sh", - "../directory4", - "../opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml"); + setupOtelCollector("../opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml"); EchoSettings grpcEchoSettings = EchoSettings.newBuilder() @@ -213,11 +206,13 @@ public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { // wait for the metrics to get uploaded Thread.sleep(5000); - String filePath = "../directory4/testGrpc_OperationCancelled_metrics.txt"; - // 1. Check if the log file exists - File file = new File(filePath); - Truth.assertThat(file.exists()).isTrue(); - Truth.assertThat(file.length() > 0).isTrue(); + String filePath = "../test_data/testGrpc_OperationCancelled_metrics.txt"; + String attribute1 = + "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"CANCELLED\"}}]"; + + String[] params = {filePath, attribute1}; + int result = verify_metrics(params); + Truth.assertThat(result).isEqualTo(0); client.close(); client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); @@ -227,10 +222,7 @@ public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { // initialize the otel-collector - setupOtelCollector( - "../scripts/start_otelcol.sh", - "../directory5", - "../opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml"); + setupOtelCollector("../opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml"); EchoSettings httpJsonEchoSettings = EchoSettings.newHttpJsonBuilder() @@ -247,7 +239,7 @@ public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { EchoRequest requestWithError = EchoRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.PERMISSION_DENIED.ordinal()).build()) + .setError(Status.newBuilder().setCode(Code.UNKNOWN.ordinal()).build()) .build(); client.echoCallable().futureCall(requestWithError).isDone(); @@ -255,10 +247,13 @@ public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { // wait for the metrics to get uploaded Thread.sleep(5000); - String filePath = "../directory5/testHttpJson_OperationFailed_metrics.txt"; - File file = new File(filePath); - Truth.assertThat(file.exists()).isTrue(); - Truth.assertThat(file.length() > 0).isTrue(); + String filePath = "../test_data/testHttpJson_OperationFailed_metrics.txt"; + String attribute1 = + "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"UNKNOWN\"}}]"; + + String[] params = {filePath, attribute1}; + int result = verify_metrics(params); + Truth.assertThat(result).isEqualTo(0); client.close(); client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); @@ -268,10 +263,7 @@ public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { public void testGrpc_OperationFailed_recordsMetrics() throws Exception { // initialize the otel-collector - setupOtelCollector( - "../scripts/start_otelcol.sh", - "../directory6", - "../opentelemetry-helper/configs/testGrpc_OperationFailed.yaml"); + setupOtelCollector("../opentelemetry-helper/configs/testGrpc_OperationFailed.yaml"); EchoSettings grpcEchoSettings = EchoSettings.newBuilder() @@ -296,11 +288,13 @@ public void testGrpc_OperationFailed_recordsMetrics() throws Exception { // wait for the metrics to get uploaded Thread.sleep(5000); - String filePath = "../directory6/testGrpc_OperationFailed_metrics.txt"; - // 1. Check if the log file exists - File file = new File(filePath); - Truth.assertThat(file.exists()).isTrue(); - Truth.assertThat(file.length() > 0).isTrue(); + String filePath = "../test_data/testGrpc_OperationFailed_metrics.txt"; + String attribute1 = + "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"UNAUTHENTICATED\"}}]"; + + String[] params = {filePath, attribute1}; + int result = verify_metrics(params); + Truth.assertThat(result).isEqualTo(0); client.close(); client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); @@ -310,11 +304,9 @@ public void testGrpc_OperationFailed_recordsMetrics() throws Exception { public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Exception { setupOtelCollector( - "../scripts/start_otelcol.sh", - "../directory7", "../opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml"); - RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(2).build(); + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(5).build(); EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newBuilder(); grpcEchoSettingsBuilder @@ -346,10 +338,21 @@ public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Excep Thread.sleep(5000); - String filePath = "../directory7/testGrpc_attemptFailedRetriesExhausted_metrics.txt"; - File file = new File(filePath); - Truth.assertThat(file.exists()).isTrue(); - Truth.assertThat(file.length() > 0).isTrue(); + String filePath = "../test_data/testGrpc_attemptFailedRetriesExhausted_metrics.txt"; + + String attribute1 = + "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Block\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"INVALID_ARGUMENT\"}}]"; + + // additionally verify that 5 attempts were made + // when we make 'x' attempts, attempt_count.asInt = 'x' and there are 'x' datapoints in + // attempt_latency (Count : x} histogram + // String attribute2 = "\"asInt\":\"5\""; + String attribute2 = "\"asInt\":\"5\""; + String attribute3 = "\"count\":\"5\""; + + String[] params = {filePath, attribute1, attribute2, attribute3}; + int result = verify_metrics(params); + Truth.assertThat(result).isEqualTo(0); grpcClientWithRetrySetting.close(); grpcClientWithRetrySetting.awaitTermination( @@ -360,8 +363,6 @@ public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Excep public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws Exception { setupOtelCollector( - "../scripts/start_otelcol.sh", - "../directory8", "../opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml"); RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(3).build(); @@ -370,7 +371,7 @@ public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws E httpJsonEchoSettingsBuilder .blockSettings() .setRetrySettings(retrySettings) - .setRetryableCodes(ImmutableSet.of(Code.INVALID_ARGUMENT)); + .setRetryableCodes(ImmutableSet.of(Code.UNKNOWN)); EchoSettings httpJsonEchoSettings = EchoSettings.create(httpJsonEchoSettingsBuilder.build()); httpJsonEchoSettings = @@ -390,68 +391,21 @@ public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws E BlockRequest blockRequest = BlockRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) + .setError(Status.newBuilder().setCode(Code.UNKNOWN.ordinal()).build()) .build(); httpJsonClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); Thread.sleep(5000); - String filePath = "../directory8/testHttpjson_attemptFailedRetriesExhausted_metrics.txt"; - File file = new File(filePath); - Truth.assertThat(file.exists()).isTrue(); - Truth.assertThat(file.length() > 0).isTrue(); + String filePath = "../test_data/testHttpjson_attemptFailedRetriesExhausted_metrics.txt"; - httpJsonClientWithRetrySetting.close(); - httpJsonClientWithRetrySetting.awaitTermination( - TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); - } + String attribute1 = + "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Block\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"UNKNOWN\"}}]"; - @Test - public void testHttpjson_attemptPermanentFailure_recordsMetrics() throws Exception { - - setupOtelCollector( - "../scripts/start_otelcol.sh", - "../directory9", - "../opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml"); - - RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(5).build(); - - EchoStubSettings.Builder httpJsonEchoSettingsBuilder = EchoStubSettings.newHttpJsonBuilder(); - httpJsonEchoSettingsBuilder - .blockSettings() - .setRetrySettings(retrySettings) - .setRetryableCodes(ImmutableSet.of(Code.NOT_FOUND)); - - EchoSettings httpJsonEchoSettings = EchoSettings.create(httpJsonEchoSettingsBuilder.build()); - httpJsonEchoSettings = - httpJsonEchoSettings - .toBuilder() - .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4325")) - .setTransportChannelProvider( - EchoSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport( - new NetHttpTransport.Builder().doNotValidateCertificate().build()) - .setEndpoint("http://localhost:7469") - .build()) - .build(); - - EchoClient httpJsonClientWithRetrySetting = EchoClient.create(httpJsonEchoSettings); - - BlockRequest blockRequest = - BlockRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) - .build(); - - httpJsonClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); - - Thread.sleep(5000); - - String filePath = "../directory9/testHttpjson_attemptPermanentFailure_metrics.txt"; - File file = new File(filePath); - Truth.assertThat(file.exists()).isTrue(); - Truth.assertThat(file.length() > 0).isTrue(); + String[] params = {filePath, attribute1}; + int result = verify_metrics(params); + Truth.assertThat(result).isEqualTo(0); httpJsonClientWithRetrySetting.close(); httpJsonClientWithRetrySetting.awaitTermination( @@ -461,12 +415,9 @@ public void testHttpjson_attemptPermanentFailure_recordsMetrics() throws Excepti @Test public void testGrpc_attemptPermanentFailure_recordsMetrics() throws Exception { - setupOtelCollector( - "../scripts/start_otelcol.sh", - "../directory10", - "../opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml"); + setupOtelCollector("../opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml"); - RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(3).build(); + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(6).build(); EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newBuilder(); grpcEchoSettingsBuilder @@ -498,10 +449,17 @@ public void testGrpc_attemptPermanentFailure_recordsMetrics() throws Exception { Thread.sleep(5000); - String filePath = "../directory10/testGrpc_attemptPermanentFailure_metrics.txt"; - File file = new File(filePath); - Truth.assertThat(file.exists()).isTrue(); - Truth.assertThat(file.length() > 0).isTrue(); + String filePath = "../test_data/testGrpc_attemptPermanentFailure_metrics.txt"; + + String attribute1 = + "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Block\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"INVALID_ARGUMENT\"}}]"; + // additionally verify that only 1 attempt was made + String attribute2 = "\"asInt\":\"1\""; + String attribute3 = "\"count\":\"1\""; + + String[] params = {filePath, attribute1, attribute2, attribute3}; + int result = verify_metrics(params); + Truth.assertThat(result).isEqualTo(0); grpcClientWithRetrySetting.close(); grpcClientWithRetrySetting.awaitTermination( @@ -545,10 +503,25 @@ private static ApiTracerFactory createOpenTelemetryTracerFactory(String port) { return new MetricsTracerFactory(otelMetricsRecorder); } - private void setupOtelCollector(String scriptPath, String directoryPath, String configPath) - throws Exception { + private void setupOtelCollector(String configPath) throws Exception { + String scriptPath = "../scripts/start_otelcol.sh"; + String test_dataPath = "../test_data"; Process process = - Runtime.getRuntime().exec(scriptPath + " " + directoryPath + " " + configPath); + Runtime.getRuntime().exec(scriptPath + " " + test_dataPath + " " + configPath); process.waitFor(); } + + public static int verify_metrics(String... parameters) throws IOException, InterruptedException { + + String SCRIPT_PATH = "../scripts/verify_metrics.sh"; + + // Construct the command to execute the script with parameters + StringBuilder command = new StringBuilder(SCRIPT_PATH); + for (String parameter : parameters) { + command.append(" ").append(parameter); + } + // Execute the command + Process process = Runtime.getRuntime().exec(command.toString()); + return process.waitFor(); + } } diff --git a/showcase/scripts/cleanup_otelcol.sh b/showcase/scripts/cleanup_otelcol.sh index 50b5a92c4f..58ccda50f2 100755 --- a/showcase/scripts/cleanup_otelcol.sh +++ b/showcase/scripts/cleanup_otelcol.sh @@ -1,13 +1,5 @@ #!/bin/bash -# Directories to delete -for ((i = 1; i <= 10; i++)); do - directory="../directory$i" - if [ -d "$directory" ]; then - rm -rf "$directory" && echo "Directory '$directory' has been deleted." - else - echo "Error: Directory '$directory' does not exist." - fi -done +rm -rf "../test_data" -exit 0 +exit 0 \ No newline at end of file diff --git a/showcase/scripts/verify_metrics.sh b/showcase/scripts/verify_metrics.sh new file mode 100755 index 0000000000..320d5938bf --- /dev/null +++ b/showcase/scripts/verify_metrics.sh @@ -0,0 +1,55 @@ +#!/bin/bash + +file_exists_and_non_empty() { + if [ -s "$1" ]; then + return 0 # File exists and is non-empty + else + return 1 # File does not exist or is empty + fi +} + +# Function to check if the JSON file contains the given string +metrics_contains_string() { + local file="$1" + local str="$2" + if grep -qF "$str" "$file"; then + return 0 # String found in the JSON file + else + return 1 # String not found in the JSON file + fi +} + +if [ "$#" -lt 2 ]; then + echo "Usage: $0 [ ...]" + exit 1 +fi + +# Check for valid json structure +if jq '.' "$1" >/dev/null 2>&1; then + echo "Valid JSON" +else + echo "Invalid JSON" +fi + +metrics_file="$1" +shift + +if ! file_exists_and_non_empty "$metrics_file"; then + echo "Error: File '$metrics_file' does not exist or is empty." + exit 1 +fi + +all_found=true +for search_string in "$@"; do + if ! metrics_contains_string "$metrics_file" "$search_string"; then + echo "The metrics file does not contain the attribute '$search_string'." + all_found=false + fi +done + +if [ "$all_found" = false ]; then + echo "The metrics file does not contain all of the given attributes." + exit 1 +else + echo "All search attributes found in the metrics file." +fi \ No newline at end of file From a9c003a38d668d945536d1c4c71c002fe272afe9 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Tue, 13 Feb 2024 15:31:34 +0000 Subject: [PATCH 30/75] chore: work on comments --- .../google/api/gax/tracing/MetricsTracer.java | 1 + .../showcase/v1beta1/it/ITOtelMetrics.java | 102 ++++-------------- .../it/util/TestClientInitializer.java | 36 +++++++ 3 files changed, 60 insertions(+), 79 deletions(-) diff --git a/gax-java/gax/src/main/java/com/google/api/gax/tracing/MetricsTracer.java b/gax-java/gax/src/main/java/com/google/api/gax/tracing/MetricsTracer.java index 432548de30..af7b97664f 100644 --- a/gax-java/gax/src/main/java/com/google/api/gax/tracing/MetricsTracer.java +++ b/gax-java/gax/src/main/java/com/google/api/gax/tracing/MetricsTracer.java @@ -47,6 +47,7 @@ * This class computes generic metrics that can be observed in the lifecycle of an RPC operation. * The responsibility of recording metrics should delegate to {@link MetricsRecorder}, hence this * class should not have any knowledge about the observability framework used for metrics recording. + * method_name and language will be autopopulated attributes. Default value of language is 'Java'. */ @BetaApi @InternalApi diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 6f1e63812f..d6bcee95fe 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -43,16 +43,15 @@ import io.opentelemetry.sdk.resources.Resource; import java.io.IOException; import java.util.concurrent.TimeUnit; -import org.junit.AfterClass; import org.junit.Test; public class ITOtelMetrics { - @AfterClass - public static void cleanup_otelcol() throws Exception { - Process process = Runtime.getRuntime().exec("../scripts/cleanup_otelcol.sh"); - process.waitFor(); - } + // @AfterClass + // public static void cleanup_otelcol() throws Exception { + // Process process = Runtime.getRuntime().exec("../scripts/cleanup_otelcol.sh"); + // process.waitFor(); + // } @Test public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { @@ -60,19 +59,9 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { // initialize the otel-collector setupOtelCollector("../opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml"); - EchoSettings httpJsonEchoSettings = - EchoSettings.newHttpJsonBuilder() - .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4317")) - .setTransportChannelProvider( - EchoSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport( - new NetHttpTransport.Builder().doNotValidateCertificate().build()) - .setEndpoint("http://localhost:7469") - .build()) - .build(); - - EchoClient client = EchoClient.create(httpJsonEchoSettings); + EchoClient client = + TestClientInitializer.createHttpJsonEchoClientOpentelemetry( + createOpenTelemetryTracerFactory("4317")); EchoRequest requestWithNoError = EchoRequest.newBuilder() @@ -102,18 +91,9 @@ public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { // initialize the otel-collector setupOtelCollector("../opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml"); - EchoSettings grpcEchoSettings = - EchoSettings.newBuilder() - .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4318")) - .setTransportChannelProvider( - EchoSettings.defaultGrpcTransportProviderBuilder() - .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) - .build()) - .setEndpoint("localhost:7469") - .build(); - - EchoClient client = EchoClient.create(grpcEchoSettings); + EchoClient client = + TestClientInitializer.createGrpcEchoClientOpentelemetry( + createOpenTelemetryTracerFactory("4318")); EchoRequest requestWithNoError = EchoRequest.newBuilder().setContent("test_grpc_operation_succeeded").build(); @@ -141,18 +121,9 @@ public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { // initialize the otel-collector setupOtelCollector("../opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml"); - EchoSettings httpJsonEchoSettings = - EchoSettings.newHttpJsonBuilder() - .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4319")) - .setTransportChannelProvider( - EchoSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport( - new NetHttpTransport.Builder().doNotValidateCertificate().build()) - .setEndpoint("http://localhost:7469") - .build()) - .build(); - EchoClient client = EchoClient.create(httpJsonEchoSettings); + EchoClient client = + TestClientInitializer.createHttpJsonEchoClientOpentelemetry( + createOpenTelemetryTracerFactory("4319")); EchoRequest requestWithNoError = EchoRequest.newBuilder() @@ -183,18 +154,9 @@ public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { // initialize the otel-collector setupOtelCollector("../opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml"); - EchoSettings grpcEchoSettings = - EchoSettings.newBuilder() - .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4320")) - .setTransportChannelProvider( - EchoSettings.defaultGrpcTransportProviderBuilder() - .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) - .build()) - .setEndpoint("localhost:7469") - .build(); - - EchoClient client = EchoClient.create(grpcEchoSettings); + EchoClient client = + TestClientInitializer.createGrpcEchoClientOpentelemetry( + createOpenTelemetryTracerFactory("4320")); EchoRequest requestWithNoError = EchoRequest.newBuilder() @@ -224,18 +186,9 @@ public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { // initialize the otel-collector setupOtelCollector("../opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml"); - EchoSettings httpJsonEchoSettings = - EchoSettings.newHttpJsonBuilder() - .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4321")) - .setTransportChannelProvider( - EchoSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport( - new NetHttpTransport.Builder().doNotValidateCertificate().build()) - .setEndpoint("http://localhost:7469") - .build()) - .build(); - EchoClient client = EchoClient.create(httpJsonEchoSettings); + EchoClient client = + TestClientInitializer.createHttpJsonEchoClientOpentelemetry( + createOpenTelemetryTracerFactory("4321")); EchoRequest requestWithError = EchoRequest.newBuilder() @@ -265,18 +218,9 @@ public void testGrpc_OperationFailed_recordsMetrics() throws Exception { // initialize the otel-collector setupOtelCollector("../opentelemetry-helper/configs/testGrpc_OperationFailed.yaml"); - EchoSettings grpcEchoSettings = - EchoSettings.newBuilder() - .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4322")) - .setTransportChannelProvider( - EchoSettings.defaultGrpcTransportProviderBuilder() - .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) - .build()) - .setEndpoint("localhost:7469") - .build(); - - EchoClient client = EchoClient.create(grpcEchoSettings); + EchoClient client = + TestClientInitializer.createGrpcEchoClientOpentelemetry( + createOpenTelemetryTracerFactory("4322")); EchoRequest requestWithError = EchoRequest.newBuilder() diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java index d2606402d8..0d46eb0ab2 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java @@ -24,6 +24,7 @@ import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.tracing.ApiTracerFactory; import com.google.common.collect.ImmutableList; import com.google.showcase.v1beta1.ComplianceClient; import com.google.showcase.v1beta1.ComplianceSettings; @@ -233,4 +234,39 @@ public static ComplianceClient createHttpJsonComplianceClient( .build(); return ComplianceClient.create(httpJsonComplianceSettings); } + + public static EchoClient createHttpJsonEchoClientOpentelemetry( + ApiTracerFactory metricsTracerFactory) throws Exception { + + EchoSettings httpJsonEchoSettings = + EchoSettings.newHttpJsonBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTracerFactory(metricsTracerFactory) + .setTransportChannelProvider( + EchoSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport( + new NetHttpTransport.Builder().doNotValidateCertificate().build()) + .setEndpoint("http://localhost:7469") + .build()) + .build(); + + return EchoClient.create(httpJsonEchoSettings); + } + + public static EchoClient createGrpcEchoClientOpentelemetry(ApiTracerFactory metricsTracerFactory) + throws Exception { + + EchoSettings grpcEchoSettings = + EchoSettings.newBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTracerFactory(metricsTracerFactory) + .setTransportChannelProvider( + EchoSettings.defaultGrpcTransportProviderBuilder() + .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) + .build()) + .setEndpoint("localhost:7469") + .build(); + + return EchoClient.create(grpcEchoSettings); + } } From a0d68566a58b696023d371a39dbb3577d6188feb Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Tue, 13 Feb 2024 15:48:21 +0000 Subject: [PATCH 31/75] comments --- .../tracing/OpentelemetryMetricsRecorder.java | 2 - .../showcase/v1beta1/it/ITOtelMetrics.java | 2 +- showcase/pom.xml | 41 ------------------- 3 files changed, 1 insertion(+), 44 deletions(-) diff --git a/gax-java/gax/src/main/java/com/google/api/gax/tracing/OpentelemetryMetricsRecorder.java b/gax-java/gax/src/main/java/com/google/api/gax/tracing/OpentelemetryMetricsRecorder.java index 63117086cc..3297c7a69c 100644 --- a/gax-java/gax/src/main/java/com/google/api/gax/tracing/OpentelemetryMetricsRecorder.java +++ b/gax-java/gax/src/main/java/com/google/api/gax/tracing/OpentelemetryMetricsRecorder.java @@ -50,8 +50,6 @@ public class OpentelemetryMetricsRecorder implements MetricsRecorder { private LongCounter attemptCountRecorder; - private Attributes attributes; - public OpentelemetryMetricsRecorder(Meter meter) { this.meter = meter; this.attemptLatencyRecorder = diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index d6bcee95fe..524ec8c070 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -289,7 +289,7 @@ public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Excep // additionally verify that 5 attempts were made // when we make 'x' attempts, attempt_count.asInt = 'x' and there are 'x' datapoints in - // attempt_latency (Count : x} histogram + // attempt_latency histogram -> (count : x} // String attribute2 = "\"asInt\":\"5\""; String attribute2 = "\"asInt\":\"5\""; String attribute3 = "\"count\":\"5\""; diff --git a/showcase/pom.xml b/showcase/pom.xml index cad067bc94..c1372c65d9 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -60,11 +60,6 @@ gapic-showcase 0.0.1-SNAPSHOT - - io.opentelemetry - opentelemetry-exporter-prometheus - 1.27.0-alpha - junit junit @@ -75,17 +70,6 @@ - - io.opentelemetry - opentelemetry-exporter-prometheus - 1.27.0-alpha - - - - io.micrometer - micrometer-registry-prometheus - 1.9.7 - io.opentelemetry opentelemetry-api @@ -94,39 +78,14 @@ io.opentelemetry opentelemetry-sdk - - com.google.cloud.opentelemetry - exporter-metrics - 0.25.1 - io.opentelemetry opentelemetry-api - - io.opentelemetry - opentelemetry-sdk-metrics - 1.27.0 - - - io.opentelemetry - opentelemetry-sdk - io.opentelemetry opentelemetry-exporter-otlp - - io.opentelemetry - opentelemetry-semconv - 1.27.0-alpha - - - org.apache.logging.log4j - log4j-core - 2.19.0 - test - From 1e8a82a7af86267db6a532258cc793c3e57bbac9 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Tue, 13 Feb 2024 16:00:07 +0000 Subject: [PATCH 32/75] chore: parallel run --- .github/workflows/ci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 64b648607d..713c314fee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -219,7 +219,8 @@ jobs: mvn verify \ -P enable-integration-tests \ --batch-mode \ - --no-transfer-progress + --no-transfer-progress \ + -T 2 showcase-native: runs-on: ubuntu-22.04 From a281fc2f0fc84a59488071f5a5b76f854cb66675 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Tue, 13 Feb 2024 18:30:16 +0000 Subject: [PATCH 33/75] remove all yamls --- .../showcase/v1beta1/it/ITOtelMetrics.java | 150 ++++++++++++------ .../configs/testGrpc_OperationCancelled.yaml | 17 -- .../configs/testGrpc_OperationFailed.yaml | 17 -- .../configs/testGrpc_OperationSucceeded.yaml | 17 -- ...estGrpc_attemptFailedRetriesExhausted.yaml | 17 -- .../testGrpc_attemptPermanentFailure.yaml | 17 -- .../testHttpJson_OperationCancelled.yaml | 17 -- .../configs/testHttpJson_OperationFailed.yaml | 17 -- .../testHttpJson_OperationSucceeded.yaml | 17 -- ...ttpjson_attemptFailedRetriesExhausted.yaml | 17 -- .../testHttpjson_attemptPermanentFailure.yaml | 17 -- showcase/pom.xml | 4 - showcase/scripts/generate_otelcol_yaml.sh | 40 +++++ 13 files changed, 138 insertions(+), 226 deletions(-) delete mode 100644 showcase/opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testGrpc_OperationFailed.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml create mode 100755 showcase/scripts/generate_otelcol_yaml.sh diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 524ec8c070..da620cf532 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -43,53 +43,60 @@ import io.opentelemetry.sdk.resources.Resource; import java.io.IOException; import java.util.concurrent.TimeUnit; +import org.junit.AfterClass; import org.junit.Test; public class ITOtelMetrics { - // @AfterClass - // public static void cleanup_otelcol() throws Exception { - // Process process = Runtime.getRuntime().exec("../scripts/cleanup_otelcol.sh"); - // process.waitFor(); - // } - - @Test - public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { - - // initialize the otel-collector - setupOtelCollector("../opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml"); - - EchoClient client = - TestClientInitializer.createHttpJsonEchoClientOpentelemetry( - createOpenTelemetryTracerFactory("4317")); - - EchoRequest requestWithNoError = - EchoRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) - .build(); - - client.echo(requestWithNoError); - - // wait for the metrics to get uploaded - Thread.sleep(5000); - - String filePath = "../test_data/testHttpJson_OperationSucceeded_metrics.txt"; - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"OK\"}}]"; - - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - client.close(); - client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + @AfterClass + public static void cleanup_otelcol() throws Exception { + Process process = Runtime.getRuntime().exec("../scripts/cleanup_otelcol.sh"); + process.waitFor(); } + // This test is currently giving an error about requestId. will ask Alice and resolve it. + // @Test + // public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { + // generate_otelcol_config("4317", + // "../test_data/testHttpJson_OperationSucceeded_metrics.txt","../test_data/testHttpJson_OperationSucceeded.yaml"); + // // initialize the otel-collector + // setupOtelCollector("../test_data/testHttpJson_OperationSucceeded.yaml"); + // + // EchoClient client = + // TestClientInitializer.createHttpJsonEchoClientOpentelemetry( + // createOpenTelemetryTracerFactory("4317")); + // + // EchoRequest requestWithNoError = + // EchoRequest.newBuilder() + // .setContent("successful httpJson request") + // .build(); + // + // client.echo(requestWithNoError); + // + // // wait for the metrics to get uploaded + // Thread.sleep(5000); + // + // String filePath = "../test_data/testHttpJson_OperationSucceeded_metrics.txt"; + // String attribute1 = + // + // "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"OK\"}}]"; + // + // String[] params = {filePath, attribute1}; + // int result = verify_metrics(params); + // Truth.assertThat(result).isEqualTo(0); + // + // client.close(); + // client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + // } + @Test public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { - // initialize the otel-collector - setupOtelCollector("../opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml"); + generate_otelcol_config( + "4318", + "../test_data/testGrpc_OperationSucceeded_metrics.txt", + "../test_data/testGrpc_OperationSucceeded.yaml"); + setupOtelCollector("../test_data/testGrpc_OperationSucceeded.yaml"); EchoClient client = TestClientInitializer.createGrpcEchoClientOpentelemetry( @@ -118,8 +125,12 @@ public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { @Test public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { + generate_otelcol_config( + "4319", + "../test_data/testHttpJson_OperationCancelled_metrics.txt", + "../test_data/testHttpJson_OperationCancelled.yaml"); // initialize the otel-collector - setupOtelCollector("../opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml"); + setupOtelCollector("../test_data/testHttpJson_OperationCancelled.yaml"); EchoClient client = TestClientInitializer.createHttpJsonEchoClientOpentelemetry( @@ -151,8 +162,12 @@ public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { @Test public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { + generate_otelcol_config( + "4320", + "../test_data/testGrpc_OperationCancelled_metrics.txt", + "../test_data/testGrpc_OperationCancelled.yaml"); // initialize the otel-collector - setupOtelCollector("../opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml"); + setupOtelCollector("../test_data/testGrpc_OperationCancelled.yaml"); EchoClient client = TestClientInitializer.createGrpcEchoClientOpentelemetry( @@ -183,8 +198,13 @@ public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { @Test public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { + generate_otelcol_config( + "4321", + "../test_data/testHttpJson_OperationFailed_metrics.txt", + "../test_data/testHttpJson_OperationFailed.yaml"); + // initialize the otel-collector - setupOtelCollector("../opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml"); + setupOtelCollector("../test_data/testHttpJson_OperationFailed.yaml"); EchoClient client = TestClientInitializer.createHttpJsonEchoClientOpentelemetry( @@ -215,8 +235,12 @@ public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { @Test public void testGrpc_OperationFailed_recordsMetrics() throws Exception { + generate_otelcol_config( + "4322", + "../test_data/testGrpc_OperationFailed_metrics.txt", + "../test_data/testGrpc_OperationFailed.yaml"); // initialize the otel-collector - setupOtelCollector("../opentelemetry-helper/configs/testGrpc_OperationFailed.yaml"); + setupOtelCollector("../test_data/testGrpc_OperationFailed.yaml"); EchoClient client = TestClientInitializer.createGrpcEchoClientOpentelemetry( @@ -247,8 +271,11 @@ public void testGrpc_OperationFailed_recordsMetrics() throws Exception { @Test public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Exception { - setupOtelCollector( - "../opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml"); + generate_otelcol_config( + "4323", + "../test_data/testGrpc_attemptFailedRetriesExhausted_metrics.txt", + "../test_data/testGrpc_attemptFailedRetriesExhausted.yaml"); + setupOtelCollector("../test_data/testGrpc_attemptFailedRetriesExhausted.yaml"); RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(5).build(); @@ -306,8 +333,11 @@ public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Excep @Test public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws Exception { - setupOtelCollector( - "../opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml"); + generate_otelcol_config( + "4324", + "../test_data/testHttpjson_attemptFailedRetriesExhausted_metrics.txt", + "../test_data/testHttpjson_attemptFailedRetriesExhausted.yaml"); + setupOtelCollector("../test_data/testHttpjson_attemptFailedRetriesExhausted.yaml"); RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(3).build(); @@ -359,22 +389,26 @@ public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws E @Test public void testGrpc_attemptPermanentFailure_recordsMetrics() throws Exception { - setupOtelCollector("../opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml"); + generate_otelcol_config( + "4325", + "../test_data/testGrpc_attemptPermanentFailure_metrics.txt", + "../test_data/testGrpc_attemptPermanentFailure.yaml"); + setupOtelCollector("../test_data/testGrpc_attemptPermanentFailure.yaml"); - RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(6).build(); + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(4).build(); EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newBuilder(); grpcEchoSettingsBuilder .blockSettings() .setRetrySettings(retrySettings) - .setRetryableCodes(ImmutableSet.of(Code.NOT_FOUND)); + .setRetryableCodes(ImmutableSet.of(Code.ALREADY_EXISTS)); EchoSettings grpcEchoSettings = EchoSettings.create(grpcEchoSettingsBuilder.build()); grpcEchoSettings = grpcEchoSettings .toBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4326")) + .setTracerFactory(createOpenTelemetryTracerFactory("4325")) .setTransportChannelProvider( EchoSettings.defaultGrpcTransportProviderBuilder() .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) @@ -457,10 +491,10 @@ private void setupOtelCollector(String configPath) throws Exception { public static int verify_metrics(String... parameters) throws IOException, InterruptedException { - String SCRIPT_PATH = "../scripts/verify_metrics.sh"; + String scriptPath = "../scripts/verify_metrics.sh"; // Construct the command to execute the script with parameters - StringBuilder command = new StringBuilder(SCRIPT_PATH); + StringBuilder command = new StringBuilder(scriptPath); for (String parameter : parameters) { command.append(" ").append(parameter); } @@ -468,4 +502,16 @@ public static int verify_metrics(String... parameters) throws IOException, Inter Process process = Runtime.getRuntime().exec(command.toString()); return process.waitFor(); } + + public static void generate_otelcol_config( + String endpoint, String filepath, String configFilePath) + throws IOException, InterruptedException { + + String scriptPath = "../scripts/generate_otelcol_yaml.sh"; + + Process process = + Runtime.getRuntime() + .exec(scriptPath + " " + endpoint + " " + filepath + " " + configFilePath); + process.waitFor(); + } } diff --git a/showcase/opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml b/showcase/opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml deleted file mode 100644 index 0b08825f22..0000000000 --- a/showcase/opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4320" - -exporters: - file: - path: "testGrpc_OperationCancelled_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testGrpc_OperationFailed.yaml b/showcase/opentelemetry-helper/configs/testGrpc_OperationFailed.yaml deleted file mode 100644 index e1443054fb..0000000000 --- a/showcase/opentelemetry-helper/configs/testGrpc_OperationFailed.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4322" - -exporters: - file: - path: "testGrpc_OperationFailed_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml b/showcase/opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml deleted file mode 100644 index 426141f8a0..0000000000 --- a/showcase/opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4318" - -exporters: - file: - path: "testGrpc_OperationSucceeded_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml b/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml deleted file mode 100644 index c7be9642b8..0000000000 --- a/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4323" - -exporters: - file: - path: "testGrpc_attemptFailedRetriesExhausted_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml b/showcase/opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml deleted file mode 100644 index 6b385a4c05..0000000000 --- a/showcase/opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4326" - -exporters: - file: - path: "testGrpc_attemptPermanentFailure_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml deleted file mode 100644 index c7c2332ff5..0000000000 --- a/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4319" - -exporters: - file: - path: "testHttpJson_OperationCancelled_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml deleted file mode 100644 index 83cc77a5ef..0000000000 --- a/showcase/opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4321" - -exporters: - file: - path: "testHttpJson_OperationFailed_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml deleted file mode 100644 index 2138d0bb06..0000000000 --- a/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4317" - -exporters: - file: - path: "testHttpJson_OperationSucceeded_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml b/showcase/opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml deleted file mode 100644 index e8933efa97..0000000000 --- a/showcase/opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4324" - -exporters: - file: - path: "testHttpjson_attemptFailedRetriesExhausted_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml b/showcase/opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml deleted file mode 100644 index 4ee529dc65..0000000000 --- a/showcase/opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4325" - -exporters: - file: - path: "testHttpjson_attemptPermanentFailure_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/pom.xml b/showcase/pom.xml index 933e231f92..f11f4ed95b 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -78,10 +78,6 @@ io.opentelemetry opentelemetry-sdk - - io.opentelemetry - opentelemetry-api - io.opentelemetry opentelemetry-exporter-otlp diff --git a/showcase/scripts/generate_otelcol_yaml.sh b/showcase/scripts/generate_otelcol_yaml.sh new file mode 100755 index 0000000000..032258eec8 --- /dev/null +++ b/showcase/scripts/generate_otelcol_yaml.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# Check if both endpoint and file path are provided +if [ "$#" -ne 3 ]; then + echo "Usage: $0 " + exit 1 +fi + +localhost_port="$1" +file_path="$2" +output_file="$3" + +# Define YAML template +yaml_template="receivers: + otlp: + protocols: + grpc: + endpoint: \"localhost:$localhost_port\" + +exporters: + file: + path: \"$file_path\" + +service: + extensions: [] + pipelines: + metrics: + receivers: [otlp] + processors: [] + exporters: [file]" + +# Replace the port number after "localhost:" +yaml_content=$(echo "$yaml_template" | sed "s|localhost:[0-9]*|localhost:$localhost_port|") + +mkdir -p "../test_data" + +# Write the modified YAML content to a file +echo "$yaml_content" > "$output_file" + +echo "YAML file successfully generated." \ No newline at end of file From b3ba6b99ed3fe335223f1c9dcb05bc1b1389dc3a Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Thu, 15 Feb 2024 21:42:04 +0000 Subject: [PATCH 34/75] using in-memory reader --- .../showcase/v1beta1/it/ITOtelMetrics.java | 542 ++++++++---------- showcase/pom.xml | 5 + showcase/scripts/cleanup_otelcol.sh | 5 - showcase/scripts/generate_otelcol_yaml.sh | 40 -- showcase/scripts/start_otelcol.sh | 24 - showcase/scripts/verify_metrics.sh | 55 -- 6 files changed, 242 insertions(+), 429 deletions(-) delete mode 100755 showcase/scripts/cleanup_otelcol.sh delete mode 100755 showcase/scripts/generate_otelcol_yaml.sh delete mode 100755 showcase/scripts/start_otelcol.sh delete mode 100755 showcase/scripts/verify_metrics.sh diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index da620cf532..be6b998e08 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -21,7 +21,6 @@ import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.StatusCode.Code; -import com.google.api.gax.tracing.ApiTracerFactory; import com.google.api.gax.tracing.MetricsTracerFactory; import com.google.api.gax.tracing.OpentelemetryMetricsRecorder; import com.google.common.collect.ImmutableSet; @@ -35,143 +34,125 @@ import com.google.showcase.v1beta1.stub.EchoStubSettings; import io.grpc.ManagedChannelBuilder; import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.common.AttributeKey; import io.opentelemetry.api.metrics.Meter; -import io.opentelemetry.exporter.otlp.metrics.OtlpGrpcMetricExporter; import io.opentelemetry.sdk.OpenTelemetrySdk; import io.opentelemetry.sdk.metrics.SdkMeterProvider; -import io.opentelemetry.sdk.metrics.export.PeriodicMetricReader; +import io.opentelemetry.sdk.metrics.data.HistogramData; +import io.opentelemetry.sdk.metrics.data.HistogramPointData; +import io.opentelemetry.sdk.metrics.data.MetricData; import io.opentelemetry.sdk.resources.Resource; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import org.junit.AfterClass; +import io.opentelemetry.sdk.testing.exporter.InMemoryMetricExporter; +import io.opentelemetry.sdk.testing.exporter.InMemoryMetricReader; +import java.util.ArrayList; +import java.util.List; import org.junit.Test; public class ITOtelMetrics { - @AfterClass - public static void cleanup_otelcol() throws Exception { - Process process = Runtime.getRuntime().exec("../scripts/cleanup_otelcol.sh"); - process.waitFor(); - } - - // This test is currently giving an error about requestId. will ask Alice and resolve it. - // @Test - // public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { - // generate_otelcol_config("4317", - // "../test_data/testHttpJson_OperationSucceeded_metrics.txt","../test_data/testHttpJson_OperationSucceeded.yaml"); - // // initialize the otel-collector - // setupOtelCollector("../test_data/testHttpJson_OperationSucceeded.yaml"); - // - // EchoClient client = - // TestClientInitializer.createHttpJsonEchoClientOpentelemetry( - // createOpenTelemetryTracerFactory("4317")); - // - // EchoRequest requestWithNoError = - // EchoRequest.newBuilder() - // .setContent("successful httpJson request") - // .build(); - // - // client.echo(requestWithNoError); - // - // // wait for the metrics to get uploaded - // Thread.sleep(5000); - // - // String filePath = "../test_data/testHttpJson_OperationSucceeded_metrics.txt"; - // String attribute1 = - // - // "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"OK\"}}]"; - // - // String[] params = {filePath, attribute1}; - // int result = verify_metrics(params); - // Truth.assertThat(result).isEqualTo(0); - // - // client.close(); - // client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); - // } - @Test - public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { - - generate_otelcol_config( - "4318", - "../test_data/testGrpc_OperationSucceeded_metrics.txt", - "../test_data/testGrpc_OperationSucceeded.yaml"); - setupOtelCollector("../test_data/testGrpc_OperationSucceeded.yaml"); + public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { - EchoClient client = - TestClientInitializer.createGrpcEchoClientOpentelemetry( - createOpenTelemetryTracerFactory("4318")); + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); - EchoRequest requestWithNoError = - EchoRequest.newBuilder().setContent("test_grpc_operation_succeeded").build(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); - client.echo(requestWithNoError); + EchoClient client = + TestClientInitializer.createHttpJsonEchoClientOpentelemetry( + new MetricsTracerFactory(otelMetricsRecorder)); + + client.echo(EchoRequest.newBuilder().setContent("test_http_operation_succeeded").build()); + + Thread.sleep(1000); + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("google.showcase.v1beta1.Echo/Echo"); + Truth.assertThat(status).isEqualTo("CANCELLED"); + } + } + } + } - // wait for the metrics to get uploaded - Thread.sleep(5000); + @Test + public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { - String filePath = "../test_data/testGrpc_OperationSucceeded_metrics.txt"; - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"OK\"}}]"; + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + InMemoryMetricExporter exporter = InMemoryMetricExporter.create(); - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); - client.close(); - client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + EchoClient client = + TestClientInitializer.createGrpcEchoClientOpentelemetry( + new MetricsTracerFactory(otelMetricsRecorder)); + + client.echo(EchoRequest.newBuilder().setContent("test_grpc_operation_succeeded").build()); + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("Echo.Echo"); + Truth.assertThat(status).isEqualTo("OK"); + } + } + } } @Test public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { - generate_otelcol_config( - "4319", - "../test_data/testHttpJson_OperationCancelled_metrics.txt", - "../test_data/testHttpJson_OperationCancelled.yaml"); - // initialize the otel-collector - setupOtelCollector("../test_data/testHttpJson_OperationCancelled.yaml"); + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); EchoClient client = TestClientInitializer.createHttpJsonEchoClientOpentelemetry( - createOpenTelemetryTracerFactory("4319")); - - EchoRequest requestWithNoError = - EchoRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) - .build(); - - // explicitly cancel the request - client.echoCallable().futureCall(requestWithNoError).cancel(true); - - // wait for the metrics to get uploaded - Thread.sleep(5000); - - String filePath = "../test_data/testHttpJson_OperationCancelled_metrics.txt"; - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"CANCELLED\"}}]"; - - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - client.close(); - client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + new MetricsTracerFactory(otelMetricsRecorder)); + + client + .echoCallable() + .futureCall(EchoRequest.newBuilder().setContent("test_http_operation_cancelled").build()) + .cancel(true); + + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("google.showcase.v1beta1.Echo/Echo"); + Truth.assertThat(status).isEqualTo("CANCELLED"); + } + } + } } @Test public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { - generate_otelcol_config( - "4320", - "../test_data/testGrpc_OperationCancelled_metrics.txt", - "../test_data/testGrpc_OperationCancelled.yaml"); - // initialize the otel-collector - setupOtelCollector("../test_data/testGrpc_OperationCancelled.yaml"); - + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); EchoClient client = TestClientInitializer.createGrpcEchoClientOpentelemetry( - createOpenTelemetryTracerFactory("4320")); + new MetricsTracerFactory(otelMetricsRecorder)); EchoRequest requestWithNoError = EchoRequest.newBuilder() @@ -179,105 +160,97 @@ public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { .build(); client.echoCallable().futureCall(requestWithNoError).cancel(true); - - // wait for the metrics to get uploaded - Thread.sleep(5000); - - String filePath = "../test_data/testGrpc_OperationCancelled_metrics.txt"; - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"CANCELLED\"}}]"; - - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - client.close(); - client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("Echo.Echo"); + Truth.assertThat(status).isEqualTo("CANCELLED"); + } + } + } } @Test public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { - generate_otelcol_config( - "4321", - "../test_data/testHttpJson_OperationFailed_metrics.txt", - "../test_data/testHttpJson_OperationFailed.yaml"); - - // initialize the otel-collector - setupOtelCollector("../test_data/testHttpJson_OperationFailed.yaml"); - + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); EchoClient client = TestClientInitializer.createHttpJsonEchoClientOpentelemetry( - createOpenTelemetryTracerFactory("4321")); + new MetricsTracerFactory(otelMetricsRecorder)); - EchoRequest requestWithError = + EchoRequest requestWithNoError = EchoRequest.newBuilder() .setError(Status.newBuilder().setCode(Code.UNKNOWN.ordinal()).build()) .build(); - client.echoCallable().futureCall(requestWithError).isDone(); - - // wait for the metrics to get uploaded - Thread.sleep(5000); - - String filePath = "../test_data/testHttpJson_OperationFailed_metrics.txt"; - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"UNKNOWN\"}}]"; - - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - client.close(); - client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + client.echoCallable().futureCall(requestWithNoError); + Thread.sleep(1000); + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("google.showcase.v1beta1.Echo/Echo"); + Truth.assertThat(status).isEqualTo("UNKNOWN"); + } + } + } } @Test public void testGrpc_OperationFailed_recordsMetrics() throws Exception { - generate_otelcol_config( - "4322", - "../test_data/testGrpc_OperationFailed_metrics.txt", - "../test_data/testGrpc_OperationFailed.yaml"); - // initialize the otel-collector - setupOtelCollector("../test_data/testGrpc_OperationFailed.yaml"); - + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); EchoClient client = TestClientInitializer.createGrpcEchoClientOpentelemetry( - createOpenTelemetryTracerFactory("4322")); + new MetricsTracerFactory(otelMetricsRecorder)); - EchoRequest requestWithError = + EchoRequest requestWithNoError = EchoRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.UNAUTHENTICATED.ordinal()).build()) + .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) .build(); - client.echoCallable().futureCall(requestWithError).isDone(); - - // wait for the metrics to get uploaded - Thread.sleep(5000); - - String filePath = "../test_data/testGrpc_OperationFailed_metrics.txt"; - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"UNAUTHENTICATED\"}}]"; - - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - client.close(); - client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + client.echoCallable().futureCall(requestWithNoError); + Thread.sleep(1000); + + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("Echo.Echo"); + Truth.assertThat(status).isEqualTo("INVALID_ARGUMENT"); + } + } + } } @Test public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Exception { - generate_otelcol_config( - "4323", - "../test_data/testGrpc_attemptFailedRetriesExhausted_metrics.txt", - "../test_data/testGrpc_attemptFailedRetriesExhausted.yaml"); - setupOtelCollector("../test_data/testGrpc_attemptFailedRetriesExhausted.yaml"); + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); - RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(5).build(); + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(7).build(); EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newBuilder(); grpcEchoSettingsBuilder @@ -290,7 +263,7 @@ public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Excep grpcEchoSettings .toBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4323")) + .setTracerFactory(new MetricsTracerFactory(otelMetricsRecorder)) .setTransportChannelProvider( EchoSettings.defaultGrpcTransportProviderBuilder() .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) @@ -307,52 +280,54 @@ public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Excep grpcClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); - Thread.sleep(5000); - - String filePath = "../test_data/testGrpc_attemptFailedRetriesExhausted_metrics.txt"; - - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Block\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"INVALID_ARGUMENT\"}}]"; - - // additionally verify that 5 attempts were made - // when we make 'x' attempts, attempt_count.asInt = 'x' and there are 'x' datapoints in - // attempt_latency histogram -> (count : x} - // String attribute2 = "\"asInt\":\"5\""; - String attribute2 = "\"asInt\":\"5\""; - String attribute3 = "\"count\":\"5\""; - - String[] params = {filePath, attribute1, attribute2, attribute3}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - grpcClientWithRetrySetting.close(); - grpcClientWithRetrySetting.awaitTermination( - TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + Thread.sleep(1000); + + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + + System.out.println(pointData); + + // add a comment why I am doing this + double max = pointData.getMax(); + double min = pointData.getMin(); + if (max != min) { + Truth.assertThat(pointData.getCount()).isEqualTo(7); + } + Truth.assertThat(method).isEqualTo("Echo.Block"); + Truth.assertThat(status).isEqualTo("INVALID_ARGUMENT"); + } + } + } } @Test public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws Exception { - generate_otelcol_config( - "4324", - "../test_data/testHttpjson_attemptFailedRetriesExhausted_metrics.txt", - "../test_data/testHttpjson_attemptFailedRetriesExhausted.yaml"); - setupOtelCollector("../test_data/testHttpjson_attemptFailedRetriesExhausted.yaml"); + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(5).build(); - RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(3).build(); + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); EchoStubSettings.Builder httpJsonEchoSettingsBuilder = EchoStubSettings.newHttpJsonBuilder(); httpJsonEchoSettingsBuilder .blockSettings() .setRetrySettings(retrySettings) - .setRetryableCodes(ImmutableSet.of(Code.UNKNOWN)); + .setRetryableCodes(ImmutableSet.of(Code.INVALID_ARGUMENT)); EchoSettings httpJsonEchoSettings = EchoSettings.create(httpJsonEchoSettingsBuilder.build()); httpJsonEchoSettings = httpJsonEchoSettings .toBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4324")) + .setTracerFactory(new MetricsTracerFactory(otelMetricsRecorder)) .setTransportChannelProvider( EchoSettings.defaultHttpJsonTransportProviderBuilder() .setHttpTransport( @@ -365,50 +340,53 @@ public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws E BlockRequest blockRequest = BlockRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.UNKNOWN.ordinal()).build()) + .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) .build(); - httpJsonClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); - - Thread.sleep(5000); - - String filePath = "../test_data/testHttpjson_attemptFailedRetriesExhausted_metrics.txt"; - - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Block\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"UNKNOWN\"}}]"; - - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - httpJsonClientWithRetrySetting.close(); - httpJsonClientWithRetrySetting.awaitTermination( - TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + httpJsonClientWithRetrySetting.blockCallable().futureCall(blockRequest); + + Thread.sleep(1000); + inMemoryMetricReader.flush(); + + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String language = pointData.getAttributes().get(AttributeKey.stringKey("language")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("google.showcase.v1beta1.Echo/Block"); + Truth.assertThat(language).isEqualTo("Java"); + Truth.assertThat(status).isEqualTo("UNKNOWN"); + Truth.assertThat(pointData.getCount()).isEqualTo(5); + } + } + } } @Test public void testGrpc_attemptPermanentFailure_recordsMetrics() throws Exception { - generate_otelcol_config( - "4325", - "../test_data/testGrpc_attemptPermanentFailure_metrics.txt", - "../test_data/testGrpc_attemptPermanentFailure.yaml"); - setupOtelCollector("../test_data/testGrpc_attemptPermanentFailure.yaml"); + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); - RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(4).build(); + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(3).build(); EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newBuilder(); grpcEchoSettingsBuilder .blockSettings() .setRetrySettings(retrySettings) - .setRetryableCodes(ImmutableSet.of(Code.ALREADY_EXISTS)); + .setRetryableCodes(ImmutableSet.of(Code.PERMISSION_DENIED)); EchoSettings grpcEchoSettings = EchoSettings.create(grpcEchoSettingsBuilder.build()); grpcEchoSettings = grpcEchoSettings .toBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4325")) + .setTracerFactory(new MetricsTracerFactory(otelMetricsRecorder)) .setTransportChannelProvider( EchoSettings.defaultGrpcTransportProviderBuilder() .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) @@ -425,44 +403,36 @@ public void testGrpc_attemptPermanentFailure_recordsMetrics() throws Exception { grpcClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); - Thread.sleep(5000); - - String filePath = "../test_data/testGrpc_attemptPermanentFailure_metrics.txt"; - - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Block\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"INVALID_ARGUMENT\"}}]"; - // additionally verify that only 1 attempt was made - String attribute2 = "\"asInt\":\"1\""; - String attribute3 = "\"count\":\"1\""; - - String[] params = {filePath, attribute1, attribute2, attribute3}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - grpcClientWithRetrySetting.close(); - grpcClientWithRetrySetting.awaitTermination( - TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + Thread.sleep(1000); + inMemoryMetricReader.flush(); + + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String language = pointData.getAttributes().get(AttributeKey.stringKey("language")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("Echo.Block"); + Truth.assertThat(language).isEqualTo("Java"); + Truth.assertThat(status).isEqualTo("INVALID_ARGUMENT"); + Truth.assertThat(pointData.getCount()).isEqualTo(1); + } + } + } } - // Helper function for creating Opentelemetry object with a different port for exporter for every - // test - // this ensures that logs for each test are collected separately - private static ApiTracerFactory createOpenTelemetryTracerFactory(String port) { - // OTLP Metric Exporter setup - String endpoint = "http://localhost:" + port; - OtlpGrpcMetricExporter metricExporter = - OtlpGrpcMetricExporter.builder().setEndpoint(endpoint).build(); - - // Periodic Metric Reader configuration - PeriodicMetricReader metricReader = - PeriodicMetricReader.builder(metricExporter) - .setInterval(java.time.Duration.ofSeconds(3)) - .build(); + private OpentelemetryMetricsRecorder createOtelMetricsRecorder( + InMemoryMetricReader inMemoryMetricReader) { - // OpenTelemetry SDK Configuration - Resource resource = Resource.builder().build(); + Resource resource = Resource.getDefault(); SdkMeterProvider sdkMeterProvider = - SdkMeterProvider.builder().registerMetricReader(metricReader).setResource(resource).build(); + SdkMeterProvider.builder() + .setResource(resource) + .registerMetricReader(inMemoryMetricReader) + .build(); OpenTelemetry openTelemetry = OpenTelemetrySdk.builder().setMeterProvider(sdkMeterProvider).build(); @@ -473,45 +443,7 @@ private static ApiTracerFactory createOpenTelemetryTracerFactory(String port) { .meterBuilder("gax") .setInstrumentationVersion(GaxProperties.getGaxVersion()) .build(); - // OpenTelemetry Metrics Recorder - OpentelemetryMetricsRecorder otelMetricsRecorder = new OpentelemetryMetricsRecorder(meter); - - // Finally, create the Tracer Factory - return new MetricsTracerFactory(otelMetricsRecorder); - } - - private void setupOtelCollector(String configPath) throws Exception { - String scriptPath = "../scripts/start_otelcol.sh"; - String test_dataPath = "../test_data"; - Process process = - Runtime.getRuntime().exec(scriptPath + " " + test_dataPath + " " + configPath); - process.waitFor(); - } - - public static int verify_metrics(String... parameters) throws IOException, InterruptedException { - - String scriptPath = "../scripts/verify_metrics.sh"; - - // Construct the command to execute the script with parameters - StringBuilder command = new StringBuilder(scriptPath); - for (String parameter : parameters) { - command.append(" ").append(parameter); - } - // Execute the command - Process process = Runtime.getRuntime().exec(command.toString()); - return process.waitFor(); - } - - public static void generate_otelcol_config( - String endpoint, String filepath, String configFilePath) - throws IOException, InterruptedException { - - String scriptPath = "../scripts/generate_otelcol_yaml.sh"; - - Process process = - Runtime.getRuntime() - .exec(scriptPath + " " + endpoint + " " + filepath + " " + configFilePath); - process.waitFor(); + return new OpentelemetryMetricsRecorder(meter); } } diff --git a/showcase/pom.xml b/showcase/pom.xml index f11f4ed95b..17514fcae2 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -82,6 +82,11 @@ io.opentelemetry opentelemetry-exporter-otlp + + io.opentelemetry + opentelemetry-sdk-metrics-testing + 1.13.0-alpha + diff --git a/showcase/scripts/cleanup_otelcol.sh b/showcase/scripts/cleanup_otelcol.sh deleted file mode 100755 index 58ccda50f2..0000000000 --- a/showcase/scripts/cleanup_otelcol.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -rm -rf "../test_data" - -exit 0 \ No newline at end of file diff --git a/showcase/scripts/generate_otelcol_yaml.sh b/showcase/scripts/generate_otelcol_yaml.sh deleted file mode 100755 index 032258eec8..0000000000 --- a/showcase/scripts/generate_otelcol_yaml.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -# Check if both endpoint and file path are provided -if [ "$#" -ne 3 ]; then - echo "Usage: $0 " - exit 1 -fi - -localhost_port="$1" -file_path="$2" -output_file="$3" - -# Define YAML template -yaml_template="receivers: - otlp: - protocols: - grpc: - endpoint: \"localhost:$localhost_port\" - -exporters: - file: - path: \"$file_path\" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file]" - -# Replace the port number after "localhost:" -yaml_content=$(echo "$yaml_template" | sed "s|localhost:[0-9]*|localhost:$localhost_port|") - -mkdir -p "../test_data" - -# Write the modified YAML content to a file -echo "$yaml_content" > "$output_file" - -echo "YAML file successfully generated." \ No newline at end of file diff --git a/showcase/scripts/start_otelcol.sh b/showcase/scripts/start_otelcol.sh deleted file mode 100755 index 90bb29bb81..0000000000 --- a/showcase/scripts/start_otelcol.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -killall otelcol - -# Define the directory where you want to install everything -install_dir="$1" - -# Create the install directory if it doesn't exist -mkdir -p "$install_dir" - -# Change directory to the install directory -cd "$install_dir" - -## in future iterations/improvement, make this version dynamic -curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.93.0/otelcol_0.93.0_linux_amd64.tar.gz -tar -xvf otelcol_0.93.0_linux_amd64.tar.gz - -killall otelcol - -## Start OpenTelemetry Collector with the updated config file -echo "Starting OpenTelemetry Collector with the updated config file: $2" -nohup ./otelcol --config "$2" > /dev/null 2>&1 & - -exit 0 diff --git a/showcase/scripts/verify_metrics.sh b/showcase/scripts/verify_metrics.sh deleted file mode 100755 index 320d5938bf..0000000000 --- a/showcase/scripts/verify_metrics.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash - -file_exists_and_non_empty() { - if [ -s "$1" ]; then - return 0 # File exists and is non-empty - else - return 1 # File does not exist or is empty - fi -} - -# Function to check if the JSON file contains the given string -metrics_contains_string() { - local file="$1" - local str="$2" - if grep -qF "$str" "$file"; then - return 0 # String found in the JSON file - else - return 1 # String not found in the JSON file - fi -} - -if [ "$#" -lt 2 ]; then - echo "Usage: $0 [ ...]" - exit 1 -fi - -# Check for valid json structure -if jq '.' "$1" >/dev/null 2>&1; then - echo "Valid JSON" -else - echo "Invalid JSON" -fi - -metrics_file="$1" -shift - -if ! file_exists_and_non_empty "$metrics_file"; then - echo "Error: File '$metrics_file' does not exist or is empty." - exit 1 -fi - -all_found=true -for search_string in "$@"; do - if ! metrics_contains_string "$metrics_file" "$search_string"; then - echo "The metrics file does not contain the attribute '$search_string'." - all_found=false - fi -done - -if [ "$all_found" = false ]; then - echo "The metrics file does not contain all of the given attributes." - exit 1 -else - echo "All search attributes found in the metrics file." -fi \ No newline at end of file From 494d53e8837bf26d87d59275ddf22b7d5bf230da Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Wed, 31 Jan 2024 17:19:38 -0500 Subject: [PATCH 35/75] feat: autopopulate fields in the request (#2353) * feat: autopopulate fields in the request * revert showcase golden changes * add AbstractTransportServiceStubClassComposerTest * add REST implementation * add GrpcDirectCallableTest * remove unnecessary null check * add field info proto registry and more unit test cases * add HttpJsonDirectCallableTest * refactor AbstractTransportServiceSTubClassComposer * add more unit tests for Field * feat: refactor request mutator expression * fix goldens * add showcase test for autopopulation * fix lint * change assertion in showcase test * refactor for sonarcloud * sonarcloud fixes * sonarcloud * sonarcloud fix * fix sonarcloud * slight refactoring * revert changes to directCallable and replace with retryable Callable * overload retrying Callables method * change license header format * fix license header * fix showcase lint * add comment * add showcase comment * add CallableTest and httpjson Retrying test * fix lint * add RetryingCallable test and some refactoring * refactor GrpcCallableFactory * remove extraneous from HttpJsonDirectCallableTest * remove FakeHttpJsonChannel * revert changes to tests for extra param * refactoring * Update gapic-generator-java/src/test/java/com/google/api/generator/gapic/model/FieldTest.java Co-authored-by: Blake Li * Update gax-java/gax/src/test/java/com/google/api/gax/rpc/RetryingCallableTest.java Co-authored-by: Blake Li --------- Co-authored-by: Blake Li --- .../google/api/generator/ProtoRegistry.java | 2 + ...ractTransportServiceStubClassComposer.java | 218 +++++++- .../api/generator/gapic/model/Field.java | 11 + .../generator/gapic/protoparser/Parser.java | 11 +- ...TransportServiceStubClassComposerTest.java | 529 ++++++++++++++++++ .../DefaultValueComposerTest.java | 5 + .../composer/grpc/goldens/EchoClient.golden | 35 ++ .../grpc/goldens/EchoClientTest.golden | 50 ++ .../composer/grpc/goldens/GrpcEchoStub.golden | 13 + .../samples/echoclient/AsyncChat.golden | 5 + .../samples/echoclient/AsyncChatAgain.golden | 5 + .../samples/echoclient/AsyncCollect.golden | 5 + .../echoclient/AsyncCollideName.golden | 5 + .../samples/echoclient/AsyncEcho.golden | 5 + .../samples/echoclient/SyncCollideName.golden | 5 + .../samples/echoclient/SyncEcho.golden | 5 + .../rest/goldens/HttpJsonEchoStub.golden | 13 + ...lientCallableMethodSampleComposerTest.java | 15 + ...ServiceClientHeaderSampleComposerTest.java | 5 + ...ServiceClientMethodSampleComposerTest.java | 10 + .../api/generator/gapic/model/FieldTest.java | 76 +++ .../gapic/protoparser/ParserTest.java | 31 +- .../test/protoloader/TestProtoLoader.java | 9 +- .../src/test/proto/echo.proto | 28 + .../src/test/resources/echo_v1beta1.yaml | 7 +- .../google/api/gax/grpc/GrpcCallSettings.java | 15 + .../api/gax/grpc/GrpcCallableFactory.java | 8 +- .../api/gax/grpc/GrpcDirectCallable.java | 2 + .../gax/httpjson/HttpJsonCallSettings.java | 15 + .../gax/httpjson/HttpJsonCallableFactory.java | 29 +- .../google/api/gax/httpjson/RetryingTest.java | 154 +++-- .../com/google/api/gax/rpc/Callables.java | 45 +- .../google/api/gax/rpc/RequestMutator.java | 52 ++ .../google/api/gax/rpc/RetryingCallable.java | 17 +- .../com/google/api/gax/rpc/CallableTest.java | 38 +- .../api/gax/rpc/RetryingCallableTest.java | 74 +++ .../showcase/v1beta1/stub/GrpcEchoStub.java | 10 + .../v1beta1/stub/HttpJsonEchoStub.java | 10 + .../v1beta1/it/ITAutoPopulatedFields.java | 373 ++++++++++++ .../it/util/TestClientInitializer.java | 51 ++ 40 files changed, 1928 insertions(+), 68 deletions(-) create mode 100644 gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposerTest.java create mode 100644 gapic-generator-java/src/test/java/com/google/api/generator/gapic/model/FieldTest.java create mode 100644 gax-java/gax/src/main/java/com/google/api/gax/rpc/RequestMutator.java create mode 100644 gax-java/gax/src/test/java/com/google/api/gax/rpc/RetryingCallableTest.java create mode 100644 showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITAutoPopulatedFields.java diff --git a/gapic-generator-java/src/main/java/com/google/api/generator/ProtoRegistry.java b/gapic-generator-java/src/main/java/com/google/api/generator/ProtoRegistry.java index 6f08ccfa3b..ae9c8cc76e 100644 --- a/gapic-generator-java/src/main/java/com/google/api/generator/ProtoRegistry.java +++ b/gapic-generator-java/src/main/java/com/google/api/generator/ProtoRegistry.java @@ -17,6 +17,7 @@ import com.google.api.AnnotationsProto; import com.google.api.ClientProto; import com.google.api.FieldBehaviorProto; +import com.google.api.FieldInfoProto; import com.google.api.ResourceProto; import com.google.api.RoutingProto; import com.google.cloud.ExtendedOperationsProto; @@ -31,6 +32,7 @@ public static void registerAllExtensions(ExtensionRegistry extensionRegistry) { ClientProto.registerAllExtensions(extensionRegistry); ResourceProto.registerAllExtensions(extensionRegistry); FieldBehaviorProto.registerAllExtensions(extensionRegistry); + FieldInfoProto.registerAllExtensions(extensionRegistry); ExtendedOperationsProto.registerAllExtensions(extensionRegistry); RoutingProto.registerAllExtensions(extensionRegistry); } diff --git a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposer.java b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposer.java index 191e834a40..2647647443 100644 --- a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposer.java +++ b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposer.java @@ -42,6 +42,7 @@ import com.google.api.generator.engine.ast.MethodDefinition; import com.google.api.generator.engine.ast.MethodInvocationExpr; import com.google.api.generator.engine.ast.NewObjectExpr; +import com.google.api.generator.engine.ast.Reference; import com.google.api.generator.engine.ast.ReferenceConstructorExpr; import com.google.api.generator.engine.ast.RelationalOperationExpr; import com.google.api.generator.engine.ast.ScopeNode; @@ -58,6 +59,7 @@ import com.google.api.generator.gapic.composer.comment.StubCommentComposer; import com.google.api.generator.gapic.composer.store.TypeStore; import com.google.api.generator.gapic.composer.utils.PackageChecker; +import com.google.api.generator.gapic.model.Field; import com.google.api.generator.gapic.model.GapicClass; import com.google.api.generator.gapic.model.GapicClass.Kind; import com.google.api.generator.gapic.model.GapicContext; @@ -70,8 +72,10 @@ import com.google.api.generator.gapic.model.Transport; import com.google.api.generator.gapic.utils.JavaStyle; import com.google.api.pathtemplate.PathTemplate; +import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Preconditions; import com.google.common.base.Splitter; +import com.google.common.base.Strings; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -84,9 +88,11 @@ import java.util.List; import java.util.Map; import java.util.Optional; +import java.util.UUID; import java.util.concurrent.TimeUnit; import java.util.function.BiFunction; import java.util.function.Function; +import java.util.function.Predicate; import java.util.stream.Collectors; import javax.annotation.Generated; import javax.annotation.Nullable; @@ -136,6 +142,7 @@ private static TypeStore createStaticTypes() { OperationCallable.class, OperationSnapshot.class, RequestParamsExtractor.class, + UUID.class, ServerStreamingCallable.class, TimeUnit.class, TypeRegistry.class, @@ -277,7 +284,8 @@ protected Expr createTransportSettingsInitExpr( Method method, VariableExpr transportSettingsVarExpr, VariableExpr methodDescriptorVarExpr, - List classStatements) { + List classStatements, + ImmutableMap messageTypes) { MethodInvocationExpr callSettingsBuilderExpr = MethodInvocationExpr.builder() .setStaticReferenceType(getTransportContext().transportCallSettingsType()) @@ -318,6 +326,15 @@ protected Expr createTransportSettingsInitExpr( .build(); } + if (method.hasAutoPopulatedFields() && shouldGenerateRequestMutator(method, messageTypes)) { + callSettingsBuilderExpr = + MethodInvocationExpr.builder() + .setExprReferenceExpr(callSettingsBuilderExpr) + .setMethodName("setRequestMutator") + .setArguments(createRequestMutatorClassInstance(method, messageTypes)) + .build(); + } + callSettingsBuilderExpr = MethodInvocationExpr.builder() .setExprReferenceExpr(callSettingsBuilderExpr) @@ -760,7 +777,8 @@ protected List createConstructorMethods( javaStyleMethodNameToTransportSettingsVarExprs.get( JavaStyle.toLowerCamelCase(m.name())), protoMethodNameToDescriptorVarExprs.get(m.name()), - classStatements)) + classStatements, + context.messages())) .collect(Collectors.toList())); secondCtorStatements.addAll( secondCtorExprs.stream().map(ExprStatement::withExpr).collect(Collectors.toList())); @@ -1233,12 +1251,197 @@ protected TypeNode getTransportOperationsStubType(Service service) { return transportOpeationsStubType; } + protected static LambdaExpr createRequestMutatorClassInstance( + Method method, ImmutableMap messageTypes) { + List bodyStatements = new ArrayList<>(); + VariableExpr requestVarExpr = createRequestVarExpr(method); + + Reference requestBuilderRef = + VaporReference.builder() + .setEnclosingClassNames(method.inputType().reference().name()) + .setName("Builder") + .setPakkage(method.inputType().reference().pakkage()) + .build(); + + TypeNode requestBuilderType = TypeNode.withReference(requestBuilderRef); + + VariableExpr requestBuilderVarExpr = + VariableExpr.builder() + .setVariable( + Variable.builder().setName("requestBuilder").setType(requestBuilderType).build()) + .setIsDecl(true) + .build(); + + MethodInvocationExpr setRequestBuilderInvocationExpr = + MethodInvocationExpr.builder() + .setExprReferenceExpr(requestVarExpr) + .setMethodName("toBuilder") + .setReturnType(requestBuilderType) + .build(); + + Expr requestBuilderExpr = + AssignmentExpr.builder() + .setVariableExpr(requestBuilderVarExpr) + .setValueExpr(setRequestBuilderInvocationExpr) + .build(); + + bodyStatements.add(ExprStatement.withExpr(requestBuilderExpr)); + + VariableExpr returnBuilderVarExpr = + VariableExpr.builder() + .setVariable( + Variable.builder().setName("requestBuilder").setType(requestBuilderType).build()) + .setIsDecl(false) + .build(); + + MethodInvocationExpr.Builder returnExpr = + MethodInvocationExpr.builder() + .setExprReferenceExpr(returnBuilderVarExpr) + .setMethodName("build"); + + createRequestMutatorBody(method, messageTypes, bodyStatements, returnBuilderVarExpr); + + return LambdaExpr.builder() + .setArguments(requestVarExpr.toBuilder().setIsDecl(true).build()) + .setBody(bodyStatements) + .setReturnExpr(returnExpr.build()) + .build(); + } + + @VisibleForTesting + static List createRequestMutatorBody( + Method method, + ImmutableMap messageTypes, + List bodyStatements, + VariableExpr returnBuilderVarExpr) { + + Message methodRequestMessage = messageTypes.get(method.inputType().reference().fullName()); + method.autoPopulatedFields().stream() + // Map each field name to its corresponding Field object, if present + .map( + fieldName -> + methodRequestMessage.fields().stream() + .filter(field -> field.name().equals(fieldName)) + .findFirst()) + .filter(Optional::isPresent) // Keep only the existing Fields + .map(Optional::get) // Extract the Field from the Optional + .filter(Field::canBeAutoPopulated) // Filter fields that can be autopopulated + .forEach( + matchedField -> { + // Create statements for each autopopulated Field + bodyStatements.add( + createAutoPopulatedRequestStatement( + method, matchedField.name(), returnBuilderVarExpr)); + }); + return bodyStatements; + } + + @VisibleForTesting + static Statement createAutoPopulatedRequestStatement( + Method method, String fieldName, VariableExpr returnBuilderVarExpr) { + + VariableExpr requestVarExpr = createRequestVarExpr(method); + + // Expected expression: request.getRequestId() + MethodInvocationExpr getAutoPopulatedFieldInvocationExpr = + MethodInvocationExpr.builder() + .setExprReferenceExpr(requestVarExpr) + .setMethodName(String.format("get%s", JavaStyle.toUpperCamelCase(fieldName))) + .setReturnType(TypeNode.STRING) + .build(); + + VariableExpr stringsVar = + VariableExpr.withVariable( + Variable.builder() + .setType(TypeNode.withReference(ConcreteReference.withClazz(Strings.class))) + .setName("Strings") + .build()); + + // Expected expression: Strings.isNullOrEmpty(request.getRequestId()) + MethodInvocationExpr isNullOrEmptyFieldInvocationExpr = + MethodInvocationExpr.builder() + .setExprReferenceExpr(stringsVar) + .setMethodName("isNullOrEmpty") + .setReturnType(TypeNode.BOOLEAN) + .setArguments(getAutoPopulatedFieldInvocationExpr) + .build(); + + // Note: Currently, autopopulation is only for UUID. + VariableExpr uuidVarExpr = + VariableExpr.withVariable( + Variable.builder() + .setType( + TypeNode.withReference( + ConcreteReference.builder().setClazz(UUID.class).build())) + .setName("UUID") + .build()); + + // Expected expression: UUID.randomUUID() + MethodInvocationExpr autoPopulatedFieldsArgsHelper = + MethodInvocationExpr.builder() + .setExprReferenceExpr(uuidVarExpr) + .setMethodName("randomUUID") + .setReturnType( + TypeNode.withReference(ConcreteReference.builder().setClazz(UUID.class).build())) + .build(); + + // Expected expression: UUID.randomUUID().toString() + MethodInvocationExpr autoPopulatedFieldsArgsToString = + MethodInvocationExpr.builder() + .setExprReferenceExpr(autoPopulatedFieldsArgsHelper) + .setMethodName("toString") + .setReturnType(TypeNode.STRING) + .build(); + + // Expected expression: requestBuilder().setField(UUID.randomUUID().toString()) + MethodInvocationExpr setAutoPopulatedFieldInvocationExpr = + MethodInvocationExpr.builder() + .setArguments(autoPopulatedFieldsArgsToString) + .setExprReferenceExpr(returnBuilderVarExpr) + .setMethodName(String.format("set%s", JavaStyle.toUpperCamelCase(fieldName))) + .setReturnType(method.inputType()) + .build(); + + return IfStatement.builder() + .setConditionExpr(isNullOrEmptyFieldInvocationExpr) + .setBody(Arrays.asList(ExprStatement.withExpr(setAutoPopulatedFieldInvocationExpr))) + .build(); + } + + /** + * The Request Mutator should only be generated if the field exists in the Message and is properly + * configured in the Message(see {@link Field#canBeAutoPopulated()}) + */ + @VisibleForTesting + static Boolean shouldGenerateRequestMutator( + Method method, ImmutableMap messageTypes) { + if (method.inputType().reference() == null + || method.inputType().reference().fullName() == null) { + return false; + } + String methodRequestName = method.inputType().reference().fullName(); + + Message methodRequestMessage = messageTypes.get(methodRequestName); + if (methodRequestMessage == null || methodRequestMessage.fields() == null) { + return false; + } + return method.autoPopulatedFields().stream().anyMatch(shouldAutoPopulate(methodRequestMessage)); + } + + /** + * The field has to exist in the Message and properly configured in the Message(see {@link + * Field#canBeAutoPopulated()}) + */ + private static Predicate shouldAutoPopulate(Message methodRequestMessage) { + return fieldName -> + methodRequestMessage.fields().stream() + .anyMatch(field -> field.name().equals(fieldName) && field.canBeAutoPopulated()); + } + protected LambdaExpr createRequestParamsExtractorClassInstance( Method method, List classStatements) { List bodyStatements = new ArrayList<>(); - VariableExpr requestVarExpr = - VariableExpr.withVariable( - Variable.builder().setType(method.inputType()).setName("request").build()); + VariableExpr requestVarExpr = createRequestVarExpr(method); TypeNode returnType = TypeNode.withReference( ConcreteReference.builder() @@ -1499,4 +1702,9 @@ private MethodInvocationExpr createRequestFieldGetterExpr( } return requestFieldGetterExprBuilder.build(); } + + private static VariableExpr createRequestVarExpr(Method method) { + return VariableExpr.withVariable( + Variable.builder().setType(method.inputType()).setName("request").build()); + } } diff --git a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/model/Field.java b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/model/Field.java index 997ea54e5a..39213909de 100644 --- a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/model/Field.java +++ b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/model/Field.java @@ -72,6 +72,17 @@ public boolean hasResourceReference() { return type().equals(TypeNode.STRING) && resourceReference() != null; } + // Check that the field format is of UUID, it is not annotated as required, and is of type String. + // Unless + // those three conditions are met, do not autopopulate the field. + // In the future, if additional formats are supported for autopopulation, this will need to be + // refactored to support those formats. + public boolean canBeAutoPopulated() { + return Format.UUID4.equals(fieldInfoFormat()) + && !isRequired() + && TypeNode.STRING.equals(type()); + } + @Override public boolean equals(Object o) { if (!(o instanceof Field)) { diff --git a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java index 9f1b395940..e960ad3f6d 100644 --- a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java +++ b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java @@ -1025,10 +1025,13 @@ private static Field parseField( if (fieldOptions.hasExtension(FieldInfoProto.fieldInfo)) { fieldInfoFormat = fieldOptions.getExtension(FieldInfoProto.fieldInfo).getFormat(); } - if (fieldOptions.getExtensionCount(FieldBehaviorProto.fieldBehavior) > 0) { - if (fieldOptions - .getExtension(FieldBehaviorProto.fieldBehavior) - .contains(FieldBehavior.REQUIRED)) ; + + // Cannot directly check fieldOptions.hasExtension(FieldBehaviorProto.fieldBehavior) because the + // default is null + if (fieldOptions.getExtensionCount(FieldBehaviorProto.fieldBehavior) > 0 + && fieldOptions + .getExtension(FieldBehaviorProto.fieldBehavior) + .contains(FieldBehavior.REQUIRED)) { isRequired = true; } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposerTest.java new file mode 100644 index 0000000000..77205f0122 --- /dev/null +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposerTest.java @@ -0,0 +1,529 @@ +/* + * Copyright 2024 Google LLC + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Google LLC nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package com.google.api.generator.gapic.composer.common; + +import static com.google.api.generator.gapic.composer.common.AbstractTransportServiceStubClassComposer.shouldGenerateRequestMutator; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + +import com.google.api.FieldInfo.Format; +import com.google.api.generator.engine.ast.LambdaExpr; +import com.google.api.generator.engine.ast.Reference; +import com.google.api.generator.engine.ast.Statement; +import com.google.api.generator.engine.ast.TypeNode; +import com.google.api.generator.engine.ast.VaporReference; +import com.google.api.generator.engine.ast.Variable; +import com.google.api.generator.engine.ast.VariableExpr; +import com.google.api.generator.engine.writer.JavaWriterVisitor; +import com.google.api.generator.gapic.model.Field; +import com.google.api.generator.gapic.model.Message; +import com.google.api.generator.gapic.model.Method; +import com.google.api.generator.test.utils.LineFormatter; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import org.junit.Before; +import org.junit.Test; + +public class AbstractTransportServiceStubClassComposerTest { + private JavaWriterVisitor writerVisitor; + + @Before + public void setUp() { + writerVisitor = new JavaWriterVisitor(); + } + + @Test + public void shouldGenerateRequestMutator_fieldConfiguredCorrectly() { + String ECHO_PACKAGE = "com.google.showcase.v1beta1"; + List autoPopulatedFieldList = new ArrayList<>(); + autoPopulatedFieldList.add("TestField"); + + Method METHOD = + Method.builder() + .setName("TestMethod") + .setInputType( + TypeNode.withReference( + VaporReference.builder() + .setName("SampleRequest") + .setPakkage(ECHO_PACKAGE) + .build())) + .setOutputType(TypeNode.STRING) + .setAutoPopulatedFields(autoPopulatedFieldList) + .build(); + + Field FIELD = + Field.builder() + .setName("TestField") + .setFieldInfoFormat(Format.UUID4) + .setType(TypeNode.STRING) + .build(); + List fieldList = new ArrayList<>(); + fieldList.add(FIELD); + + Message MESSAGE = + Message.builder() + .setFullProtoName("com.google.showcase.v1beta1.SampleRequest") + .setName("SampleRequest") + .setType(TypeNode.STRING) + .setFields(fieldList) + .build(); + + ImmutableMap messageTypes = + ImmutableMap.of("com.google.showcase.v1beta1.SampleRequest", MESSAGE); + + assertTrue(shouldGenerateRequestMutator(METHOD, messageTypes)); + } + + @Test + public void shouldNotGenerateRequestMutator_fieldConfiguredIncorrectly() { + String ECHO_PACKAGE = "com.google.showcase.v1beta1"; + List autoPopulatedFieldList = new ArrayList<>(); + autoPopulatedFieldList.add("TestField"); + + Method METHOD = + Method.builder() + .setName("TestMethod") + .setInputType( + TypeNode.withReference( + VaporReference.builder() + .setName("SampleRequest") + .setPakkage(ECHO_PACKAGE) + .build())) + .setOutputType(TypeNode.STRING) + .setAutoPopulatedFields(autoPopulatedFieldList) + .build(); + + Field FIELD = + Field.builder() + .setName("TestField") + .setFieldInfoFormat(Format.IPV6) + .setType(TypeNode.STRING) + .build(); + List fieldList = new ArrayList<>(); + fieldList.add(FIELD); + + Message MESSAGE = + Message.builder() + .setFullProtoName("com.google.showcase.v1beta1.SampleRequest") + .setName("SampleRequest") + .setType(TypeNode.STRING) + .setFields(fieldList) + .build(); + + ImmutableMap messageTypes = + ImmutableMap.of("com.google.showcase.v1beta1.SampleRequest", MESSAGE); + + assertFalse(shouldGenerateRequestMutator(METHOD, messageTypes)); + } + + // TODO: add unit tests where the field is not found in the messageTypes map + @Test + public void createAutoPopulatedRequestStatement_sampleField() { + Reference RequestBuilderRef = + VaporReference.builder() + .setName("EchoRequest") + .setPakkage("com.google.example.examples.library.v1") + .build(); + + TypeNode testType = TypeNode.withReference(RequestBuilderRef); + + Method METHOD = + Method.builder() + .setName("TestMethod") + .setInputType(testType) + .setOutputType(TypeNode.STRING) + .build(); + + Reference RequestVarBuilderRef = + VaporReference.builder() + .setEnclosingClassNames(METHOD.inputType().reference().name()) + .setName("Builder") + .setPakkage(METHOD.inputType().reference().pakkage()) + .build(); + + TypeNode requestBuilderType = TypeNode.withReference(RequestVarBuilderRef); + + VariableExpr requestBuilderVarExpr = + VariableExpr.builder() + .setVariable( + Variable.builder().setName("requestBuilder").setType(requestBuilderType).build()) + .setIsDecl(false) + .build(); + + Statement autoPopulatedFieldStatement = + AbstractTransportServiceStubClassComposer.createAutoPopulatedRequestStatement( + METHOD, "sampleField", requestBuilderVarExpr); + + autoPopulatedFieldStatement.accept(writerVisitor); + String expected = + LineFormatter.lines( + "if (Strings.isNullOrEmpty(request.getSampleField())) {\n", + "requestBuilder.setSampleField(UUID.randomUUID().toString());\n", + "}\n"); + assertEquals(expected, writerVisitor.write()); + } + + @Test + public void createRequestMutatorBody_TestField() { + List bodyStatements = new ArrayList<>(); + String ECHO_PACKAGE = "com.google.showcase.v1beta1"; + List autoPopulatedFieldList = new ArrayList<>(); + autoPopulatedFieldList.add("TestField"); + + Method METHOD = + Method.builder() + .setName("TestMethod") + .setInputType( + TypeNode.withReference( + VaporReference.builder() + .setName("SampleRequest") + .setPakkage(ECHO_PACKAGE) + .build())) + .setOutputType(TypeNode.STRING) + .setAutoPopulatedFields(autoPopulatedFieldList) + .build(); + + Field FIELD = + Field.builder() + .setName("TestField") + .setFieldInfoFormat(Format.UUID4) + .setType(TypeNode.STRING) + .build(); + List fieldList = new ArrayList<>(); + fieldList.add(FIELD); + + Message MESSAGE = + Message.builder() + .setFullProtoName("com.google.showcase.v1beta1.SampleRequest") + .setName("SampleRequest") + .setType(TypeNode.STRING) + .setFields(fieldList) + .build(); + + Reference RequestBuilderRef = + VaporReference.builder() + .setEnclosingClassNames(METHOD.inputType().reference().name()) + .setName("Builder") + .setPakkage(METHOD.inputType().reference().pakkage()) + .build(); + + TypeNode requestBuilderType = TypeNode.withReference(RequestBuilderRef); + + VariableExpr requestBuilderVarExpr = + VariableExpr.builder() + .setVariable( + Variable.builder().setName("requestBuilder").setType(requestBuilderType).build()) + .setIsDecl(false) + .build(); + + ImmutableMap messageTypes = + ImmutableMap.of("com.google.showcase.v1beta1.SampleRequest", MESSAGE); + + List listOfAutoPopulatedStatements = + AbstractTransportServiceStubClassComposer.createRequestMutatorBody( + METHOD, messageTypes, bodyStatements, requestBuilderVarExpr); + + for (Statement statement : listOfAutoPopulatedStatements) { + statement.accept(writerVisitor); + } + + String expected = + LineFormatter.lines( + "if (Strings.isNullOrEmpty(request.getTestField())) {\n", + "requestBuilder.setTestField(UUID.randomUUID().toString());\n", + "}\n"); + assertEquals(expected, writerVisitor.write()); + } + + @Test + public void createRequestMutatorBody_TestFieldNotString_shouldReturnNull() { + List bodyStatements = new ArrayList<>(); + + String ECHO_PACKAGE = "com.google.showcase.v1beta1"; + List autoPopulatedFieldList = new ArrayList<>(); + autoPopulatedFieldList.add("TestField"); + + Method METHOD = + Method.builder() + .setName("TestMethod") + .setInputType( + TypeNode.withReference( + VaporReference.builder() + .setName("SampleRequest") + .setPakkage(ECHO_PACKAGE) + .build())) + .setOutputType(TypeNode.STRING) + .setAutoPopulatedFields(autoPopulatedFieldList) + .build(); + + Field FIELD = + Field.builder() + .setName("TestField") + .setFieldInfoFormat(Format.UUID4) + .setType(TypeNode.BOOLEAN) + .build(); + List fieldList = new ArrayList<>(); + fieldList.add(FIELD); + + Message MESSAGE = + Message.builder() + .setFullProtoName("com.google.showcase.v1beta1.SampleRequest") + .setName("SampleRequest") + .setType(TypeNode.STRING) + .setFields(fieldList) + .build(); + + Reference RequestBuilderRef = + VaporReference.builder() + .setEnclosingClassNames(METHOD.inputType().reference().name()) + .setName("Builder") + .setPakkage(METHOD.inputType().reference().pakkage()) + .build(); + + TypeNode requestBuilderType = TypeNode.withReference(RequestBuilderRef); + + VariableExpr requestBuilderVarExpr = + VariableExpr.builder() + .setVariable( + Variable.builder().setName("requestBuilder").setType(requestBuilderType).build()) + .setIsDecl(false) + .build(); + + ImmutableMap messageTypes = + ImmutableMap.of("com.google.showcase.v1beta1.SampleRequest", MESSAGE); + + List listOfAutoPopulatedStatements = + AbstractTransportServiceStubClassComposer.createRequestMutatorBody( + METHOD, messageTypes, bodyStatements, requestBuilderVarExpr); + + for (Statement statement : listOfAutoPopulatedStatements) { + statement.accept(writerVisitor); + } + + String expected = LineFormatter.lines(""); + assertEquals(expected, writerVisitor.write()); + } + + @Test + public void createRequestMutatorBody_TestFieldFormatNotUUID_shouldReturnNull() { + List bodyStatements = new ArrayList<>(); + String ECHO_PACKAGE = "com.google.showcase.v1beta1"; + List autoPopulatedFieldList = new ArrayList<>(); + autoPopulatedFieldList.add("TestField"); + + Method METHOD = + Method.builder() + .setName("TestMethod") + .setInputType( + TypeNode.withReference( + VaporReference.builder() + .setName("SampleRequest") + .setPakkage(ECHO_PACKAGE) + .build())) + .setOutputType(TypeNode.STRING) + .setAutoPopulatedFields(autoPopulatedFieldList) + .build(); + + Field FIELD = + Field.builder() + .setName("TestField") + .setFieldInfoFormat(Format.IPV4_OR_IPV6) + .setType(TypeNode.STRING) + .build(); + List fieldList = new ArrayList<>(); + fieldList.add(FIELD); + + Message MESSAGE = + Message.builder() + .setFullProtoName("com.google.showcase.v1beta1.SampleRequest") + .setName("SampleRequest") + .setType(TypeNode.STRING) + .setFields(fieldList) + .build(); + + Reference RequestBuilderRef = + VaporReference.builder() + .setEnclosingClassNames(METHOD.inputType().reference().name()) + .setName("Builder") + .setPakkage(METHOD.inputType().reference().pakkage()) + .build(); + + TypeNode requestBuilderType = TypeNode.withReference(RequestBuilderRef); + + VariableExpr requestBuilderVarExpr = + VariableExpr.builder() + .setVariable( + Variable.builder().setName("requestBuilder").setType(requestBuilderType).build()) + .setIsDecl(false) + .build(); + + ImmutableMap messageTypes = + ImmutableMap.of("com.google.showcase.v1beta1.SampleRequest", MESSAGE); + + List listOfAutoPopulatedStatements = + AbstractTransportServiceStubClassComposer.createRequestMutatorBody( + METHOD, messageTypes, bodyStatements, requestBuilderVarExpr); + + for (Statement statement : listOfAutoPopulatedStatements) { + statement.accept(writerVisitor); + } + + String expected = LineFormatter.lines(""); + assertEquals(expected, writerVisitor.write()); + } + + @Test + public void createRequestMutatorBody_TestFieldIncorrectName_shouldReturnNull() { + List bodyStatements = new ArrayList<>(); + String ECHO_PACKAGE = "com.google.showcase.v1beta1"; + List autoPopulatedFieldList = new ArrayList<>(); + autoPopulatedFieldList.add("TestField"); + + Method METHOD = + Method.builder() + .setName("TestMethod") + .setInputType( + TypeNode.withReference( + VaporReference.builder() + .setName("SampleRequest") + .setPakkage(ECHO_PACKAGE) + .build())) + .setOutputType(TypeNode.STRING) + .setAutoPopulatedFields(autoPopulatedFieldList) + .build(); + + Field FIELD = + Field.builder() + .setName("TestIncorrectField") + .setFieldInfoFormat(Format.UUID4) + .setType(TypeNode.STRING) + .build(); + List fieldList = new ArrayList<>(); + fieldList.add(FIELD); + + Message MESSAGE = + Message.builder() + .setFullProtoName("com.google.showcase.v1beta1.SampleRequest") + .setName("SampleRequest") + .setType(TypeNode.STRING) + .setFields(fieldList) + .build(); + + Reference RequestBuilderRef = + VaporReference.builder() + .setEnclosingClassNames(METHOD.inputType().reference().name()) + .setName("Builder") + .setPakkage(METHOD.inputType().reference().pakkage()) + .build(); + + TypeNode requestBuilderType = TypeNode.withReference(RequestBuilderRef); + + VariableExpr requestBuilderVarExpr = + VariableExpr.builder() + .setVariable( + Variable.builder().setName("requestBuilder").setType(requestBuilderType).build()) + .setIsDecl(false) + .build(); + + ImmutableMap messageTypes = + ImmutableMap.of("com.google.showcase.v1beta1.SampleRequest", MESSAGE); + + List listOfAutoPopulatedStatements = + AbstractTransportServiceStubClassComposer.createRequestMutatorBody( + METHOD, messageTypes, bodyStatements, requestBuilderVarExpr); + + for (Statement statement : listOfAutoPopulatedStatements) { + statement.accept(writerVisitor); + } + + String expected = LineFormatter.lines(""); + assertEquals(expected, writerVisitor.write()); + } + + @Test + public void createRequestMutator_TestField() { + String ECHO_PACKAGE = "com.google.showcase.v1beta1"; + List autoPopulatedFieldList = new ArrayList<>(); + autoPopulatedFieldList.add("TestField"); + + Method METHOD = + Method.builder() + .setName("TestMethod") + .setInputType( + TypeNode.withReference( + VaporReference.builder() + .setName("SampleRequest") + .setPakkage(ECHO_PACKAGE) + .build())) + .setOutputType(TypeNode.STRING) + .setAutoPopulatedFields(autoPopulatedFieldList) + .build(); + + Field FIELD = + Field.builder() + .setName("TestField") + .setFieldInfoFormat(Format.UUID4) + .setType(TypeNode.STRING) + .build(); + List fieldList = new ArrayList<>(); + fieldList.add(FIELD); + + Message MESSAGE = + Message.builder() + .setFullProtoName("com.google.showcase.v1beta1.SampleRequest") + .setName("SampleRequest") + .setType(TypeNode.STRING) + .setFields(fieldList) + .build(); + + ImmutableMap messageTypes = + ImmutableMap.of("com.google.showcase.v1beta1.SampleRequest", MESSAGE); + + LambdaExpr requestMutator = + AbstractTransportServiceStubClassComposer.createRequestMutatorClassInstance( + METHOD, messageTypes); + + requestMutator.accept(writerVisitor); + + String expected = + LineFormatter.lines( + "request -> {\n", + "SampleRequest.Builder requestBuilder = request.toBuilder();\n", + "if (Strings.isNullOrEmpty(request.getTestField())) {\n", + "requestBuilder.setTestField(UUID.randomUUID().toString());\n", + "}\n", + "return requestBuilder.build();\n", + "}"); + assertEquals(expected, writerVisitor.write()); + } +} diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/defaultvalue/DefaultValueComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/defaultvalue/DefaultValueComposerTest.java index 43e5411b30..3345645c8c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/defaultvalue/DefaultValueComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/defaultvalue/DefaultValueComposerTest.java @@ -569,6 +569,11 @@ public void createSimpleMessage_containsMessagesEnumsAndResourceName() { + "FoobarName.ofProjectFoobarName(\"[PROJECT]\", \"[FOOBAR]\").toString())" + ".setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\", \"[FOOBAR]\").toString())" + ".setRequestId(\"requestId693933066\")" + + ".setSecondRequestId(\"secondRequestId344404470\")" + + ".setThirdRequestId(true)" + + ".setFourthRequestId(\"fourthRequestId-2116417776\")" + + ".setFifthRequestId(\"fifthRequestId959024147\")" + + ".setSixthRequestId(\"sixthRequestId1005218260\")" + ".setSeverity(Severity.forNumber(0))" + ".setFoobar(Foobar.newBuilder().build()).build()", writerVisitor.write()); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden index f67a50d9c0..f1bf7437b4 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden @@ -518,6 +518,11 @@ public class EchoClient implements BackgroundResource { * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setRequestId("requestId693933066") + * .setSecondRequestId("secondRequestId344404470") + * .setThirdRequestId(true) + * .setFourthRequestId("fourthRequestId-2116417776") + * .setFifthRequestId("fifthRequestId959024147") + * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); @@ -548,6 +553,11 @@ public class EchoClient implements BackgroundResource { * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setRequestId("requestId693933066") + * .setSecondRequestId("secondRequestId344404470") + * .setThirdRequestId(true) + * .setFourthRequestId("fourthRequestId-2116417776") + * .setFifthRequestId("fifthRequestId959024147") + * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); @@ -624,6 +634,11 @@ public class EchoClient implements BackgroundResource { * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setRequestId("requestId693933066") + * .setSecondRequestId("secondRequestId344404470") + * .setThirdRequestId(true) + * .setFourthRequestId("fourthRequestId-2116417776") + * .setFifthRequestId("fifthRequestId959024147") + * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); @@ -652,6 +667,11 @@ public class EchoClient implements BackgroundResource { * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setRequestId("requestId693933066") + * .setSecondRequestId("secondRequestId344404470") + * .setThirdRequestId(true) + * .setFourthRequestId("fourthRequestId-2116417776") + * .setFifthRequestId("fifthRequestId959024147") + * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); @@ -683,6 +703,11 @@ public class EchoClient implements BackgroundResource { * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setRequestId("requestId693933066") + * .setSecondRequestId("secondRequestId344404470") + * .setThirdRequestId(true) + * .setFourthRequestId("fourthRequestId-2116417776") + * .setFifthRequestId("fifthRequestId959024147") + * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); @@ -1092,6 +1117,11 @@ public class EchoClient implements BackgroundResource { * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setRequestId("requestId693933066") + * .setSecondRequestId("secondRequestId344404470") + * .setThirdRequestId(true) + * .setFourthRequestId("fourthRequestId-2116417776") + * .setFifthRequestId("fifthRequestId959024147") + * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); @@ -1122,6 +1152,11 @@ public class EchoClient implements BackgroundResource { * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setRequestId("requestId693933066") + * .setSecondRequestId("secondRequestId344404470") + * .setThirdRequestId(true) + * .setFourthRequestId("fourthRequestId-2116417776") + * .setFifthRequestId("fifthRequestId959024147") + * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClientTest.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClientTest.golden index 009d8688df..a2a88d6bf3 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClientTest.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClientTest.golden @@ -109,6 +109,11 @@ public class EchoClientTest { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -459,6 +464,11 @@ public class EchoClientTest { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -485,6 +495,11 @@ public class EchoClientTest { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -519,6 +534,11 @@ public class EchoClientTest { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -545,6 +565,11 @@ public class EchoClientTest { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -579,6 +604,11 @@ public class EchoClientTest { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -605,6 +635,11 @@ public class EchoClientTest { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -864,6 +899,11 @@ public class EchoClientTest { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -878,6 +918,11 @@ public class EchoClientTest { Assert.assertEquals(request.getName(), actualRequest.getName()); Assert.assertEquals(request.getParent(), actualRequest.getParent()); Assert.assertEquals(request.getRequestId(), actualRequest.getRequestId()); + Assert.assertEquals(request.getSecondRequestId(), actualRequest.getSecondRequestId()); + Assert.assertEquals(request.getThirdRequestId(), actualRequest.getThirdRequestId()); + Assert.assertEquals(request.getFourthRequestId(), actualRequest.getFourthRequestId()); + Assert.assertEquals(request.getFifthRequestId(), actualRequest.getFifthRequestId()); + Assert.assertEquals(request.getSixthRequestId(), actualRequest.getSixthRequestId()); Assert.assertEquals(request.getContent(), actualRequest.getContent()); Assert.assertEquals(request.getError(), actualRequest.getError()); Assert.assertEquals(request.getSeverity(), actualRequest.getSeverity()); @@ -899,6 +944,11 @@ public class EchoClientTest { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoStub.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoStub.golden index 940ab7d4c4..c74e415fef 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoStub.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoStub.golden @@ -14,6 +14,7 @@ import com.google.api.gax.rpc.ClientStreamingCallable; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.base.Strings; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.showcase.v1beta1.BlockRequest; @@ -30,6 +31,7 @@ import com.google.showcase.v1beta1.WaitResponse; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -183,6 +185,17 @@ public class GrpcEchoStub extends EchoStub { GrpcCallSettings echoTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(echoMethodDescriptor) + .setRequestMutator( + request -> { + EchoRequest.Builder requestBuilder = request.toBuilder(); + if (Strings.isNullOrEmpty(request.getRequestId())) { + requestBuilder.setRequestId(UUID.randomUUID().toString()); + } + if (Strings.isNullOrEmpty(request.getSecondRequestId())) { + requestBuilder.setSecondRequestId(UUID.randomUUID().toString()); + } + return requestBuilder.build(); + }) .build(); GrpcCallSettings expandTransportSettings = GrpcCallSettings.newBuilder() diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden index e17e9367c8..e67e1d5045 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden @@ -44,6 +44,11 @@ public class AsyncChat { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden index 02e38bd9db..16fdf6e73a 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden @@ -44,6 +44,11 @@ public class AsyncChatAgain { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden index cd8c21c72d..756c28f9b2 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden @@ -62,6 +62,11 @@ public class AsyncCollect { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden index 5ca5cd0bcc..8b22c05f7d 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden @@ -43,6 +43,11 @@ public class AsyncCollideName { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden index 087faaebf5..685c2e16cb 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden @@ -43,6 +43,11 @@ public class AsyncEcho { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden index f299524598..e4beee3fcd 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden @@ -42,6 +42,11 @@ public class SyncCollideName { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden index a0918f576d..29c754d9ae 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden @@ -42,6 +42,11 @@ public class SyncEcho { .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setRequestId("requestId693933066") + .setSecondRequestId("secondRequestId344404470") + .setThirdRequestId(true) + .setFourthRequestId("fourthRequestId-2116417776") + .setFifthRequestId("fifthRequestId959024147") + .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonEchoStub.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonEchoStub.golden index 18904bdfbe..d58ce093b9 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonEchoStub.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonEchoStub.golden @@ -23,6 +23,7 @@ import com.google.api.gax.rpc.ClientStreamingCallable; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.base.Strings; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.protobuf.TypeRegistry; @@ -42,6 +43,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -408,6 +410,17 @@ public class HttpJsonEchoStub extends EchoStub { HttpJsonCallSettings.newBuilder() .setMethodDescriptor(echoMethodDescriptor) .setTypeRegistry(typeRegistry) + .setRequestMutator( + request -> { + EchoRequest.Builder requestBuilder = request.toBuilder(); + if (Strings.isNullOrEmpty(request.getRequestId())) { + requestBuilder.setRequestId(UUID.randomUUID().toString()); + } + if (Strings.isNullOrEmpty(request.getSecondRequestId())) { + requestBuilder.setSecondRequestId(UUID.randomUUID().toString()); + } + return requestBuilder.build(); + }) .build(); HttpJsonCallSettings expandTransportSettings = HttpJsonCallSettings.newBuilder() diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java index 44a921f3b0..47be643ffa 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java @@ -580,6 +580,11 @@ public void valid_composeStreamCallableMethod_bidiStream() { " .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\"," + " \"[FOOBAR]\").toString())\n", " .setRequestId(\"requestId693933066\")\n", + " .setSecondRequestId(\"secondRequestId344404470\")\n", + " .setThirdRequestId(true)\n", + " .setFourthRequestId(\"fourthRequestId-2116417776\")\n", + " .setFifthRequestId(\"fifthRequestId959024147\")\n", + " .setSixthRequestId(\"sixthRequestId1005218260\")\n", " .setSeverity(Severity.forNumber(0))\n", " .setFoobar(Foobar.newBuilder().build())\n", " .build();\n", @@ -713,6 +718,11 @@ public void valid_composeStreamCallableMethod_clientStream() { " .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\"," + " \"[FOOBAR]\").toString())\n", " .setRequestId(\"requestId693933066\")\n", + " .setSecondRequestId(\"secondRequestId344404470\")\n", + " .setThirdRequestId(true)\n", + " .setFourthRequestId(\"fourthRequestId-2116417776\")\n", + " .setFifthRequestId(\"fifthRequestId959024147\")\n", + " .setSixthRequestId(\"sixthRequestId1005218260\")\n", " .setSeverity(Severity.forNumber(0))\n", " .setFoobar(Foobar.newBuilder().build())\n", " .build();\n", @@ -820,6 +830,11 @@ public void valid_composeRegularCallableMethod_unaryRpc() { " .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\"," + " \"[FOOBAR]\").toString())\n", " .setRequestId(\"requestId693933066\")\n", + " .setSecondRequestId(\"secondRequestId344404470\")\n", + " .setThirdRequestId(true)\n", + " .setFourthRequestId(\"fourthRequestId-2116417776\")\n", + " .setFifthRequestId(\"fifthRequestId959024147\")\n", + " .setSixthRequestId(\"sixthRequestId1005218260\")\n", " .setSeverity(Severity.forNumber(0))\n", " .setFoobar(Foobar.newBuilder().build())\n", " .build();\n", diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java index 265882ac3f..affffb9c09 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java @@ -224,6 +224,11 @@ public void composeClassHeaderSample_firstMethodHasNoSignatures() { " .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\"," + " \"[FOOBAR]\").toString())\n", " .setRequestId(\"requestId693933066\")\n", + " .setSecondRequestId(\"secondRequestId344404470\")\n", + " .setThirdRequestId(true)\n", + " .setFourthRequestId(\"fourthRequestId-2116417776\")\n", + " .setFifthRequestId(\"fifthRequestId959024147\")\n", + " .setSixthRequestId(\"sixthRequestId1005218260\")\n", " .setSeverity(Severity.forNumber(0))\n", " .setFoobar(Foobar.newBuilder().build())\n", " .build();\n", diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java index 9839af8f31..6d473be885 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java @@ -336,6 +336,11 @@ public void valid_composeDefaultSample_pureUnaryReturnVoid() { " .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\"," + " \"[FOOBAR]\").toString())\n", " .setRequestId(\"requestId693933066\")\n", + " .setSecondRequestId(\"secondRequestId344404470\")\n", + " .setThirdRequestId(true)\n", + " .setFourthRequestId(\"fourthRequestId-2116417776\")\n", + " .setFifthRequestId(\"fifthRequestId959024147\")\n", + " .setSixthRequestId(\"sixthRequestId1005218260\")\n", " .setSeverity(Severity.forNumber(0))\n", " .setFoobar(Foobar.newBuilder().build())\n", " .build();\n", @@ -399,6 +404,11 @@ public void valid_composeDefaultSample_pureUnaryReturnResponse() { " .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\"," + " \"[FOOBAR]\").toString())\n", " .setRequestId(\"requestId693933066\")\n", + " .setSecondRequestId(\"secondRequestId344404470\")\n", + " .setThirdRequestId(true)\n", + " .setFourthRequestId(\"fourthRequestId-2116417776\")\n", + " .setFifthRequestId(\"fifthRequestId959024147\")\n", + " .setSixthRequestId(\"sixthRequestId1005218260\")\n", " .setSeverity(Severity.forNumber(0))\n", " .setFoobar(Foobar.newBuilder().build())\n", " .build();\n", diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/model/FieldTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/model/FieldTest.java new file mode 100644 index 0000000000..89ba60eabd --- /dev/null +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/model/FieldTest.java @@ -0,0 +1,76 @@ +// Copyright 2024 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.api.generator.gapic.model; + +import static org.junit.Assert.assertEquals; + +import com.google.api.FieldInfo.Format; +import com.google.api.generator.engine.ast.TypeNode; +import org.junit.Test; + +public class FieldTest { + + @Test + public void shouldAutoPopulate() { + Field FIELD = + Field.builder() + .setName("SampleField") + .setIsRequired(false) + .setFieldInfoFormat(Format.UUID4) + .setType(TypeNode.STRING) + .build(); + + assertEquals(true, FIELD.canBeAutoPopulated()); + } + + @Test + public void isRequired_shouldNotAutoPopulate() { + Field FIELD = + Field.builder() + .setName("SampleField") + .setIsRequired(true) + .setFieldInfoFormat(Format.UUID4) + .setType(TypeNode.STRING) + .build(); + + assertEquals(false, FIELD.canBeAutoPopulated()); + } + + @Test + public void fieldInfoFormatNotUUID4_shouldNotAutoPopulate() { + Field FIELD = + Field.builder() + .setName("SampleField") + .setIsRequired(true) + .setFieldInfoFormat(Format.IPV6) + .setType(TypeNode.STRING) + .build(); + + assertEquals(false, FIELD.canBeAutoPopulated()); + } + + @Test + public void typeNotString_shouldNotAutoPopulate() { + Field FIELD = + Field.builder() + .setName("SampleField") + .setIsRequired(true) + .setFieldInfoFormat(Format.UUID4) + .setType(TypeNode.BOOLEAN) + .build(); + + assertEquals(false, FIELD.canBeAutoPopulated()); + } +} diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ParserTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ParserTest.java index 16340e0a6b..8fdf2576c9 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ParserTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ParserTest.java @@ -145,7 +145,14 @@ public void parseMethods_basic() { assertEquals(echoMethod.name(), "Echo"); assertEquals(echoMethod.stream(), Method.Stream.NONE); assertEquals(true, echoMethod.hasAutoPopulatedFields()); - assertEquals(Arrays.asList("request_id"), echoMethod.autoPopulatedFields()); + assertEquals( + Arrays.asList( + "request_id", + "second_request_id", + "third_request_id", + "fourth_request_id", + "non_existent_field"), + echoMethod.autoPopulatedFields()); // Detailed method signature parsing tests are in a separate unit test. List> methodSignatures = echoMethod.methodSignatures(); @@ -451,6 +458,21 @@ public void parseFields_autoPopulated() { field = message.fieldMap().get("severity"); assertEquals(false, field.isRequired()); assertEquals(null, field.fieldInfoFormat()); + field = message.fieldMap().get("second_request_id"); + assertEquals(false, field.isRequired()); + assertEquals(Format.UUID4, field.fieldInfoFormat()); + field = message.fieldMap().get("third_request_id"); + assertEquals(false, field.isRequired()); + assertEquals(Format.UUID4, field.fieldInfoFormat()); + field = message.fieldMap().get("fourth_request_id"); + assertEquals(false, field.isRequired()); + assertEquals(Format.IPV4_OR_IPV6, field.fieldInfoFormat()); + field = message.fieldMap().get("fifth_request_id"); + assertEquals(false, field.isRequired()); + assertEquals(Format.UUID4, field.fieldInfoFormat()); + field = message.fieldMap().get("sixth_request_id"); + assertEquals(true, field.isRequired()); + assertEquals(Format.UUID4, field.fieldInfoFormat()); message = messageTypes.get("com.google.showcase.v1beta1.ExpandRequest"); field = message.fieldMap().get("request_id"); @@ -465,7 +487,12 @@ public void parseAutoPopulatedMethodsAndFields_exists() { assertEquals( true, autoPopulatedMethodsWithFields.containsKey("google.showcase.v1beta1.Echo.Echo")); assertEquals( - Arrays.asList("request_id"), + Arrays.asList( + "request_id", + "second_request_id", + "third_request_id", + "fourth_request_id", + "non_existent_field"), autoPopulatedMethodsWithFields.get("google.showcase.v1beta1.Echo.Echo")); } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/TestProtoLoader.java b/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/TestProtoLoader.java index 79d37baf4f..8a812ea437 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/TestProtoLoader.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/TestProtoLoader.java @@ -27,6 +27,7 @@ import com.google.api.generator.gapic.protoparser.BatchingSettingsConfigParser; import com.google.api.generator.gapic.protoparser.Parser; import com.google.api.generator.gapic.protoparser.ServiceConfigParser; +import com.google.api.generator.gapic.protoparser.ServiceYamlParser; import com.google.bookshop.v1beta1.BookshopProto; import com.google.explicit.dynamic.routing.header.ExplicitDynamicRoutingHeaderTestingOuterClass; import com.google.logging.v2.LogEntryProto; @@ -162,12 +163,18 @@ public GapicContext parseShowcaseEcho() { ServiceDescriptor echoServiceDescriptor = echoFileDescriptor.getServices().get(0); assertEquals(echoServiceDescriptor.getName(), "Echo"); + String serviceYamlFilename = "echo_v1beta1.yaml"; + Path serviceYamlPath = Paths.get(testFilesDirectory, serviceYamlFilename); + Optional serviceYamlOpt = + ServiceYamlParser.parse(serviceYamlPath.toString()); + assertTrue(serviceYamlOpt.isPresent()); + Map messageTypes = Parser.parseMessages(echoFileDescriptor); Map resourceNames = Parser.parseResourceNames(echoFileDescriptor); Set outputResourceNames = new HashSet<>(); List services = Parser.parseService( - echoFileDescriptor, messageTypes, resourceNames, Optional.empty(), outputResourceNames); + echoFileDescriptor, messageTypes, resourceNames, serviceYamlOpt, outputResourceNames); // Explicitly adds service description, since this is not parsed from source code location // in test protos, as it would from a protoc CodeGeneratorRequest diff --git a/gapic-generator-java/src/test/proto/echo.proto b/gapic-generator-java/src/test/proto/echo.proto index d963447340..effa0325cd 100644 --- a/gapic-generator-java/src/test/proto/echo.proto +++ b/gapic-generator-java/src/test/proto/echo.proto @@ -185,6 +185,34 @@ message EchoRequest { (google.api.field_info).format = UUID4 ]; + // This field is added to test that autopopulation works for multiple fields + string second_request_id = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_info).format = UUID4 + ]; + + // This field is added to test that autopopulation should not populate this field since it is not of type String + bool third_request_id = 9 [ + (google.api.field_info).format = UUID4 + ]; + + // This field is added to test that autopopulation should not populate this field since it is not annotated with UUID4 format + string fourth_request_id = 10 [ + (google.api.field_info).format = IPV4_OR_IPV6 + ]; + + // This field is added to test that autopopulation should not populate this field since it is not designated in the service_yaml + string fifth_request_id = 11 [ + (google.api.field_info).format = UUID4 + ]; + + // This field is added to test that autopopulation should not populate this field since it marked as Required + string sixth_request_id = 12 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = REQUIRED + ]; + + oneof response { // The content to be echoed by the server. string content = 1; diff --git a/gapic-generator-java/src/test/resources/echo_v1beta1.yaml b/gapic-generator-java/src/test/resources/echo_v1beta1.yaml index 57d9f90115..a6aea48e87 100644 --- a/gapic-generator-java/src/test/resources/echo_v1beta1.yaml +++ b/gapic-generator-java/src/test/resources/echo_v1beta1.yaml @@ -97,7 +97,10 @@ http: - post: '/v1beta3/{name=operations/**}:cancel' publishing: method_settings: - # TODO: Add more test cases for scenarios where the field does not exist, the field is not a String, etc. Eventually the API Linter should handle some of those cases. - selector: google.showcase.v1beta1.Echo.Echo auto_populated_fields: - - request_id \ No newline at end of file + - request_id + - second_request_id + - third_request_id + - fourth_request_id + - non_existent_field \ No newline at end of file diff --git a/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcCallSettings.java b/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcCallSettings.java index a5aef3d69f..fae4ae9d25 100644 --- a/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcCallSettings.java +++ b/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcCallSettings.java @@ -30,6 +30,7 @@ package com.google.api.gax.grpc; import com.google.api.core.BetaApi; +import com.google.api.gax.rpc.RequestMutator; import com.google.api.gax.rpc.RequestParamsExtractor; import io.grpc.MethodDescriptor; @@ -37,11 +38,13 @@ public class GrpcCallSettings { private final MethodDescriptor methodDescriptor; private final RequestParamsExtractor paramsExtractor; + private final RequestMutator requestMutator; private final boolean alwaysAwaitTrailers; private GrpcCallSettings(Builder builder) { this.methodDescriptor = builder.methodDescriptor; this.paramsExtractor = builder.paramsExtractor; + this.requestMutator = builder.requestMutator; this.alwaysAwaitTrailers = builder.shouldAwaitTrailers; } @@ -53,6 +56,10 @@ public RequestParamsExtractor getParamsExtractor() { return paramsExtractor; } + public RequestMutator getRequestMutator() { + return requestMutator; + } + @BetaApi public boolean shouldAwaitTrailers() { return alwaysAwaitTrailers; @@ -76,6 +83,8 @@ public Builder toBuilder() { public static class Builder { private MethodDescriptor methodDescriptor; private RequestParamsExtractor paramsExtractor; + + private RequestMutator requestMutator; private boolean shouldAwaitTrailers; private Builder() {} @@ -83,6 +92,7 @@ private Builder() {} private Builder(GrpcCallSettings settings) { this.methodDescriptor = settings.methodDescriptor; this.paramsExtractor = settings.paramsExtractor; + this.requestMutator = settings.requestMutator; this.shouldAwaitTrailers = settings.alwaysAwaitTrailers; } @@ -98,6 +108,11 @@ public Builder setParamsExtractor( return this; } + public Builder setRequestMutator(RequestMutator requestMutator) { + this.requestMutator = requestMutator; + return this; + } + @BetaApi public Builder setShouldAwaitTrailers(boolean b) { this.shouldAwaitTrailers = b; diff --git a/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcCallableFactory.java b/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcCallableFactory.java index 8a0c4e0b37..974feb0c43 100644 --- a/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcCallableFactory.java +++ b/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcCallableFactory.java @@ -85,7 +85,13 @@ public static UnaryCallable createBas GrpcRawCallableFactory.createUnaryCallable( grpcCallSettings, callSettings.getRetryableCodes()); - callable = Callables.retrying(callable, callSettings, clientContext); + if (grpcCallSettings.getRequestMutator() != null) { + callable = + Callables.retrying( + callable, callSettings, clientContext, grpcCallSettings.getRequestMutator()); + } else { + callable = Callables.retrying(callable, callSettings, clientContext); + } return callable; } diff --git a/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcDirectCallable.java b/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcDirectCallable.java index 5b6a5f1bad..33041145dd 100644 --- a/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcDirectCallable.java +++ b/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcDirectCallable.java @@ -30,6 +30,7 @@ package com.google.api.gax.grpc; import com.google.api.core.ApiFuture; +import com.google.api.core.InternalApi; import com.google.api.core.ListenableFutureToApiFuture; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.UnaryCallable; @@ -43,6 +44,7 @@ * *

Package-private for internal use. */ +@InternalApi class GrpcDirectCallable extends UnaryCallable { private final MethodDescriptor descriptor; private final boolean awaitTrailers; diff --git a/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonCallSettings.java b/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonCallSettings.java index 7dd7732175..04411fc3d7 100644 --- a/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonCallSettings.java +++ b/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonCallSettings.java @@ -29,6 +29,7 @@ */ package com.google.api.gax.httpjson; +import com.google.api.gax.rpc.RequestMutator; import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.protobuf.TypeRegistry; @@ -36,11 +37,14 @@ public class HttpJsonCallSettings { private final ApiMethodDescriptor methodDescriptor; private final RequestParamsExtractor paramsExtractor; + + private final RequestMutator requestMutator; private final TypeRegistry typeRegistry; private HttpJsonCallSettings(Builder builder) { this.methodDescriptor = builder.methodDescriptor; this.paramsExtractor = builder.paramsExtractor; + this.requestMutator = builder.requestMutator; this.typeRegistry = builder.typeRegistry; } @@ -52,6 +56,10 @@ public RequestParamsExtractor getParamsExtractor() { return paramsExtractor; } + public RequestMutator getRequestMutator() { + return requestMutator; + } + public TypeRegistry getTypeRegistry() { return typeRegistry; } @@ -72,6 +80,8 @@ public Builder toBuilder() { } public static class Builder { + + private RequestMutator requestMutator; private ApiMethodDescriptor methodDescriptor; private RequestParamsExtractor paramsExtractor; private TypeRegistry typeRegistry; @@ -94,6 +104,11 @@ public Builder setParamsExtractor( return this; } + public Builder setRequestMutator(RequestMutator requestMutator) { + this.requestMutator = requestMutator; + return this; + } + public Builder setTypeRegistry(TypeRegistry typeRegistry) { this.typeRegistry = typeRegistry; return this; diff --git a/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonCallableFactory.java b/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonCallableFactory.java index d95751e3b0..33e2ff886e 100644 --- a/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonCallableFactory.java +++ b/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonCallableFactory.java @@ -30,6 +30,7 @@ package com.google.api.gax.httpjson; import com.google.api.core.InternalApi; +import com.google.api.core.ObsoleteApi; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; @@ -72,6 +73,22 @@ private static UnaryCallable createDi return callable; } + /** Create httpJson UnaryCallable with request mutator. */ + static UnaryCallable createUnaryCallable( + UnaryCallable innerCallable, + UnaryCallSettings callSettings, + HttpJsonCallSettings httpJsonCallSettings, + ClientContext clientContext) { + UnaryCallable callable = + new HttpJsonExceptionCallable<>(innerCallable, callSettings.getRetryableCodes()); + callable = + Callables.retrying( + callable, callSettings, clientContext, httpJsonCallSettings.getRequestMutator()); + return callable.withDefaultCallContext(clientContext.getDefaultCallContext()); + } + + /** Use {@link #createUnaryCallable createUnaryCallable} method instead. */ + @ObsoleteApi("Please use other httpJson UnaryCallable method instead") static UnaryCallable createUnaryCallable( UnaryCallable innerCallable, UnaryCallSettings callSettings, @@ -96,7 +113,9 @@ public static UnaryCallable createBas ClientContext clientContext) { UnaryCallable callable = createDirectUnaryCallable(httpJsonCallSettings); callable = new HttpJsonExceptionCallable<>(callable, callSettings.getRetryableCodes()); - callable = Callables.retrying(callable, callSettings, clientContext); + callable = + Callables.retrying( + callable, callSettings, clientContext, httpJsonCallSettings.getRequestMutator()); return callable; } @@ -123,7 +142,7 @@ public static UnaryCallable createUna clientContext.getTracerFactory(), getSpanName(httpJsonCallSettings.getMethodDescriptor())); - return createUnaryCallable(innerCallable, callSettings, clientContext); + return createUnaryCallable(innerCallable, callSettings, httpJsonCallSettings, clientContext); } /** @@ -141,7 +160,8 @@ UnaryCallable createPagedCallable( PagedCallSettings pagedCallSettings, ClientContext clientContext) { UnaryCallable callable = createDirectUnaryCallable(httpJsonCallSettings); - callable = createUnaryCallable(callable, pagedCallSettings, clientContext); + callable = + createUnaryCallable(callable, pagedCallSettings, httpJsonCallSettings, clientContext); UnaryCallable pagedCallable = Callables.paged(callable, pagedCallSettings); return pagedCallable.withDefaultCallContext(clientContext.getDefaultCallContext()); @@ -162,7 +182,8 @@ public static UnaryCallable createBat BatchingCallSettings batchingCallSettings, ClientContext clientContext) { UnaryCallable callable = createDirectUnaryCallable(httpJsonCallSettings); - callable = createUnaryCallable(callable, batchingCallSettings, clientContext); + callable = + createUnaryCallable(callable, batchingCallSettings, httpJsonCallSettings, clientContext); callable = Callables.batching(callable, batchingCallSettings, clientContext); return callable.withDefaultCallContext(clientContext.getDefaultCallContext()); } diff --git a/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/RetryingTest.java b/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/RetryingTest.java index d03d7e57f0..f7b9935d31 100644 --- a/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/RetryingTest.java +++ b/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/RetryingTest.java @@ -29,9 +29,14 @@ */ package com.google.api.gax.httpjson; +import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertThrows; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.atLeastOnce; +import static org.mockito.Mockito.verify; import com.google.api.client.http.HttpHeaders; +import com.google.api.client.http.HttpMethods; import com.google.api.client.http.HttpResponseException; import com.google.api.client.http.HttpStatusCodes; import com.google.api.core.ApiFuture; @@ -50,15 +55,16 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.api.gax.rpc.UnknownException; import com.google.common.collect.ImmutableSet; -import com.google.common.truth.Truth; import com.google.common.util.concurrent.Futures; import com.google.common.util.concurrent.UncheckedExecutionException; +import com.google.protobuf.TypeRegistry; import java.util.Set; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; +import org.mockito.ArgumentCaptor; import org.mockito.Mockito; import org.threeten.bp.Duration; @@ -68,10 +74,27 @@ public class RetryingTest { @SuppressWarnings("unchecked") private final UnaryCallable callInt = Mockito.mock(UnaryCallable.class); + private final ApiMethodDescriptor FAKE_METHOD_DESCRIPTOR_FOR_REQUEST_MUTATOR = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.v1.Fake/FakeMethodForRequestMutator") + .setHttpMethod(HttpMethods.POST) + .setRequestFormatter(Mockito.mock(HttpRequestFormatter.class)) + .setResponseParser(Mockito.mock(HttpResponseParser.class)) + .build(); + + private final Integer initialRequest = 1; + private final Integer modifiedRequest = 0; + + private final HttpJsonCallSettings httpJsonCallSettings = + HttpJsonCallSettings.newBuilder() + .setRequestMutator(request -> modifiedRequest) + .setMethodDescriptor(FAKE_METHOD_DESCRIPTOR_FOR_REQUEST_MUTATOR) + .setTypeRegistry(TypeRegistry.newBuilder().build()) + .build(); + private RecordingScheduler executor; private FakeApiClock fakeClock; private ClientContext clientContext; - private static final int HTTP_CODE_PRECONDITION_FAILED = 412; private HttpResponseException HTTP_SERVICE_UNAVAILABLE_EXCEPTION = @@ -112,7 +135,7 @@ public void teardown() { @Test public void retry() { ImmutableSet retryable = ImmutableSet.of(Code.UNAVAILABLE); - Mockito.when(callInt.futureCall((Integer) Mockito.any(), (ApiCallContext) Mockito.any())) + Mockito.when(callInt.futureCall((Integer) any(), (ApiCallContext) any())) .thenReturn(ApiFutures.immediateFailedFuture(HTTP_SERVICE_UNAVAILABLE_EXCEPTION)) .thenReturn(ApiFutures.immediateFailedFuture(HTTP_SERVICE_UNAVAILABLE_EXCEPTION)) .thenReturn(ApiFutures.immediateFailedFuture(HTTP_SERVICE_UNAVAILABLE_EXCEPTION)) @@ -121,8 +144,14 @@ public void retry() { UnaryCallSettings callSettings = createSettings(retryable, FAST_RETRY_SETTINGS); UnaryCallable callable = - HttpJsonCallableFactory.createUnaryCallable(callInt, callSettings, clientContext); - Truth.assertThat(callable.call(1)).isEqualTo(2); + HttpJsonCallableFactory.createUnaryCallable( + callInt, callSettings, httpJsonCallSettings, clientContext); + assertThat(callable.call(initialRequest)).isEqualTo(2); + + // Capture the argument passed to futureCall + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(Integer.class); + verify(callInt, atLeastOnce()).futureCall(argumentCaptor.capture(), any(ApiCallContext.class)); + assertThat(argumentCaptor.getAllValues()).containsExactly(0, 0, 0, 0).inOrder(); } @Test @@ -140,7 +169,7 @@ public void retryTotalTimeoutExceeded() { httpResponseException, HttpJsonStatusCode.of(Code.FAILED_PRECONDITION), false); - Mockito.when(callInt.futureCall((Integer) Mockito.any(), (ApiCallContext) Mockito.any())) + Mockito.when(callInt.futureCall((Integer) any(), (ApiCallContext) any())) .thenReturn(ApiFutures.immediateFailedFuture(apiException)) .thenReturn(ApiFutures.immediateFuture(2)); @@ -152,14 +181,19 @@ public void retryTotalTimeoutExceeded() { .build(); UnaryCallSettings callSettings = createSettings(retryable, retrySettings); UnaryCallable callable = - HttpJsonCallableFactory.createUnaryCallable(callInt, callSettings, clientContext); - assertThrows(ApiException.class, () -> callable.call(1)); + HttpJsonCallableFactory.createUnaryCallable( + callInt, callSettings, httpJsonCallSettings, clientContext); + assertThrows(ApiException.class, () -> callable.call(initialRequest)); + // Capture the argument passed to futureCall + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(Integer.class); + verify(callInt, atLeastOnce()).futureCall(argumentCaptor.capture(), any(ApiCallContext.class)); + assertThat(argumentCaptor.getAllValues()).containsExactly(0); } @Test public void retryMaxAttemptsExceeded() { ImmutableSet retryable = ImmutableSet.of(Code.UNAVAILABLE); - Mockito.when(callInt.futureCall((Integer) Mockito.any(), (ApiCallContext) Mockito.any())) + Mockito.when(callInt.futureCall((Integer) any(), (ApiCallContext) any())) .thenReturn(ApiFutures.immediateFailedFuture(HTTP_SERVICE_UNAVAILABLE_EXCEPTION)) .thenReturn(ApiFutures.immediateFailedFuture(HTTP_SERVICE_UNAVAILABLE_EXCEPTION)) .thenReturn(ApiFutures.immediateFuture(2)); @@ -167,14 +201,19 @@ public void retryMaxAttemptsExceeded() { RetrySettings retrySettings = FAST_RETRY_SETTINGS.toBuilder().setMaxAttempts(2).build(); UnaryCallSettings callSettings = createSettings(retryable, retrySettings); UnaryCallable callable = - HttpJsonCallableFactory.createUnaryCallable(callInt, callSettings, clientContext); - assertThrows(ApiException.class, () -> callable.call(1)); + HttpJsonCallableFactory.createUnaryCallable( + callInt, callSettings, httpJsonCallSettings, clientContext); + assertThrows(ApiException.class, () -> callable.call(initialRequest)); + // Capture the argument passed to futureCall + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(Integer.class); + verify(callInt, atLeastOnce()).futureCall(argumentCaptor.capture(), any(ApiCallContext.class)); + assertThat(argumentCaptor.getAllValues()).containsExactly(0, 0).inOrder(); } @Test public void retryWithinMaxAttempts() { ImmutableSet retryable = ImmutableSet.of(Code.UNAVAILABLE); - Mockito.when(callInt.futureCall((Integer) Mockito.any(), (ApiCallContext) Mockito.any())) + Mockito.when(callInt.futureCall((Integer) any(), (ApiCallContext) any())) .thenReturn(ApiFutures.immediateFailedFuture(HTTP_SERVICE_UNAVAILABLE_EXCEPTION)) .thenReturn(ApiFutures.immediateFailedFuture(HTTP_SERVICE_UNAVAILABLE_EXCEPTION)) .thenReturn(ApiFutures.immediateFuture(2)); @@ -182,9 +221,13 @@ public void retryWithinMaxAttempts() { RetrySettings retrySettings = FAST_RETRY_SETTINGS.toBuilder().setMaxAttempts(3).build(); UnaryCallSettings callSettings = createSettings(retryable, retrySettings); UnaryCallable callable = - HttpJsonCallableFactory.createUnaryCallable(callInt, callSettings, clientContext); - callable.call(1); - Truth.assertThat(callable.call(1)).isEqualTo(2); + HttpJsonCallableFactory.createUnaryCallable( + callInt, callSettings, httpJsonCallSettings, clientContext); + assertThat(callable.call(initialRequest)).isEqualTo(2); + // Capture the argument passed to futureCall + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(Integer.class); + verify(callInt, atLeastOnce()).futureCall(argumentCaptor.capture(), any(ApiCallContext.class)); + assertThat(argumentCaptor.getAllValues()).containsExactly(0, 0, 0).inOrder(); } @Test @@ -196,7 +239,7 @@ public void retryOnStatusUnknown() { "temporary redirect", new HttpHeaders()) .build(); - Mockito.when(callInt.futureCall((Integer) Mockito.any(), (ApiCallContext) Mockito.any())) + Mockito.when(callInt.futureCall((Integer) any(), (ApiCallContext) any())) .thenReturn(ApiFutures.immediateFailedFuture(throwable)) .thenReturn(ApiFutures.immediateFailedFuture(throwable)) .thenReturn(ApiFutures.immediateFailedFuture(throwable)) @@ -204,22 +247,32 @@ public void retryOnStatusUnknown() { UnaryCallSettings callSettings = createSettings(retryable, FAST_RETRY_SETTINGS); UnaryCallable callable = - HttpJsonCallableFactory.createUnaryCallable(callInt, callSettings, clientContext); - Truth.assertThat(callable.call(1)).isEqualTo(2); + HttpJsonCallableFactory.createUnaryCallable( + callInt, callSettings, httpJsonCallSettings, clientContext); + assertThat(callable.call(initialRequest)).isEqualTo(2); + // Capture the argument passed to futureCall + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(Integer.class); + verify(callInt, atLeastOnce()).futureCall(argumentCaptor.capture(), any(ApiCallContext.class)); + assertThat(argumentCaptor.getAllValues()).containsExactly(0, 0, 0, 0).inOrder(); } @Test public void retryOnUnexpectedException() { ImmutableSet retryable = ImmutableSet.of(Code.UNKNOWN); Throwable throwable = new RuntimeException("foobar"); - Mockito.when(callInt.futureCall((Integer) Mockito.any(), (ApiCallContext) Mockito.any())) + Mockito.when(callInt.futureCall((Integer) any(), (ApiCallContext) any())) .thenReturn(ApiFutures.immediateFailedFuture(throwable)); UnaryCallSettings callSettings = createSettings(retryable, FAST_RETRY_SETTINGS); UnaryCallable callable = - HttpJsonCallableFactory.createUnaryCallable(callInt, callSettings, clientContext); - ApiException exception = assertThrows(ApiException.class, () -> callable.call(1)); - Truth.assertThat(exception).hasCauseThat().isSameInstanceAs(throwable); + HttpJsonCallableFactory.createUnaryCallable( + callInt, callSettings, httpJsonCallSettings, clientContext); + ApiException exception = assertThrows(ApiException.class, () -> callable.call(initialRequest)); + assertThat(exception).hasCauseThat().isSameInstanceAs(throwable); + // Capture the argument passed to futureCall + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(Integer.class); + verify(callInt, atLeastOnce()).futureCall(argumentCaptor.capture(), any(ApiCallContext.class)); + assertThat(argumentCaptor.getAllValues()).containsExactly(0).inOrder(); } @Test @@ -235,15 +288,20 @@ public void retryNoRecover() { httpResponseException, HttpJsonStatusCode.of(Code.FAILED_PRECONDITION), false); - Mockito.when(callInt.futureCall((Integer) Mockito.any(), (ApiCallContext) Mockito.any())) + Mockito.when(callInt.futureCall((Integer) any(), (ApiCallContext) any())) .thenReturn(ApiFutures.immediateFailedFuture(apiException)) .thenReturn(ApiFutures.immediateFuture(2)); UnaryCallSettings callSettings = createSettings(retryable, FAST_RETRY_SETTINGS); UnaryCallable callable = - HttpJsonCallableFactory.createUnaryCallable(callInt, callSettings, clientContext); - ApiException exception = assertThrows(ApiException.class, () -> callable.call(1)); - Truth.assertThat(exception).isSameInstanceAs(apiException); + HttpJsonCallableFactory.createUnaryCallable( + callInt, callSettings, httpJsonCallSettings, clientContext); + ApiException exception = assertThrows(ApiException.class, () -> callable.call(initialRequest)); + assertThat(exception).isSameInstanceAs(apiException); + // Capture the argument passed to futureCall + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(Integer.class); + verify(callInt, atLeastOnce()).futureCall(argumentCaptor.capture(), any(ApiCallContext.class)); + assertThat(argumentCaptor.getAllValues()).containsExactly(0); } @Test @@ -253,19 +311,24 @@ public void retryKeepFailing() { new HttpResponseException.Builder( HttpStatusCodes.STATUS_CODE_SERVICE_UNAVAILABLE, "Unavailable", new HttpHeaders()) .build(); - Mockito.when(callInt.futureCall((Integer) Mockito.any(), (ApiCallContext) Mockito.any())) + Mockito.when(callInt.futureCall((Integer) any(), (ApiCallContext) any())) .thenReturn(ApiFutures.immediateFailedFuture(throwable)); UnaryCallSettings callSettings = createSettings(retryable, FAST_RETRY_SETTINGS); UnaryCallable callable = - HttpJsonCallableFactory.createUnaryCallable(callInt, callSettings, clientContext); + HttpJsonCallableFactory.createUnaryCallable( + callInt, callSettings, httpJsonCallSettings, clientContext); // Need to advance time inside the call. - ApiFuture future = callable.futureCall(1); + ApiFuture future = callable.futureCall(initialRequest); UncheckedExecutionException exception = assertThrows(UncheckedExecutionException.class, () -> Futures.getUnchecked(future)); - Truth.assertThat(exception).hasCauseThat().isInstanceOf(ApiException.class); - Truth.assertThat(exception).hasCauseThat().hasMessageThat().contains("Unavailable"); + assertThat(exception).hasCauseThat().isInstanceOf(ApiException.class); + assertThat(exception).hasCauseThat().hasMessageThat().contains("Unavailable"); + // Capture the argument passed to futureCall + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(Integer.class); + verify(callInt, atLeastOnce()).futureCall(argumentCaptor.capture(), any(ApiCallContext.class)); + assertThat(argumentCaptor.getValue()).isEqualTo(0); } @Test @@ -289,34 +352,45 @@ public void testKnownStatusCode() { HTTP_CODE_PRECONDITION_FAILED, "precondition failed", new HttpHeaders()) .setMessage(throwableMessage) .build(); - Mockito.when(callInt.futureCall((Integer) Mockito.any(), (ApiCallContext) Mockito.any())) + Mockito.when(callInt.futureCall((Integer) any(), (ApiCallContext) any())) .thenReturn(ApiFutures.immediateFailedFuture(throwable)); UnaryCallSettings callSettings = UnaryCallSettings.newUnaryCallSettingsBuilder() .setRetryableCodes(retryable) .build(); UnaryCallable callable = - HttpJsonCallableFactory.createUnaryCallable(callInt, callSettings, clientContext); + HttpJsonCallableFactory.createUnaryCallable( + callInt, callSettings, httpJsonCallSettings, clientContext); ApiException exception = - assertThrows(FailedPreconditionException.class, () -> callable.call(1)); - Truth.assertThat(exception.getStatusCode().getTransportCode()) + assertThrows(FailedPreconditionException.class, () -> callable.call(initialRequest)); + assertThat(exception.getStatusCode().getTransportCode()) .isEqualTo(HTTP_CODE_PRECONDITION_FAILED); - Truth.assertThat(exception).hasMessageThat().contains("precondition failed"); + assertThat(exception).hasMessageThat().contains("precondition failed"); + // Capture the argument passed to futureCall + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(Integer.class); + verify(callInt, atLeastOnce()).futureCall(argumentCaptor.capture(), any(ApiCallContext.class)); + assertThat(argumentCaptor.getAllValues()).containsExactly(0).inOrder(); } @Test public void testUnknownStatusCode() { ImmutableSet retryable = ImmutableSet.of(); - Mockito.when(callInt.futureCall((Integer) Mockito.any(), (ApiCallContext) Mockito.any())) + Mockito.when(callInt.futureCall((Integer) any(), (ApiCallContext) any())) .thenReturn(ApiFutures.immediateFailedFuture(new RuntimeException("unknown"))); UnaryCallSettings callSettings = UnaryCallSettings.newUnaryCallSettingsBuilder() .setRetryableCodes(retryable) .build(); UnaryCallable callable = - HttpJsonCallableFactory.createUnaryCallable(callInt, callSettings, clientContext); - UnknownException exception = assertThrows(UnknownException.class, () -> callable.call(1)); - Truth.assertThat(exception).hasMessageThat().isEqualTo("java.lang.RuntimeException: unknown"); + HttpJsonCallableFactory.createUnaryCallable( + callInt, callSettings, httpJsonCallSettings, clientContext); + UnknownException exception = + assertThrows(UnknownException.class, () -> callable.call(initialRequest)); + assertThat(exception).hasMessageThat().isEqualTo("java.lang.RuntimeException: unknown"); + // Capture the argument passed to futureCall + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(Integer.class); + verify(callInt, atLeastOnce()).futureCall(argumentCaptor.capture(), any(ApiCallContext.class)); + assertThat(argumentCaptor.getAllValues()).containsExactly(0).inOrder(); } public static UnaryCallSettings createSettings( diff --git a/gax-java/gax/src/main/java/com/google/api/gax/rpc/Callables.java b/gax-java/gax/src/main/java/com/google/api/gax/rpc/Callables.java index 28a76fe721..b1f4b51d6a 100644 --- a/gax-java/gax/src/main/java/com/google/api/gax/rpc/Callables.java +++ b/gax-java/gax/src/main/java/com/google/api/gax/rpc/Callables.java @@ -51,11 +51,53 @@ public class Callables { private Callables() {} + /** + * Create a callable object that represents a Unary API method. Designed for use by generated + * code. + * + * @param innerCallable the callable to issue calls + * @param callSettings {@link UnaryCallSettings} to configure the unary call-related settings + * with. + * @param clientContext {@link ClientContext} to use to connect to the service. + * @return {@link UnaryCallable} callable object. + */ public static UnaryCallable retrying( UnaryCallable innerCallable, UnaryCallSettings callSettings, ClientContext clientContext) { + ScheduledRetryingExecutor retryingExecutor = + getRetryingExecutor(callSettings, clientContext); + return new RetryingCallable<>( + clientContext.getDefaultCallContext(), innerCallable, retryingExecutor); + } + + /** + * Create a callable object that represents a Unary API method that contains a Request Mutator. + * Designed for use by generated code. + * + * @param innerCallable the callable to issue calls + * @param callSettings {@link UnaryCallSettings} to configure the unary call-related settings + * with. + * @param clientContext {@link ClientContext} to use to connect to the service. + * @param requestMutator {@link RequestMutator} to modify the request. Currently only used for + * autopopulated fields. + * @return {@link UnaryCallable} callable object. + */ + public static UnaryCallable retrying( + UnaryCallable innerCallable, + UnaryCallSettings callSettings, + ClientContext clientContext, + RequestMutator requestMutator) { + + ScheduledRetryingExecutor retryingExecutor = + getRetryingExecutor(callSettings, clientContext); + return new RetryingCallable<>( + clientContext.getDefaultCallContext(), innerCallable, retryingExecutor, requestMutator); + } + + private static ScheduledRetryingExecutor getRetryingExecutor( + UnaryCallSettings callSettings, ClientContext clientContext) { UnaryCallSettings settings = callSettings; if (areRetriesDisabled(settings.getRetryableCodes(), settings.getRetrySettings())) { @@ -73,8 +115,7 @@ public static UnaryCallable retrying( new ExponentialRetryAlgorithm(settings.getRetrySettings(), clientContext.getClock())); ScheduledRetryingExecutor retryingExecutor = new ScheduledRetryingExecutor<>(retryAlgorithm, clientContext.getExecutor()); - return new RetryingCallable<>( - clientContext.getDefaultCallContext(), innerCallable, retryingExecutor); + return retryingExecutor; } public static ServerStreamingCallable retrying( diff --git a/gax-java/gax/src/main/java/com/google/api/gax/rpc/RequestMutator.java b/gax-java/gax/src/main/java/com/google/api/gax/rpc/RequestMutator.java new file mode 100644 index 0000000000..d26949d87d --- /dev/null +++ b/gax-java/gax/src/main/java/com/google/api/gax/rpc/RequestMutator.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Google LLC nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +package com.google.api.gax.rpc; + +import com.google.api.core.InternalApi; + +/** + * A request mutator takes a {@code request} message, applies some Function to it, and then returns + * the modified {@code request} message. This is currently only used for autopopulation of the + * request ID. + * + *

Implementations of this interface are expected to be autogenerated. + * + * @param request message type + */ +@InternalApi("For use by transport-specific implementations") +@FunctionalInterface +public interface RequestMutator { + /** + * Applies a Function to {@code request} message + * + * @param request request message + */ + RequestT apply(RequestT request); +} diff --git a/gax-java/gax/src/main/java/com/google/api/gax/rpc/RetryingCallable.java b/gax-java/gax/src/main/java/com/google/api/gax/rpc/RetryingCallable.java index 0a92794a20..e4fe13295a 100644 --- a/gax-java/gax/src/main/java/com/google/api/gax/rpc/RetryingCallable.java +++ b/gax-java/gax/src/main/java/com/google/api/gax/rpc/RetryingCallable.java @@ -43,20 +43,35 @@ class RetryingCallable extends UnaryCallable callable; private final RetryingExecutorWithContext executor; + private final RequestMutator requestMutator; + RetryingCallable( ApiCallContext callContextPrototype, UnaryCallable callable, RetryingExecutorWithContext executor) { + this(callContextPrototype, callable, executor, null); + } + + RetryingCallable( + ApiCallContext callContextPrototype, + UnaryCallable callable, + RetryingExecutorWithContext executor, + RequestMutator requestMutator) { this.callContextPrototype = Preconditions.checkNotNull(callContextPrototype); this.callable = Preconditions.checkNotNull(callable); this.executor = Preconditions.checkNotNull(executor); + this.requestMutator = requestMutator; } @Override public RetryingFuture futureCall(RequestT request, ApiCallContext inputContext) { ApiCallContext context = callContextPrototype.nullToSelf(inputContext); + RequestT modifiedRequest = request; + if (this.requestMutator != null) { + modifiedRequest = requestMutator.apply(request); + } AttemptCallable retryCallable = - new AttemptCallable<>(callable, request, context); + new AttemptCallable<>(callable, modifiedRequest, context); RetryingFuture retryingFuture = executor.createFuture(retryCallable, inputContext); retryCallable.setExternalFuture(retryingFuture); diff --git a/gax-java/gax/src/test/java/com/google/api/gax/rpc/CallableTest.java b/gax-java/gax/src/test/java/com/google/api/gax/rpc/CallableTest.java index 04e025fecb..8d24a19c53 100644 --- a/gax-java/gax/src/test/java/com/google/api/gax/rpc/CallableTest.java +++ b/gax-java/gax/src/test/java/com/google/api/gax/rpc/CallableTest.java @@ -29,17 +29,20 @@ */ package com.google.api.gax.rpc; +import static org.junit.Assert.assertEquals; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.atLeastOnce; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; +import com.google.api.core.ApiFuture; import com.google.api.core.SettableApiFuture; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.testing.FakeCallContext; import org.junit.Rule; import org.junit.Test; +import org.mockito.ArgumentCaptor; import org.mockito.Mock; import org.mockito.Spy; import org.mockito.junit.MockitoJUnit; @@ -78,17 +81,28 @@ public void testNonRetriedCallable() throws Exception { innerResult = SettableApiFuture.create(); when(innerCallable.futureCall(anyString(), any(ApiCallContext.class))).thenReturn(innerResult); Duration timeout = Duration.ofMillis(5L); + String initialRequest = "Is your refrigerator running?"; + String modifiedRequest = "What about now?"; + + RequestMutator requestMutator = (request -> modifiedRequest); UnaryCallSettings callSettings = UnaryCallSettings.newUnaryCallSettingsBuilder().setSimpleTimeoutNoRetries(timeout).build(); UnaryCallable callable = - Callables.retrying(innerCallable, callSettings, clientContext); - innerResult.set("No, my refrigerator is not running!"); + Callables.retrying(innerCallable, callSettings, clientContext, requestMutator); + String expectedResponse = "No, my refrigerator is not running!"; + innerResult.set(expectedResponse); + + ApiFuture futureResponse = callable.futureCall(initialRequest, callContext); - callable.futureCall("Is your refrigerator running?", callContext); + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(String.class); + verify(innerCallable).futureCall(argumentCaptor.capture(), any(ApiCallContext.class)); + String expectedRequest = "What about now?"; + assertEquals(expectedRequest, argumentCaptor.getValue()); verify(callContext, atLeastOnce()).getRetrySettings(); verify(callContext).getTimeout(); verify(callContext).withTimeout(timeout); + assertEquals(expectedResponse, futureResponse.get()); } @Test @@ -96,21 +110,33 @@ public void testNonRetriedCallableWithRetrySettings() throws Exception { innerResult = SettableApiFuture.create(); when(innerCallable.futureCall(anyString(), any(ApiCallContext.class))).thenReturn(innerResult); + String initialRequest = "Is your refrigerator running?"; + String modifiedRequest = "What about now?"; + RequestMutator requestMutator = (request -> modifiedRequest); + UnaryCallSettings callSettings = UnaryCallSettings.newUnaryCallSettingsBuilder() .setSimpleTimeoutNoRetries(Duration.ofMillis(10L)) .build(); UnaryCallable callable = - Callables.retrying(innerCallable, callSettings, clientContext); - innerResult.set("No, my refrigerator is not running!"); + Callables.retrying(innerCallable, callSettings, clientContext, requestMutator); + String expectedResponse = "No, my refrigerator is not running!"; + innerResult.set(expectedResponse); Duration timeout = retrySettings.getInitialRpcTimeout(); - callable.futureCall("Is your refrigerator running?", callContextWithRetrySettings); + ApiFuture futureResponse = + callable.futureCall(initialRequest, callContextWithRetrySettings); + + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(String.class); + verify(innerCallable).futureCall(argumentCaptor.capture(), any(ApiCallContext.class)); + String expectedRequest = "What about now?"; + assertEquals(expectedRequest, argumentCaptor.getValue()); verify(callContextWithRetrySettings, atLeastOnce()).getRetrySettings(); verify(callContextWithRetrySettings).getTimeout(); verify(callContextWithRetrySettings).withTimeout(timeout); + assertEquals(expectedResponse, futureResponse.get()); } @Test diff --git a/gax-java/gax/src/test/java/com/google/api/gax/rpc/RetryingCallableTest.java b/gax-java/gax/src/test/java/com/google/api/gax/rpc/RetryingCallableTest.java new file mode 100644 index 0000000000..0411892979 --- /dev/null +++ b/gax-java/gax/src/test/java/com/google/api/gax/rpc/RetryingCallableTest.java @@ -0,0 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Google LLC nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +package com.google.api.gax.rpc; + +import static org.mockito.Mockito.when; + +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.RetryingExecutorWithContext; +import com.google.api.gax.retrying.RetryingFuture; +import com.google.api.gax.retrying.TimedAttemptSettings; +import com.google.api.gax.rpc.testing.FakeCallContext; +import java.util.concurrent.Callable; +import org.junit.Test; +import org.mockito.Mockito; +import org.threeten.bp.Duration; +import org.threeten.bp.temporal.ChronoUnit; + +public class RetryingCallableTest { + @Test + public void futureCall() { + FakeCallContext fakeCallContext = FakeCallContext.createDefault(); + UnaryCallable innerCallable = Mockito.mock(UnaryCallable.class); + RetryingExecutorWithContext executor = Mockito.mock(RetryingExecutorWithContext.class); + RetryingFuture retryingFuture = Mockito.mock(RetryingFuture.class); + TimedAttemptSettings fakeAttemptSettings = + TimedAttemptSettings.newBuilder() + .setRpcTimeout(Duration.of(1, ChronoUnit.SECONDS)) + .setAttemptCount(3) + .setGlobalSettings(RetrySettings.newBuilder().build()) + .setRetryDelay(Duration.of(1, ChronoUnit.SECONDS)) + .setRandomizedRetryDelay(Duration.of(1, ChronoUnit.SECONDS)) + .setFirstAttemptStartTimeNanos(5) + .build(); + + when(retryingFuture.getAttemptSettings()).thenReturn(fakeAttemptSettings); + when(executor.createFuture(Mockito.any(Callable.class), Mockito.eq(fakeCallContext))) + .thenReturn(retryingFuture); + Integer modifiedRequest = 5; + RequestMutator requestMutator = request -> modifiedRequest; + RetryingCallable retryingCallable = + new RetryingCallable<>(fakeCallContext, innerCallable, executor, requestMutator); + + retryingCallable.futureCall(1, fakeCallContext); + Mockito.verify(innerCallable) + .futureCall(Mockito.eq(modifiedRequest), Mockito.any(ApiCallContext.class)); + } +} diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java index ebdcb34c32..217a66b80c 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java @@ -37,6 +37,7 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.common.base.Strings; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -62,6 +63,7 @@ import io.grpc.protobuf.ProtoUtils; import java.io.IOException; import java.util.Map; +import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -305,6 +307,14 @@ protected GrpcEchoStub( builder.add(request.getOtherHeader(), "qux", ECHO_7_PATH_TEMPLATE); return builder.build(); }) + .setRequestMutator( + request -> { + EchoRequest.Builder requestBuilder = request.toBuilder(); + if (Strings.isNullOrEmpty(request.getRequestId())) { + requestBuilder.setRequestId(UUID.randomUUID().toString()); + } + return requestBuilder.build(); + }) .build(); GrpcCallSettings echoErrorDetailsTransportSettings = diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java index 1116e8a9b2..80d9439ec9 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java @@ -46,6 +46,7 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.common.base.Strings; import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; @@ -73,6 +74,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -660,6 +662,14 @@ protected HttpJsonEchoStub( builder.add(request.getOtherHeader(), "qux", ECHO_7_PATH_TEMPLATE); return builder.build(); }) + .setRequestMutator( + request -> { + EchoRequest.Builder requestBuilder = request.toBuilder(); + if (Strings.isNullOrEmpty(request.getRequestId())) { + requestBuilder.setRequestId(UUID.randomUUID().toString()); + } + return requestBuilder.build(); + }) .build(); HttpJsonCallSettings echoErrorDetailsTransportSettings = diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITAutoPopulatedFields.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITAutoPopulatedFields.java new file mode 100644 index 0000000000..d448a2af8b --- /dev/null +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITAutoPopulatedFields.java @@ -0,0 +1,373 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.showcase.v1beta1.it; + +import static org.junit.Assert.assertThrows; + +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.ForwardingHttpJsonClientCall; +import com.google.api.gax.httpjson.HttpJsonCallOptions; +import com.google.api.gax.httpjson.HttpJsonChannel; +import com.google.api.gax.httpjson.HttpJsonClientCall; +import com.google.api.gax.httpjson.HttpJsonClientInterceptor; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.RetryingFuture; +import com.google.api.gax.rpc.StatusCode.Code; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableSet; +import com.google.common.truth.Truth; +import com.google.rpc.Status; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoRequest; +import com.google.showcase.v1beta1.EchoResponse; +import com.google.showcase.v1beta1.it.util.TestClientInitializer; +import io.grpc.CallOptions; +import io.grpc.Channel; +import io.grpc.ClientCall; +import io.grpc.ClientInterceptor; +import io.grpc.ForwardingClientCall; +import io.grpc.MethodDescriptor; +import java.util.ArrayList; +import java.util.List; +import java.util.Set; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.function.Consumer; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.threeten.bp.Duration; + +public class ITAutoPopulatedFields { + + private static class HttpJsonInterceptor implements HttpJsonClientInterceptor { + private Consumer onRequestIntercepted; + + private HttpJsonInterceptor() {} + + private void setOnRequestIntercepted(Consumer onRequestIntercepted) { + this.onRequestIntercepted = onRequestIntercepted; + } + + @Override + public HttpJsonClientCall interceptCall( + ApiMethodDescriptor method, + HttpJsonCallOptions callOptions, + HttpJsonChannel next) { + HttpJsonClientCall call = next.newCall(method, callOptions); + + return new ForwardingHttpJsonClientCall.SimpleForwardingHttpJsonClientCall( + call) { + @Override + public void sendMessage(ReqT message) { + // Capture the request message + if (onRequestIntercepted != null) { + onRequestIntercepted.accept(message); + } + super.sendMessage(message); + } + }; + } + } + + // Implement a request interceptor to retrieve the request ID being sent on the request. + private static class GRPCInterceptor implements ClientInterceptor { + private Consumer onRequestIntercepted; + + private GRPCInterceptor() {} + + private void setOnRequestIntercepted(Consumer onRequestIntercepted) { + this.onRequestIntercepted = onRequestIntercepted; + } + + @Override + public ClientCall interceptCall( + MethodDescriptor method, CallOptions callOptions, Channel next) { + + return new ForwardingClientCall.SimpleForwardingClientCall( + next.newCall(method, callOptions)) { + @Override + public void sendMessage(ReqT message) { + // Capture the request message + if (onRequestIntercepted != null) { + onRequestIntercepted.accept(message); + } + super.sendMessage(message); + } + }; + } + } + + private GRPCInterceptor grpcRequestInterceptor; + private HttpJsonInterceptor httpJsonInterceptor; + private EchoClient grpcClientWithoutRetries; + private EchoClient grpcClientWithRetries; + + private EchoClient httpJsonClient; + private EchoClient httpJsonClientWithRetries; + + @Before + public void createClients() throws Exception { + RetrySettings defaultRetrySettings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(5000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(5000L)) + .setTotalTimeout(Duration.ofMillis(5000L)) + // Cap retries at 5 + .setMaxAttempts(5) + .build(); + + // Adding `Code.INTERNAL` is necessary because for httpJson requests, the httpJson status code + // is mapped here: + // https://github.com/googleapis/sdk-platform-java/blob/acdde47445916dd306ce8b91489fab45c9c2ef50/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonStatusCode.java#L96-L133 + // Therefore, just setting the error code to `Code.UNKNOWN` for httpJson will get translated + // instead to `Code.INTERNAL`. + Set retryableCodes = ImmutableSet.of(Code.UNKNOWN, Code.INTERNAL); + + // Create gRPC Interceptor and Client + grpcRequestInterceptor = new ITAutoPopulatedFields.GRPCInterceptor(); + grpcClientWithoutRetries = + TestClientInitializer.createGrpcEchoClient(ImmutableList.of(grpcRequestInterceptor)); + grpcClientWithRetries = + TestClientInitializer.createGrpcEchoClientWithRetrySettings( + defaultRetrySettings, retryableCodes, ImmutableList.of(grpcRequestInterceptor)); + + // Create HttpJson Interceptor and Client + httpJsonInterceptor = new ITAutoPopulatedFields.HttpJsonInterceptor(); + httpJsonClient = + TestClientInitializer.createHttpJsonEchoClient(ImmutableList.of(httpJsonInterceptor)); + httpJsonClientWithRetries = + TestClientInitializer.createHttpJsonEchoClientWithRetrySettings( + defaultRetrySettings, retryableCodes, ImmutableList.of(httpJsonInterceptor)); + } + + @After + public void destroyClient() { + grpcClientWithoutRetries.close(); + grpcClientWithRetries.close(); + httpJsonClient.close(); + } + + @Test + public void testGrpc_autoPopulateRequestIdWhenAttemptedOnceSuccessfully() { + List capturedRequestIds = new ArrayList<>(); + grpcRequestInterceptor.setOnRequestIntercepted( + request -> { + if (request instanceof EchoRequest) { + EchoRequest echoRequest = (EchoRequest) request; + capturedRequestIds.add(echoRequest.getRequestId()); + } + }); + grpcClientWithoutRetries.echo(EchoRequest.newBuilder().build()); + Truth.assertThat(capturedRequestIds).isNotEmpty(); + // Autopopulation of UUID is currently only configured for format UUID4. + Integer UUIDVersion = 4; + Truth.assertThat(UUID.fromString(capturedRequestIds.get(0)).version()).isEqualTo(UUIDVersion); + } + + @Test + public void testGrpc_shouldNotAutoPopulateRequestIdIfSetInRequest() { + List capturedRequestIds = new ArrayList<>(); + grpcRequestInterceptor.setOnRequestIntercepted( + request -> { + if (request instanceof EchoRequest) { + EchoRequest echoRequest = (EchoRequest) request; + capturedRequestIds.add(echoRequest.getRequestId()); + } + }); + String UUIDsent = UUID.randomUUID().toString(); + grpcClientWithoutRetries.echo(EchoRequest.newBuilder().setRequestId(UUIDsent).build()); + Truth.assertThat(capturedRequestIds).isNotEmpty(); + Truth.assertThat(capturedRequestIds).contains(UUIDsent); + } + + @Test + public void testHttpJson_autoPopulateRequestIdWhenAttemptedOnceSuccessfully() { + List capturedRequestIds = new ArrayList<>(); + httpJsonInterceptor.setOnRequestIntercepted( + request -> { + if (request instanceof EchoRequest) { + EchoRequest echoRequest = (EchoRequest) request; + capturedRequestIds.add(echoRequest.getRequestId()); + } + }); + httpJsonClient.echo(EchoRequest.newBuilder().build()); + Truth.assertThat(capturedRequestIds).isNotEmpty(); + // Autopopulation of UUID is currently only configured for format UUID4. + Integer UUIDVersion = 4; + Truth.assertThat(UUID.fromString(capturedRequestIds.get(0)).version()).isEqualTo(UUIDVersion); + } + + @Test + public void testHttpJson_shouldNotAutoPopulateRequestIdIfSetInRequest() { + String UUIDsent = UUID.randomUUID().toString(); + List capturedRequestIds = new ArrayList<>(); + httpJsonInterceptor.setOnRequestIntercepted( + request -> { + if (request instanceof EchoRequest) { + EchoRequest echoRequest = (EchoRequest) request; + capturedRequestIds.add(echoRequest.getRequestId()); + } + }); + httpJsonClient.echo(EchoRequest.newBuilder().setRequestId(UUIDsent).build()); + Truth.assertThat(capturedRequestIds).isNotEmpty(); + Truth.assertThat(capturedRequestIds).contains(UUIDsent); + } + + @Test + public void testGRPC_setsSameRequestIdIfSetInRequestWhenRequestsAreRetried() throws Exception { + List capturedRequestIds = new ArrayList<>(); + grpcRequestInterceptor.setOnRequestIntercepted( + request -> { + if (request instanceof EchoRequest) { + EchoRequest echoRequest = (EchoRequest) request; + capturedRequestIds.add(echoRequest.getRequestId()); + } + }); + String UUIDsent = UUID.randomUUID().toString(); + EchoRequest requestSent = + EchoRequest.newBuilder() + .setRequestId(UUIDsent) + .setError(Status.newBuilder().setCode(Code.UNKNOWN.ordinal()).build()) + .build(); + + try { + RetryingFuture retryingFuture = + (RetryingFuture) + grpcClientWithRetries.echoCallable().futureCall(requestSent); + assertThrows(ExecutionException.class, () -> retryingFuture.get(10, TimeUnit.SECONDS)); + // assert that the number of request IDs is equal to the max attempt + Truth.assertThat(capturedRequestIds).hasSize(5); + // assert that each request ID sent is the same as the UUIDSent + Truth.assertThat(capturedRequestIds) + .containsExactly(UUIDsent, UUIDsent, UUIDsent, UUIDsent, UUIDsent); + } finally { + grpcClientWithRetries.close(); + grpcClientWithRetries.awaitTermination( + TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + } + } + + @Test + public void testGRPC_setsSameAutoPopulatedRequestIdWhenRequestsAreRetried() throws Exception { + List capturedRequestIds = new ArrayList<>(); + grpcRequestInterceptor.setOnRequestIntercepted( + request -> { + if (request instanceof EchoRequest) { + EchoRequest echoRequest = (EchoRequest) request; + capturedRequestIds.add(echoRequest.getRequestId()); + } + }); + + EchoRequest requestSent = + EchoRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.UNKNOWN.ordinal()).build()) + .build(); + + try { + RetryingFuture retryingFuture = + (RetryingFuture) + grpcClientWithRetries.echoCallable().futureCall(requestSent); + assertThrows(ExecutionException.class, () -> retryingFuture.get(10, TimeUnit.SECONDS)); + // assert that the number of request IDs is equal to the max attempt + Truth.assertThat(capturedRequestIds).hasSize(5); + // assert that each request ID sent is the same + Truth.assertThat(capturedRequestIds) + .containsExactly( + capturedRequestIds.get(0), + capturedRequestIds.get(0), + capturedRequestIds.get(0), + capturedRequestIds.get(0), + capturedRequestIds.get(0)); + } finally { + grpcClientWithRetries.close(); + grpcClientWithRetries.awaitTermination( + TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + } + } + + @Test + public void testHttpJson_setsSameRequestIdIfSetInRequestWhenRequestsAreRetried() + throws Exception { + List capturedRequestIds = new ArrayList<>(); + httpJsonInterceptor.setOnRequestIntercepted( + request -> { + if (request instanceof EchoRequest) { + EchoRequest echoRequest = (EchoRequest) request; + capturedRequestIds.add(echoRequest.getRequestId()); + } + }); + String UUIDsent = UUID.randomUUID().toString(); + EchoRequest requestSent = + EchoRequest.newBuilder() + .setRequestId(UUIDsent) + .setError(Status.newBuilder().setCode(Code.UNKNOWN.getHttpStatusCode()).build()) + .build(); + try { + RetryingFuture retryingFuture = + (RetryingFuture) + httpJsonClientWithRetries.echoCallable().futureCall(requestSent); + assertThrows(ExecutionException.class, () -> retryingFuture.get(10, TimeUnit.SECONDS)); + // assert that the number of request IDs is equal to the max attempt + Truth.assertThat(capturedRequestIds).hasSize(5); + // assert that each request ID sent is the same as the UUIDSent + Truth.assertThat(capturedRequestIds) + .containsExactly(UUIDsent, UUIDsent, UUIDsent, UUIDsent, UUIDsent); + } finally { + httpJsonClientWithRetries.close(); + httpJsonClientWithRetries.awaitTermination( + TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + } + } + + @Test + public void testHttpJson_setsSameAutoPopulatedRequestIdWhenRequestsAreRetried() throws Exception { + List capturedRequestIds = new ArrayList<>(); + httpJsonInterceptor.setOnRequestIntercepted( + request -> { + if (request instanceof EchoRequest) { + EchoRequest echoRequest = (EchoRequest) request; + capturedRequestIds.add(echoRequest.getRequestId()); + } + }); + EchoRequest requestSent = + EchoRequest.newBuilder() + .setError(Status.newBuilder().setCode(Code.UNKNOWN.getHttpStatusCode()).build()) + .build(); + try { + RetryingFuture retryingFuture = + (RetryingFuture) + httpJsonClientWithRetries.echoCallable().futureCall(requestSent); + assertThrows(ExecutionException.class, () -> retryingFuture.get(10, TimeUnit.SECONDS)); + // assert that the number of request IDs is equal to the max attempt + Truth.assertThat(capturedRequestIds).hasSize(5); + // assert that each request ID sent is the same + Truth.assertThat(capturedRequestIds) + .containsExactly( + capturedRequestIds.get(0), + capturedRequestIds.get(0), + capturedRequestIds.get(0), + capturedRequestIds.get(0), + capturedRequestIds.get(0)); + } finally { + httpJsonClientWithRetries.close(); + httpJsonClientWithRetries.awaitTermination( + TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + } + } +} diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java index 0d46eb0ab2..ff3fb0c82d 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/TestClientInitializer.java @@ -62,6 +62,31 @@ public static EchoClient createGrpcEchoClient(List intercepto return EchoClient.create(grpcEchoSettings); } + public static EchoClient createGrpcEchoClientWithRetrySettings( + RetrySettings retrySettings, + Set retryableCodes, + List interceptorList) + throws Exception { + EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newBuilder(); + grpcEchoSettingsBuilder + .echoSettings() + .setRetrySettings(retrySettings) + .setRetryableCodes(retryableCodes); + EchoSettings grpcEchoSettings = EchoSettings.create(grpcEchoSettingsBuilder.build()); + grpcEchoSettings = + grpcEchoSettings + .toBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTransportChannelProvider( + EchoSettings.defaultGrpcTransportProviderBuilder() + .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) + .setInterceptorProvider(() -> interceptorList) + .build()) + .setEndpoint("localhost:7469") + .build(); + return EchoClient.create(grpcEchoSettings); + } + public static EchoClient createHttpJsonEchoClient() throws Exception { return createHttpJsonEchoClient(ImmutableList.of()); } @@ -82,6 +107,32 @@ public static EchoClient createHttpJsonEchoClient(List retryableCodes, + List interceptorList) + throws Exception { + EchoStubSettings.Builder httpJsonEchoSettingsBuilder = EchoStubSettings.newHttpJsonBuilder(); + httpJsonEchoSettingsBuilder + .echoSettings() + .setRetrySettings(retrySettings) + .setRetryableCodes(retryableCodes); + EchoSettings httpJsonEchoSettings = EchoSettings.create(httpJsonEchoSettingsBuilder.build()); + httpJsonEchoSettings = + httpJsonEchoSettings + .toBuilder() + .setCredentialsProvider(NoCredentialsProvider.create()) + .setTransportChannelProvider( + EchoSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport( + new NetHttpTransport.Builder().doNotValidateCertificate().build()) + .setInterceptorProvider(() -> interceptorList) + .setEndpoint("http://localhost:7469") + .build()) + .build(); + return EchoClient.create(httpJsonEchoSettings); + } + public static EchoClient createGrpcEchoClientCustomBlockSettings( RetrySettings retrySettings, Set retryableCodes) throws Exception { EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newBuilder(); From 8f28ffff2abbf60d50e19af4b0e89c5e10111815 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 31 Jan 2024 19:11:31 -0500 Subject: [PATCH 36/75] chore(main): release 2.34.0 (#2417) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .cloudbuild/cloudbuild-test-a.yaml | 2 +- .cloudbuild/cloudbuild-test-b.yaml | 2 +- .cloudbuild/cloudbuild.yaml | 2 +- .release-please-manifest.json | 2 +- CHANGELOG.md | 16 ++++++++++ WORKSPACE | 2 +- api-common-java/pom.xml | 4 +-- coverage-report/pom.xml | 8 ++--- gapic-generator-java-bom/pom.xml | 26 +++++++-------- gapic-generator-java-pom-parent/pom.xml | 2 +- gapic-generator-java/pom.xml | 6 ++-- gax-java/README.md | 12 +++---- gax-java/dependencies.properties | 8 ++--- gax-java/gax-bom/pom.xml | 20 ++++++------ gax-java/gax-grpc/pom.xml | 4 +-- gax-java/gax-httpjson/pom.xml | 4 +-- gax-java/gax/pom.xml | 4 +-- gax-java/pom.xml | 14 ++++---- .../grpc-google-common-protos/pom.xml | 4 +-- java-common-protos/pom.xml | 10 +++--- .../proto-google-common-protos/pom.xml | 4 +-- java-core/google-cloud-core-bom/pom.xml | 10 +++--- java-core/google-cloud-core-grpc/pom.xml | 4 +-- java-core/google-cloud-core-http/pom.xml | 4 +-- java-core/google-cloud-core/pom.xml | 4 +-- java-core/pom.xml | 6 ++-- java-iam/grpc-google-iam-v1/pom.xml | 4 +-- java-iam/grpc-google-iam-v2/pom.xml | 4 +-- java-iam/grpc-google-iam-v2beta/pom.xml | 4 +-- java-iam/pom.xml | 22 ++++++------- java-iam/proto-google-iam-v1/pom.xml | 4 +-- java-iam/proto-google-iam-v2/pom.xml | 4 +-- java-iam/proto-google-iam-v2beta/pom.xml | 4 +-- java-shared-dependencies/README.md | 2 +- .../dependency-convergence-check/pom.xml | 2 +- .../first-party-dependencies/pom.xml | 10 +++--- java-shared-dependencies/pom.xml | 8 ++--- .../third-party-dependencies/pom.xml | 2 +- .../upper-bound-check/pom.xml | 4 +-- sdk-platform-java-config/pom.xml | 4 +-- showcase/pom.xml | 2 +- versions.txt | 32 +++++++++---------- 42 files changed, 156 insertions(+), 140 deletions(-) diff --git a/.cloudbuild/cloudbuild-test-a.yaml b/.cloudbuild/cloudbuild-test-a.yaml index ce86b57f64..5da2f41078 100644 --- a/.cloudbuild/cloudbuild-test-a.yaml +++ b/.cloudbuild/cloudbuild-test-a.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.23.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.24.0' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.7.1' steps: diff --git a/.cloudbuild/cloudbuild-test-b.yaml b/.cloudbuild/cloudbuild-test-b.yaml index 2962473493..5fa0b16766 100644 --- a/.cloudbuild/cloudbuild-test-b.yaml +++ b/.cloudbuild/cloudbuild-test-b.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.23.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.24.0' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.7.1' steps: diff --git a/.cloudbuild/cloudbuild.yaml b/.cloudbuild/cloudbuild.yaml index bdb68a394e..ae3d152d9f 100644 --- a/.cloudbuild/cloudbuild.yaml +++ b/.cloudbuild/cloudbuild.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.23.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.24.0' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.7.1' steps: # GraalVM A build diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7ef8288ed5..7a1c4674e4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.33.0" + ".": "2.34.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 53c1ed7304..96c80a2b00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## [2.34.0](https://github.com/googleapis/sdk-platform-java/compare/v2.33.0...v2.34.0) (2024-01-31) + + +### Features + +* autopopulate fields in the request ([#2353](https://github.com/googleapis/sdk-platform-java/issues/2353)) ([b28235a](https://github.com/googleapis/sdk-platform-java/commit/b28235ab20fd174deddafc0426b8d20352af6e85)) +* enable generation with postprocessing of multiple service versions ([#2342](https://github.com/googleapis/sdk-platform-java/issues/2342)) ([363e35e](https://github.com/googleapis/sdk-platform-java/commit/363e35e46e41c88b810e4b0672906f73cb7c38b6)) +* MetricsTracer implementation ([#2421](https://github.com/googleapis/sdk-platform-java/issues/2421)) ([5c291e8](https://github.com/googleapis/sdk-platform-java/commit/5c291e8786b8e976979ec2e26b13f0327333bb02)) +* move new client script ([#2333](https://github.com/googleapis/sdk-platform-java/issues/2333)) ([acdde47](https://github.com/googleapis/sdk-platform-java/commit/acdde47445916dd306ce8b91489fab45c9c2ef50)) + + +### Bug Fixes + +* Endpoint resolution uses user set endpoint from ClientSettings ([#2429](https://github.com/googleapis/sdk-platform-java/issues/2429)) ([46b0a85](https://github.com/googleapis/sdk-platform-java/commit/46b0a857eaa4484c5f1ebe1170338fc90a994375)) +* Move direct path misconfiguration log to before creating the first channel ([#2430](https://github.com/googleapis/sdk-platform-java/issues/2430)) ([9916540](https://github.com/googleapis/sdk-platform-java/commit/99165403902ff91ecb0b14b858333855e7a10c60)) + ## [2.33.0](https://github.com/googleapis/sdk-platform-java/compare/v2.32.0...v2.33.0) (2024-01-24) diff --git a/WORKSPACE b/WORKSPACE index 9587d18a8e..2a36da16fd 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -60,7 +60,7 @@ maven_install( repositories = ["https://repo.maven.apache.org/maven2/"], ) -_gapic_generator_java_version = "2.33.1-SNAPSHOT" # {x-version-update:gapic-generator-java:current} +_gapic_generator_java_version = "2.34.0" # {x-version-update:gapic-generator-java:current} maven_install( artifacts = [ diff --git a/api-common-java/pom.xml b/api-common-java/pom.xml index 1e0aa6ea2e..634ce87ad4 100644 --- a/api-common-java/pom.xml +++ b/api-common-java/pom.xml @@ -5,14 +5,14 @@ com.google.api api-common jar - 2.24.1-SNAPSHOT + 2.25.0 API Common Common utilities for Google APIs in Java com.google.api gapic-generator-java-pom-parent - 2.33.1-SNAPSHOT + 2.34.0 ../gapic-generator-java-pom-parent diff --git a/coverage-report/pom.xml b/coverage-report/pom.xml index 1a329e354a..39fa549992 100644 --- a/coverage-report/pom.xml +++ b/coverage-report/pom.xml @@ -31,22 +31,22 @@ com.google.api gax - 2.41.1-SNAPSHOT + 2.42.0 com.google.api gax-grpc - 2.41.1-SNAPSHOT + 2.42.0 com.google.api gax-httpjson - 2.41.1-SNAPSHOT + 2.42.0 com.google.api api-common - 2.24.1-SNAPSHOT + 2.25.0 diff --git a/gapic-generator-java-bom/pom.xml b/gapic-generator-java-bom/pom.xml index f803972c4f..6a7cb04b1b 100644 --- a/gapic-generator-java-bom/pom.xml +++ b/gapic-generator-java-bom/pom.xml @@ -4,7 +4,7 @@ com.google.api gapic-generator-java-bom pom - 2.33.1-SNAPSHOT + 2.34.0 GAPIC Generator Java BOM BOM for the libraries in gapic-generator-java repository. Users should not @@ -15,7 +15,7 @@ com.google.api gapic-generator-java-pom-parent - 2.33.1-SNAPSHOT + 2.34.0 ../gapic-generator-java-pom-parent @@ -75,61 +75,61 @@ com.google.api api-common - 2.24.1-SNAPSHOT + 2.25.0 com.google.api gax-bom - 2.41.1-SNAPSHOT + 2.42.0 pom import com.google.api gapic-generator-java - 2.33.1-SNAPSHOT + 2.34.0 com.google.api.grpc grpc-google-common-protos - 2.32.1-SNAPSHOT + 2.33.0 com.google.api.grpc proto-google-common-protos - 2.32.1-SNAPSHOT + 2.33.0 com.google.api.grpc proto-google-iam-v1 - 1.27.1-SNAPSHOT + 1.28.0 com.google.api.grpc proto-google-iam-v2 - 1.27.1-SNAPSHOT + 1.28.0 com.google.api.grpc proto-google-iam-v2beta - 1.27.1-SNAPSHOT + 1.28.0 com.google.api.grpc grpc-google-iam-v1 - 1.27.1-SNAPSHOT + 1.28.0 com.google.api.grpc grpc-google-iam-v2 - 1.27.1-SNAPSHOT + 1.28.0 com.google.api.grpc grpc-google-iam-v2beta - 1.27.1-SNAPSHOT + 1.28.0 diff --git a/gapic-generator-java-pom-parent/pom.xml b/gapic-generator-java-pom-parent/pom.xml index 98607a685e..9bf02cdf3c 100644 --- a/gapic-generator-java-pom-parent/pom.xml +++ b/gapic-generator-java-pom-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.api gapic-generator-java-pom-parent - 2.33.1-SNAPSHOT + 2.34.0 pom GAPIC Generator Java POM Parent https://github.com/googleapis/sdk-platform-java diff --git a/gapic-generator-java/pom.xml b/gapic-generator-java/pom.xml index 74bc39c81e..b0016c80c8 100644 --- a/gapic-generator-java/pom.xml +++ b/gapic-generator-java/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.google.api gapic-generator-java - 2.33.1-SNAPSHOT + 2.34.0 GAPIC Generator Java GAPIC generator Java @@ -22,7 +22,7 @@ com.google.api gapic-generator-java-pom-parent - 2.33.1-SNAPSHOT + 2.34.0 ../gapic-generator-java-pom-parent @@ -31,7 +31,7 @@ com.google.api gapic-generator-java-bom - 2.33.1-SNAPSHOT + 2.34.0 pom import diff --git a/gax-java/README.md b/gax-java/README.md index cb8d3bb116..88df3f9977 100644 --- a/gax-java/README.md +++ b/gax-java/README.md @@ -34,27 +34,27 @@ If you are using Maven, add this to your pom.xml file com.google.api gax - 2.41.0 + 2.42.0 com.google.api gax-grpc - 2.41.0 + 2.42.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.api:gax:2.41.0', - 'com.google.api:gax-grpc:2.41.0' +compile 'com.google.api:gax:2.42.0', + 'com.google.api:gax-grpc:2.42.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.api" % "gax" % "2.41.0" -libraryDependencies += "com.google.api" % "gax-grpc" % "2.41.0" +libraryDependencies += "com.google.api" % "gax" % "2.42.0" +libraryDependencies += "com.google.api" % "gax-grpc" % "2.42.0" ``` [//]: # ({x-version-update-end}) diff --git a/gax-java/dependencies.properties b/gax-java/dependencies.properties index 46145b1551..01787402a9 100644 --- a/gax-java/dependencies.properties +++ b/gax-java/dependencies.properties @@ -8,16 +8,16 @@ # Versions of oneself # {x-version-update-start:gax:current} -version.gax=2.41.1-SNAPSHOT +version.gax=2.42.0 # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_grpc=2.41.1-SNAPSHOT +version.gax_grpc=2.42.0 # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_bom=2.41.1-SNAPSHOT +version.gax_bom=2.42.0 # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_httpjson=2.41.1-SNAPSHOT +version.gax_httpjson=2.42.0 # {x-version-update-end} # Versions for dependencies which actual artifacts differ between Bazel and Gradle. diff --git a/gax-java/gax-bom/pom.xml b/gax-java/gax-bom/pom.xml index 0f9c05eaa2..b1ff32cca5 100644 --- a/gax-java/gax-bom/pom.xml +++ b/gax-java/gax-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.api gax-bom - 2.41.1-SNAPSHOT + 2.42.0 pom GAX (Google Api eXtensions) for Java (BOM) Google Api eXtensions for Java (BOM) @@ -43,55 +43,55 @@ com.google.api gax - 2.41.1-SNAPSHOT + 2.42.0 com.google.api gax - 2.41.1-SNAPSHOT + 2.42.0 test-jar testlib com.google.api gax - 2.41.1-SNAPSHOT + 2.42.0 testlib com.google.api gax-grpc - 2.41.1-SNAPSHOT + 2.42.0 com.google.api gax-grpc - 2.41.1-SNAPSHOT + 2.42.0 test-jar testlib com.google.api gax-grpc - 2.41.1-SNAPSHOT + 2.42.0 testlib com.google.api gax-httpjson - 2.41.1-SNAPSHOT + 2.42.0 com.google.api gax-httpjson - 2.41.1-SNAPSHOT + 2.42.0 test-jar testlib com.google.api gax-httpjson - 2.41.1-SNAPSHOT + 2.42.0 testlib diff --git a/gax-java/gax-grpc/pom.xml b/gax-java/gax-grpc/pom.xml index 655bed36bd..cad83c87cd 100644 --- a/gax-java/gax-grpc/pom.xml +++ b/gax-java/gax-grpc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax-grpc - 2.41.1-SNAPSHOT + 2.42.0 jar GAX (Google Api eXtensions) for Java (gRPC) Google Api eXtensions for Java (gRPC) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.41.1-SNAPSHOT + 2.42.0 diff --git a/gax-java/gax-httpjson/pom.xml b/gax-java/gax-httpjson/pom.xml index 28ed2c25c8..91ba2be7dc 100644 --- a/gax-java/gax-httpjson/pom.xml +++ b/gax-java/gax-httpjson/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax-httpjson - 2.41.1-SNAPSHOT + 2.42.0 jar GAX (Google Api eXtensions) for Java (HTTP JSON) Google Api eXtensions for Java (HTTP JSON) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.41.1-SNAPSHOT + 2.42.0 diff --git a/gax-java/gax/pom.xml b/gax-java/gax/pom.xml index 16dcc32233..b0fcd10bc8 100644 --- a/gax-java/gax/pom.xml +++ b/gax-java/gax/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax - 2.41.1-SNAPSHOT + 2.42.0 jar GAX (Google Api eXtensions) for Java (Core) Google Api eXtensions for Java (Core) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.41.1-SNAPSHOT + 2.42.0 diff --git a/gax-java/pom.xml b/gax-java/pom.xml index 0a0b0f75fd..a9233ba1bd 100644 --- a/gax-java/pom.xml +++ b/gax-java/pom.xml @@ -4,14 +4,14 @@ com.google.api gax-parent pom - 2.41.1-SNAPSHOT + 2.42.0 GAX (Google Api eXtensions) for Java (Parent) Google Api eXtensions for Java (Parent) com.google.api gapic-generator-java-pom-parent - 2.33.1-SNAPSHOT + 2.34.0 ../gapic-generator-java-pom-parent @@ -50,7 +50,7 @@ com.google.api api-common - 2.24.1-SNAPSHOT + 2.25.0 com.google.auth @@ -108,24 +108,24 @@ com.google.api gax - 2.41.1-SNAPSHOT + 2.42.0 com.google.api gax - 2.41.1-SNAPSHOT + 2.42.0 test-jar testlib com.google.api.grpc proto-google-common-protos - 2.32.1-SNAPSHOT + 2.33.0 com.google.api.grpc grpc-google-common-protos - 2.32.1-SNAPSHOT + 2.33.0 io.grpc diff --git a/java-common-protos/grpc-google-common-protos/pom.xml b/java-common-protos/grpc-google-common-protos/pom.xml index a139d17528..ed1026f0ab 100644 --- a/java-common-protos/grpc-google-common-protos/pom.xml +++ b/java-common-protos/grpc-google-common-protos/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-common-protos - 2.32.1-SNAPSHOT + 2.33.0 grpc-google-common-protos GRPC library for grpc-google-common-protos com.google.api.grpc google-common-protos-parent - 2.32.1-SNAPSHOT + 2.33.0 diff --git a/java-common-protos/pom.xml b/java-common-protos/pom.xml index 148b528c50..8d28d4fb6c 100644 --- a/java-common-protos/pom.xml +++ b/java-common-protos/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-common-protos-parent pom - 2.32.1-SNAPSHOT + 2.33.0 Google Common Protos Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.33.1-SNAPSHOT + 2.34.0 ../gapic-generator-java-pom-parent @@ -61,7 +61,7 @@ com.google.cloud third-party-dependencies - 3.23.1-SNAPSHOT + 3.24.0 pom import @@ -75,7 +75,7 @@ com.google.api.grpc grpc-google-common-protos - 2.32.1-SNAPSHOT + 2.33.0 io.grpc @@ -87,7 +87,7 @@ com.google.api.grpc proto-google-common-protos - 2.32.1-SNAPSHOT + 2.33.0 com.google.guava diff --git a/java-common-protos/proto-google-common-protos/pom.xml b/java-common-protos/proto-google-common-protos/pom.xml index fdd4aad8ae..4fb8633234 100644 --- a/java-common-protos/proto-google-common-protos/pom.xml +++ b/java-common-protos/proto-google-common-protos/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-common-protos - 2.32.1-SNAPSHOT + 2.33.0 proto-google-common-protos PROTO library for proto-google-common-protos com.google.api.grpc google-common-protos-parent - 2.32.1-SNAPSHOT + 2.33.0 diff --git a/java-core/google-cloud-core-bom/pom.xml b/java-core/google-cloud-core-bom/pom.xml index 16591c7dac..6b959aad03 100644 --- a/java-core/google-cloud-core-bom/pom.xml +++ b/java-core/google-cloud-core-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-core-bom - 2.31.1-SNAPSHOT + 2.32.0 pom com.google.api gapic-generator-java-pom-parent - 2.33.1-SNAPSHOT + 2.34.0 ../../gapic-generator-java-pom-parent @@ -23,17 +23,17 @@ com.google.cloud google-cloud-core - 2.31.1-SNAPSHOT + 2.32.0 com.google.cloud google-cloud-core-grpc - 2.31.1-SNAPSHOT + 2.32.0 com.google.cloud google-cloud-core-http - 2.31.1-SNAPSHOT + 2.32.0 diff --git a/java-core/google-cloud-core-grpc/pom.xml b/java-core/google-cloud-core-grpc/pom.xml index 22c8a54e7c..4d0fc0eb02 100644 --- a/java-core/google-cloud-core-grpc/pom.xml +++ b/java-core/google-cloud-core-grpc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core-grpc - 2.31.1-SNAPSHOT + 2.32.0 jar Google Cloud Core gRPC @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.31.1-SNAPSHOT + 2.32.0 google-cloud-core-grpc diff --git a/java-core/google-cloud-core-http/pom.xml b/java-core/google-cloud-core-http/pom.xml index 20ab155679..19709544bf 100644 --- a/java-core/google-cloud-core-http/pom.xml +++ b/java-core/google-cloud-core-http/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core-http - 2.31.1-SNAPSHOT + 2.32.0 jar Google Cloud Core HTTP @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.31.1-SNAPSHOT + 2.32.0 google-cloud-core-http diff --git a/java-core/google-cloud-core/pom.xml b/java-core/google-cloud-core/pom.xml index c77cd7e10a..f90c30d29b 100644 --- a/java-core/google-cloud-core/pom.xml +++ b/java-core/google-cloud-core/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core - 2.31.1-SNAPSHOT + 2.32.0 jar Google Cloud Core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.31.1-SNAPSHOT + 2.32.0 google-cloud-core diff --git a/java-core/pom.xml b/java-core/pom.xml index 1a5dbc2052..f283f2ad3f 100644 --- a/java-core/pom.xml +++ b/java-core/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-core-parent pom - 2.31.1-SNAPSHOT + 2.32.0 Google Cloud Core Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.33.1-SNAPSHOT + 2.34.0 ../gapic-generator-java-pom-parent @@ -33,7 +33,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.23.1-SNAPSHOT + 3.24.0 pom import diff --git a/java-iam/grpc-google-iam-v1/pom.xml b/java-iam/grpc-google-iam-v1/pom.xml index 383edc5ad1..b02ca9744f 100644 --- a/java-iam/grpc-google-iam-v1/pom.xml +++ b/java-iam/grpc-google-iam-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v1 - 1.27.1-SNAPSHOT + 1.28.0 grpc-google-iam-v1 GRPC library for grpc-google-iam-v1 com.google.cloud google-iam-parent - 1.27.1-SNAPSHOT + 1.28.0 diff --git a/java-iam/grpc-google-iam-v2/pom.xml b/java-iam/grpc-google-iam-v2/pom.xml index cde0a76a03..494c33f129 100644 --- a/java-iam/grpc-google-iam-v2/pom.xml +++ b/java-iam/grpc-google-iam-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v2 - 1.27.1-SNAPSHOT + 1.28.0 grpc-google-iam-v2 GRPC library for proto-google-iam-v2 com.google.cloud google-iam-parent - 1.27.1-SNAPSHOT + 1.28.0 diff --git a/java-iam/grpc-google-iam-v2beta/pom.xml b/java-iam/grpc-google-iam-v2beta/pom.xml index 9a8ded0cef..ffb3dfcc35 100644 --- a/java-iam/grpc-google-iam-v2beta/pom.xml +++ b/java-iam/grpc-google-iam-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v2beta - 1.27.1-SNAPSHOT + 1.28.0 grpc-google-iam-v2beta GRPC library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.27.1-SNAPSHOT + 1.28.0 diff --git a/java-iam/pom.xml b/java-iam/pom.xml index c6fa565caf..072e092fd5 100644 --- a/java-iam/pom.xml +++ b/java-iam/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-parent pom - 1.27.1-SNAPSHOT + 1.28.0 Google IAM Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.33.1-SNAPSHOT + 2.34.0 ../gapic-generator-java-pom-parent @@ -60,7 +60,7 @@ com.google.cloud third-party-dependencies - 3.23.1-SNAPSHOT + 3.24.0 pom import @@ -88,44 +88,44 @@ com.google.api gax-bom - 2.41.1-SNAPSHOT + 2.42.0 pom import com.google.api.grpc proto-google-iam-v2 - 1.27.1-SNAPSHOT + 1.28.0 com.google.api.grpc grpc-google-iam-v2 - 1.27.1-SNAPSHOT + 1.28.0 com.google.api.grpc proto-google-common-protos - 2.32.1-SNAPSHOT + 2.33.0 com.google.api.grpc proto-google-iam-v2beta - 1.27.1-SNAPSHOT + 1.28.0 com.google.api.grpc grpc-google-iam-v1 - 1.27.1-SNAPSHOT + 1.28.0 com.google.api.grpc grpc-google-iam-v2beta - 1.27.1-SNAPSHOT + 1.28.0 com.google.api.grpc proto-google-iam-v1 - 1.27.1-SNAPSHOT + 1.28.0 javax.annotation diff --git a/java-iam/proto-google-iam-v1/pom.xml b/java-iam/proto-google-iam-v1/pom.xml index c260543c85..98ac0f86ab 100644 --- a/java-iam/proto-google-iam-v1/pom.xml +++ b/java-iam/proto-google-iam-v1/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v1 - 1.27.1-SNAPSHOT + 1.28.0 proto-google-iam-v1 PROTO library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.27.1-SNAPSHOT + 1.28.0 diff --git a/java-iam/proto-google-iam-v2/pom.xml b/java-iam/proto-google-iam-v2/pom.xml index ea830bc5dd..c9eeafcb44 100644 --- a/java-iam/proto-google-iam-v2/pom.xml +++ b/java-iam/proto-google-iam-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v2 - 1.27.1-SNAPSHOT + 1.28.0 proto-google-iam-v2 Proto library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.27.1-SNAPSHOT + 1.28.0 diff --git a/java-iam/proto-google-iam-v2beta/pom.xml b/java-iam/proto-google-iam-v2beta/pom.xml index 54475015b1..9255511be0 100644 --- a/java-iam/proto-google-iam-v2beta/pom.xml +++ b/java-iam/proto-google-iam-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v2beta - 1.27.1-SNAPSHOT + 1.28.0 proto-google-iam-v2beta Proto library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.27.1-SNAPSHOT + 1.28.0 diff --git a/java-shared-dependencies/README.md b/java-shared-dependencies/README.md index 365048a0ef..3199dad83a 100644 --- a/java-shared-dependencies/README.md +++ b/java-shared-dependencies/README.md @@ -14,7 +14,7 @@ If you are using Maven, add this to the `dependencyManagement` section. com.google.cloud google-cloud-shared-dependencies - 3.23.0 + 3.24.0 pom import diff --git a/java-shared-dependencies/dependency-convergence-check/pom.xml b/java-shared-dependencies/dependency-convergence-check/pom.xml index 6840b12de0..f2c0917ddf 100644 --- a/java-shared-dependencies/dependency-convergence-check/pom.xml +++ b/java-shared-dependencies/dependency-convergence-check/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud shared-dependencies-dependency-convergence-test - 3.23.1-SNAPSHOT + 3.24.0 Dependency convergence test for certain artifacts in Google Cloud Shared Dependencies An dependency convergence test case for the shared dependencies BOM. A failure of this test case means diff --git a/java-shared-dependencies/first-party-dependencies/pom.xml b/java-shared-dependencies/first-party-dependencies/pom.xml index c5019e9684..7ca9988f8a 100644 --- a/java-shared-dependencies/first-party-dependencies/pom.xml +++ b/java-shared-dependencies/first-party-dependencies/pom.xml @@ -6,7 +6,7 @@ com.google.cloud first-party-dependencies pom - 3.23.1-SNAPSHOT + 3.24.0 Google Cloud First-party Shared Dependencies Shared first-party dependencies for Google Cloud Java libraries. @@ -33,7 +33,7 @@ com.google.api gapic-generator-java-bom - 2.33.1-SNAPSHOT + 2.34.0 pom import @@ -45,7 +45,7 @@ com.google.cloud google-cloud-core-bom - 2.31.1-SNAPSHOT + 2.32.0 pom import @@ -69,13 +69,13 @@ com.google.cloud google-cloud-core - 2.31.1-SNAPSHOT + 2.32.0 test-jar com.google.cloud google-cloud-core - 2.31.1-SNAPSHOT + 2.32.0 tests diff --git a/java-shared-dependencies/pom.xml b/java-shared-dependencies/pom.xml index e68d6215b6..035c4e2412 100644 --- a/java-shared-dependencies/pom.xml +++ b/java-shared-dependencies/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-shared-dependencies pom - 3.23.1-SNAPSHOT + 3.24.0 first-party-dependencies third-party-dependencies @@ -17,7 +17,7 @@ com.google.api gapic-generator-java-pom-parent - 2.33.1-SNAPSHOT + 2.34.0 ../gapic-generator-java-pom-parent @@ -31,14 +31,14 @@ com.google.cloud first-party-dependencies - 3.23.1-SNAPSHOT + 3.24.0 pom import com.google.cloud third-party-dependencies - 3.23.1-SNAPSHOT + 3.24.0 pom import diff --git a/java-shared-dependencies/third-party-dependencies/pom.xml b/java-shared-dependencies/third-party-dependencies/pom.xml index 3af13353d3..5b0da14d5e 100644 --- a/java-shared-dependencies/third-party-dependencies/pom.xml +++ b/java-shared-dependencies/third-party-dependencies/pom.xml @@ -6,7 +6,7 @@ com.google.cloud third-party-dependencies pom - 3.23.1-SNAPSHOT + 3.24.0 Google Cloud Third-party Shared Dependencies Shared third-party dependencies for Google Cloud Java libraries. diff --git a/java-shared-dependencies/upper-bound-check/pom.xml b/java-shared-dependencies/upper-bound-check/pom.xml index db5789cd5c..5b0f62a5c3 100644 --- a/java-shared-dependencies/upper-bound-check/pom.xml +++ b/java-shared-dependencies/upper-bound-check/pom.xml @@ -4,7 +4,7 @@ com.google.cloud shared-dependencies-upper-bound-test pom - 3.23.1-SNAPSHOT + 3.24.0 Upper bound test for Google Cloud Shared Dependencies An upper bound test case for the shared dependencies BOM. A failure of this test case means @@ -30,7 +30,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.23.1-SNAPSHOT + 3.24.0 pom import diff --git a/sdk-platform-java-config/pom.xml b/sdk-platform-java-config/pom.xml index cc33a7d085..4770a70f22 100644 --- a/sdk-platform-java-config/pom.xml +++ b/sdk-platform-java-config/pom.xml @@ -4,7 +4,7 @@ com.google.cloud sdk-platform-java-config pom - 3.23.1-SNAPSHOT + 3.24.0 SDK Platform For Java Configurations Shared build configuration for Google Cloud Java libraries. @@ -17,6 +17,6 @@ - 3.23.1-SNAPSHOT + 3.24.0 \ No newline at end of file diff --git a/showcase/pom.xml b/showcase/pom.xml index c1372c65d9..5907bbac24 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.23.1-SNAPSHOT + 3.24.0 pom import diff --git a/versions.txt b/versions.txt index 92faa04311..acedcf4b31 100644 --- a/versions.txt +++ b/versions.txt @@ -1,19 +1,19 @@ # Format: # module:released-version:current-version -gapic-generator-java:2.33.0:2.33.1-SNAPSHOT -api-common:2.24.0:2.24.1-SNAPSHOT -gax:2.41.0:2.41.1-SNAPSHOT -gax-grpc:2.41.0:2.41.1-SNAPSHOT -gax-httpjson:0.126.0:0.126.1-SNAPSHOT -proto-google-common-protos:2.32.0:2.32.1-SNAPSHOT -grpc-google-common-protos:2.32.0:2.32.1-SNAPSHOT -proto-google-iam-v1:1.27.0:1.27.1-SNAPSHOT -grpc-google-iam-v1:1.27.0:1.27.1-SNAPSHOT -proto-google-iam-v2beta:1.27.0:1.27.1-SNAPSHOT -grpc-google-iam-v2beta:1.27.0:1.27.1-SNAPSHOT -google-iam-policy:1.27.0:1.27.1-SNAPSHOT -proto-google-iam-v2:1.27.0:1.27.1-SNAPSHOT -grpc-google-iam-v2:1.27.0:1.27.1-SNAPSHOT -google-cloud-core:2.31.0:2.31.1-SNAPSHOT -google-cloud-shared-dependencies:3.23.0:3.23.1-SNAPSHOT +gapic-generator-java:2.34.0:2.34.0 +api-common:2.25.0:2.25.0 +gax:2.42.0:2.42.0 +gax-grpc:2.42.0:2.42.0 +gax-httpjson:0.127.0:0.127.0 +proto-google-common-protos:2.33.0:2.33.0 +grpc-google-common-protos:2.33.0:2.33.0 +proto-google-iam-v1:1.28.0:1.28.0 +grpc-google-iam-v1:1.28.0:1.28.0 +proto-google-iam-v2beta:1.28.0:1.28.0 +grpc-google-iam-v2beta:1.28.0:1.28.0 +google-iam-policy:1.28.0:1.28.0 +proto-google-iam-v2:1.28.0:1.28.0 +grpc-google-iam-v2:1.28.0:1.28.0 +google-cloud-core:2.32.0:2.32.0 +google-cloud-shared-dependencies:3.24.0:3.24.0 From 09c1c72910c38d67e2f99090b2683ac0a5d2a866 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 31 Jan 2024 20:31:34 -0500 Subject: [PATCH 37/75] chore(main): release 2.34.1-SNAPSHOT (#2434) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .cloudbuild/cloudbuild-test-a.yaml | 2 +- .cloudbuild/cloudbuild-test-b.yaml | 2 +- .cloudbuild/cloudbuild.yaml | 2 +- WORKSPACE | 2 +- api-common-java/pom.xml | 4 +-- coverage-report/pom.xml | 8 ++--- gapic-generator-java-bom/pom.xml | 26 +++++++-------- gapic-generator-java-pom-parent/pom.xml | 2 +- gapic-generator-java/pom.xml | 6 ++-- gax-java/dependencies.properties | 8 ++--- gax-java/gax-bom/pom.xml | 20 ++++++------ gax-java/gax-grpc/pom.xml | 4 +-- gax-java/gax-httpjson/pom.xml | 4 +-- gax-java/gax/pom.xml | 4 +-- gax-java/pom.xml | 14 ++++---- .../grpc-google-common-protos/pom.xml | 4 +-- java-common-protos/pom.xml | 10 +++--- .../proto-google-common-protos/pom.xml | 4 +-- java-core/google-cloud-core-bom/pom.xml | 10 +++--- java-core/google-cloud-core-grpc/pom.xml | 4 +-- java-core/google-cloud-core-http/pom.xml | 4 +-- java-core/google-cloud-core/pom.xml | 4 +-- java-core/pom.xml | 6 ++-- java-iam/grpc-google-iam-v1/pom.xml | 4 +-- java-iam/grpc-google-iam-v2/pom.xml | 4 +-- java-iam/grpc-google-iam-v2beta/pom.xml | 4 +-- java-iam/pom.xml | 22 ++++++------- java-iam/proto-google-iam-v1/pom.xml | 4 +-- java-iam/proto-google-iam-v2/pom.xml | 4 +-- java-iam/proto-google-iam-v2beta/pom.xml | 4 +-- .../dependency-convergence-check/pom.xml | 2 +- .../first-party-dependencies/pom.xml | 10 +++--- java-shared-dependencies/pom.xml | 8 ++--- .../third-party-dependencies/pom.xml | 2 +- .../upper-bound-check/pom.xml | 4 +-- sdk-platform-java-config/pom.xml | 4 +-- showcase/pom.xml | 2 +- versions.txt | 32 +++++++++---------- 38 files changed, 132 insertions(+), 132 deletions(-) diff --git a/.cloudbuild/cloudbuild-test-a.yaml b/.cloudbuild/cloudbuild-test-a.yaml index 5da2f41078..dd83a6fcd1 100644 --- a/.cloudbuild/cloudbuild-test-a.yaml +++ b/.cloudbuild/cloudbuild-test-a.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.24.0' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.24.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.7.1' steps: diff --git a/.cloudbuild/cloudbuild-test-b.yaml b/.cloudbuild/cloudbuild-test-b.yaml index 5fa0b16766..7f36959540 100644 --- a/.cloudbuild/cloudbuild-test-b.yaml +++ b/.cloudbuild/cloudbuild-test-b.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.24.0' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.24.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.7.1' steps: diff --git a/.cloudbuild/cloudbuild.yaml b/.cloudbuild/cloudbuild.yaml index ae3d152d9f..1686b8a5c3 100644 --- a/.cloudbuild/cloudbuild.yaml +++ b/.cloudbuild/cloudbuild.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.24.0' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.24.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.7.1' steps: # GraalVM A build diff --git a/WORKSPACE b/WORKSPACE index 2a36da16fd..3bc5237b0e 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -60,7 +60,7 @@ maven_install( repositories = ["https://repo.maven.apache.org/maven2/"], ) -_gapic_generator_java_version = "2.34.0" # {x-version-update:gapic-generator-java:current} +_gapic_generator_java_version = "2.34.1-SNAPSHOT" # {x-version-update:gapic-generator-java:current} maven_install( artifacts = [ diff --git a/api-common-java/pom.xml b/api-common-java/pom.xml index 634ce87ad4..8b7b11722d 100644 --- a/api-common-java/pom.xml +++ b/api-common-java/pom.xml @@ -5,14 +5,14 @@ com.google.api api-common jar - 2.25.0 + 2.25.1-SNAPSHOT API Common Common utilities for Google APIs in Java com.google.api gapic-generator-java-pom-parent - 2.34.0 + 2.34.1-SNAPSHOT ../gapic-generator-java-pom-parent diff --git a/coverage-report/pom.xml b/coverage-report/pom.xml index 39fa549992..717360b8e8 100644 --- a/coverage-report/pom.xml +++ b/coverage-report/pom.xml @@ -31,22 +31,22 @@ com.google.api gax - 2.42.0 + 2.42.1-SNAPSHOT com.google.api gax-grpc - 2.42.0 + 2.42.1-SNAPSHOT com.google.api gax-httpjson - 2.42.0 + 2.42.1-SNAPSHOT com.google.api api-common - 2.25.0 + 2.25.1-SNAPSHOT diff --git a/gapic-generator-java-bom/pom.xml b/gapic-generator-java-bom/pom.xml index 6a7cb04b1b..fa770432a2 100644 --- a/gapic-generator-java-bom/pom.xml +++ b/gapic-generator-java-bom/pom.xml @@ -4,7 +4,7 @@ com.google.api gapic-generator-java-bom pom - 2.34.0 + 2.34.1-SNAPSHOT GAPIC Generator Java BOM BOM for the libraries in gapic-generator-java repository. Users should not @@ -15,7 +15,7 @@ com.google.api gapic-generator-java-pom-parent - 2.34.0 + 2.34.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -75,61 +75,61 @@ com.google.api api-common - 2.25.0 + 2.25.1-SNAPSHOT com.google.api gax-bom - 2.42.0 + 2.42.1-SNAPSHOT pom import com.google.api gapic-generator-java - 2.34.0 + 2.34.1-SNAPSHOT com.google.api.grpc grpc-google-common-protos - 2.33.0 + 2.33.1-SNAPSHOT com.google.api.grpc proto-google-common-protos - 2.33.0 + 2.33.1-SNAPSHOT com.google.api.grpc proto-google-iam-v1 - 1.28.0 + 1.28.1-SNAPSHOT com.google.api.grpc proto-google-iam-v2 - 1.28.0 + 1.28.1-SNAPSHOT com.google.api.grpc proto-google-iam-v2beta - 1.28.0 + 1.28.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v1 - 1.28.0 + 1.28.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v2 - 1.28.0 + 1.28.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v2beta - 1.28.0 + 1.28.1-SNAPSHOT diff --git a/gapic-generator-java-pom-parent/pom.xml b/gapic-generator-java-pom-parent/pom.xml index 9bf02cdf3c..cfd7e48a4e 100644 --- a/gapic-generator-java-pom-parent/pom.xml +++ b/gapic-generator-java-pom-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.api gapic-generator-java-pom-parent - 2.34.0 + 2.34.1-SNAPSHOT pom GAPIC Generator Java POM Parent https://github.com/googleapis/sdk-platform-java diff --git a/gapic-generator-java/pom.xml b/gapic-generator-java/pom.xml index b0016c80c8..f32331b7a7 100644 --- a/gapic-generator-java/pom.xml +++ b/gapic-generator-java/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.google.api gapic-generator-java - 2.34.0 + 2.34.1-SNAPSHOT GAPIC Generator Java GAPIC generator Java @@ -22,7 +22,7 @@ com.google.api gapic-generator-java-pom-parent - 2.34.0 + 2.34.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -31,7 +31,7 @@ com.google.api gapic-generator-java-bom - 2.34.0 + 2.34.1-SNAPSHOT pom import diff --git a/gax-java/dependencies.properties b/gax-java/dependencies.properties index 01787402a9..c9049af005 100644 --- a/gax-java/dependencies.properties +++ b/gax-java/dependencies.properties @@ -8,16 +8,16 @@ # Versions of oneself # {x-version-update-start:gax:current} -version.gax=2.42.0 +version.gax=2.42.1-SNAPSHOT # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_grpc=2.42.0 +version.gax_grpc=2.42.1-SNAPSHOT # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_bom=2.42.0 +version.gax_bom=2.42.1-SNAPSHOT # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_httpjson=2.42.0 +version.gax_httpjson=2.42.1-SNAPSHOT # {x-version-update-end} # Versions for dependencies which actual artifacts differ between Bazel and Gradle. diff --git a/gax-java/gax-bom/pom.xml b/gax-java/gax-bom/pom.xml index b1ff32cca5..900b2e48ef 100644 --- a/gax-java/gax-bom/pom.xml +++ b/gax-java/gax-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.api gax-bom - 2.42.0 + 2.42.1-SNAPSHOT pom GAX (Google Api eXtensions) for Java (BOM) Google Api eXtensions for Java (BOM) @@ -43,55 +43,55 @@ com.google.api gax - 2.42.0 + 2.42.1-SNAPSHOT com.google.api gax - 2.42.0 + 2.42.1-SNAPSHOT test-jar testlib com.google.api gax - 2.42.0 + 2.42.1-SNAPSHOT testlib com.google.api gax-grpc - 2.42.0 + 2.42.1-SNAPSHOT com.google.api gax-grpc - 2.42.0 + 2.42.1-SNAPSHOT test-jar testlib com.google.api gax-grpc - 2.42.0 + 2.42.1-SNAPSHOT testlib com.google.api gax-httpjson - 2.42.0 + 2.42.1-SNAPSHOT com.google.api gax-httpjson - 2.42.0 + 2.42.1-SNAPSHOT test-jar testlib com.google.api gax-httpjson - 2.42.0 + 2.42.1-SNAPSHOT testlib diff --git a/gax-java/gax-grpc/pom.xml b/gax-java/gax-grpc/pom.xml index cad83c87cd..7a3aa9e96a 100644 --- a/gax-java/gax-grpc/pom.xml +++ b/gax-java/gax-grpc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax-grpc - 2.42.0 + 2.42.1-SNAPSHOT jar GAX (Google Api eXtensions) for Java (gRPC) Google Api eXtensions for Java (gRPC) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.42.0 + 2.42.1-SNAPSHOT diff --git a/gax-java/gax-httpjson/pom.xml b/gax-java/gax-httpjson/pom.xml index 91ba2be7dc..ca317d124d 100644 --- a/gax-java/gax-httpjson/pom.xml +++ b/gax-java/gax-httpjson/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax-httpjson - 2.42.0 + 2.42.1-SNAPSHOT jar GAX (Google Api eXtensions) for Java (HTTP JSON) Google Api eXtensions for Java (HTTP JSON) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.42.0 + 2.42.1-SNAPSHOT diff --git a/gax-java/gax/pom.xml b/gax-java/gax/pom.xml index b0fcd10bc8..2fddd4045c 100644 --- a/gax-java/gax/pom.xml +++ b/gax-java/gax/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax - 2.42.0 + 2.42.1-SNAPSHOT jar GAX (Google Api eXtensions) for Java (Core) Google Api eXtensions for Java (Core) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.42.0 + 2.42.1-SNAPSHOT diff --git a/gax-java/pom.xml b/gax-java/pom.xml index a9233ba1bd..2b08c5da14 100644 --- a/gax-java/pom.xml +++ b/gax-java/pom.xml @@ -4,14 +4,14 @@ com.google.api gax-parent pom - 2.42.0 + 2.42.1-SNAPSHOT GAX (Google Api eXtensions) for Java (Parent) Google Api eXtensions for Java (Parent) com.google.api gapic-generator-java-pom-parent - 2.34.0 + 2.34.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -50,7 +50,7 @@ com.google.api api-common - 2.25.0 + 2.25.1-SNAPSHOT com.google.auth @@ -108,24 +108,24 @@ com.google.api gax - 2.42.0 + 2.42.1-SNAPSHOT com.google.api gax - 2.42.0 + 2.42.1-SNAPSHOT test-jar testlib com.google.api.grpc proto-google-common-protos - 2.33.0 + 2.33.1-SNAPSHOT com.google.api.grpc grpc-google-common-protos - 2.33.0 + 2.33.1-SNAPSHOT io.grpc diff --git a/java-common-protos/grpc-google-common-protos/pom.xml b/java-common-protos/grpc-google-common-protos/pom.xml index ed1026f0ab..fcf837943c 100644 --- a/java-common-protos/grpc-google-common-protos/pom.xml +++ b/java-common-protos/grpc-google-common-protos/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-common-protos - 2.33.0 + 2.33.1-SNAPSHOT grpc-google-common-protos GRPC library for grpc-google-common-protos com.google.api.grpc google-common-protos-parent - 2.33.0 + 2.33.1-SNAPSHOT diff --git a/java-common-protos/pom.xml b/java-common-protos/pom.xml index 8d28d4fb6c..f4586f0184 100644 --- a/java-common-protos/pom.xml +++ b/java-common-protos/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-common-protos-parent pom - 2.33.0 + 2.33.1-SNAPSHOT Google Common Protos Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.34.0 + 2.34.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -61,7 +61,7 @@ com.google.cloud third-party-dependencies - 3.24.0 + 3.24.1-SNAPSHOT pom import @@ -75,7 +75,7 @@ com.google.api.grpc grpc-google-common-protos - 2.33.0 + 2.33.1-SNAPSHOT io.grpc @@ -87,7 +87,7 @@ com.google.api.grpc proto-google-common-protos - 2.33.0 + 2.33.1-SNAPSHOT com.google.guava diff --git a/java-common-protos/proto-google-common-protos/pom.xml b/java-common-protos/proto-google-common-protos/pom.xml index 4fb8633234..91baefe127 100644 --- a/java-common-protos/proto-google-common-protos/pom.xml +++ b/java-common-protos/proto-google-common-protos/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-common-protos - 2.33.0 + 2.33.1-SNAPSHOT proto-google-common-protos PROTO library for proto-google-common-protos com.google.api.grpc google-common-protos-parent - 2.33.0 + 2.33.1-SNAPSHOT diff --git a/java-core/google-cloud-core-bom/pom.xml b/java-core/google-cloud-core-bom/pom.xml index 6b959aad03..b9ee988026 100644 --- a/java-core/google-cloud-core-bom/pom.xml +++ b/java-core/google-cloud-core-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-core-bom - 2.32.0 + 2.32.1-SNAPSHOT pom com.google.api gapic-generator-java-pom-parent - 2.34.0 + 2.34.1-SNAPSHOT ../../gapic-generator-java-pom-parent @@ -23,17 +23,17 @@ com.google.cloud google-cloud-core - 2.32.0 + 2.32.1-SNAPSHOT com.google.cloud google-cloud-core-grpc - 2.32.0 + 2.32.1-SNAPSHOT com.google.cloud google-cloud-core-http - 2.32.0 + 2.32.1-SNAPSHOT diff --git a/java-core/google-cloud-core-grpc/pom.xml b/java-core/google-cloud-core-grpc/pom.xml index 4d0fc0eb02..88436370a1 100644 --- a/java-core/google-cloud-core-grpc/pom.xml +++ b/java-core/google-cloud-core-grpc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core-grpc - 2.32.0 + 2.32.1-SNAPSHOT jar Google Cloud Core gRPC @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.32.0 + 2.32.1-SNAPSHOT google-cloud-core-grpc diff --git a/java-core/google-cloud-core-http/pom.xml b/java-core/google-cloud-core-http/pom.xml index 19709544bf..fd9b3d18de 100644 --- a/java-core/google-cloud-core-http/pom.xml +++ b/java-core/google-cloud-core-http/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core-http - 2.32.0 + 2.32.1-SNAPSHOT jar Google Cloud Core HTTP @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.32.0 + 2.32.1-SNAPSHOT google-cloud-core-http diff --git a/java-core/google-cloud-core/pom.xml b/java-core/google-cloud-core/pom.xml index f90c30d29b..bfddf4bfb6 100644 --- a/java-core/google-cloud-core/pom.xml +++ b/java-core/google-cloud-core/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core - 2.32.0 + 2.32.1-SNAPSHOT jar Google Cloud Core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.32.0 + 2.32.1-SNAPSHOT google-cloud-core diff --git a/java-core/pom.xml b/java-core/pom.xml index f283f2ad3f..786e096955 100644 --- a/java-core/pom.xml +++ b/java-core/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-core-parent pom - 2.32.0 + 2.32.1-SNAPSHOT Google Cloud Core Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.34.0 + 2.34.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -33,7 +33,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.24.0 + 3.24.1-SNAPSHOT pom import diff --git a/java-iam/grpc-google-iam-v1/pom.xml b/java-iam/grpc-google-iam-v1/pom.xml index b02ca9744f..f4b2be64bd 100644 --- a/java-iam/grpc-google-iam-v1/pom.xml +++ b/java-iam/grpc-google-iam-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v1 - 1.28.0 + 1.28.1-SNAPSHOT grpc-google-iam-v1 GRPC library for grpc-google-iam-v1 com.google.cloud google-iam-parent - 1.28.0 + 1.28.1-SNAPSHOT diff --git a/java-iam/grpc-google-iam-v2/pom.xml b/java-iam/grpc-google-iam-v2/pom.xml index 494c33f129..4f62666294 100644 --- a/java-iam/grpc-google-iam-v2/pom.xml +++ b/java-iam/grpc-google-iam-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v2 - 1.28.0 + 1.28.1-SNAPSHOT grpc-google-iam-v2 GRPC library for proto-google-iam-v2 com.google.cloud google-iam-parent - 1.28.0 + 1.28.1-SNAPSHOT diff --git a/java-iam/grpc-google-iam-v2beta/pom.xml b/java-iam/grpc-google-iam-v2beta/pom.xml index ffb3dfcc35..5d0052905f 100644 --- a/java-iam/grpc-google-iam-v2beta/pom.xml +++ b/java-iam/grpc-google-iam-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v2beta - 1.28.0 + 1.28.1-SNAPSHOT grpc-google-iam-v2beta GRPC library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.28.0 + 1.28.1-SNAPSHOT diff --git a/java-iam/pom.xml b/java-iam/pom.xml index 072e092fd5..57afa87c0c 100644 --- a/java-iam/pom.xml +++ b/java-iam/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-parent pom - 1.28.0 + 1.28.1-SNAPSHOT Google IAM Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.34.0 + 2.34.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -60,7 +60,7 @@ com.google.cloud third-party-dependencies - 3.24.0 + 3.24.1-SNAPSHOT pom import @@ -88,44 +88,44 @@ com.google.api gax-bom - 2.42.0 + 2.42.1-SNAPSHOT pom import com.google.api.grpc proto-google-iam-v2 - 1.28.0 + 1.28.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v2 - 1.28.0 + 1.28.1-SNAPSHOT com.google.api.grpc proto-google-common-protos - 2.33.0 + 2.33.1-SNAPSHOT com.google.api.grpc proto-google-iam-v2beta - 1.28.0 + 1.28.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v1 - 1.28.0 + 1.28.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v2beta - 1.28.0 + 1.28.1-SNAPSHOT com.google.api.grpc proto-google-iam-v1 - 1.28.0 + 1.28.1-SNAPSHOT javax.annotation diff --git a/java-iam/proto-google-iam-v1/pom.xml b/java-iam/proto-google-iam-v1/pom.xml index 98ac0f86ab..c770f57004 100644 --- a/java-iam/proto-google-iam-v1/pom.xml +++ b/java-iam/proto-google-iam-v1/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v1 - 1.28.0 + 1.28.1-SNAPSHOT proto-google-iam-v1 PROTO library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.28.0 + 1.28.1-SNAPSHOT diff --git a/java-iam/proto-google-iam-v2/pom.xml b/java-iam/proto-google-iam-v2/pom.xml index c9eeafcb44..182fe2cab3 100644 --- a/java-iam/proto-google-iam-v2/pom.xml +++ b/java-iam/proto-google-iam-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v2 - 1.28.0 + 1.28.1-SNAPSHOT proto-google-iam-v2 Proto library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.28.0 + 1.28.1-SNAPSHOT diff --git a/java-iam/proto-google-iam-v2beta/pom.xml b/java-iam/proto-google-iam-v2beta/pom.xml index 9255511be0..e3643e6e54 100644 --- a/java-iam/proto-google-iam-v2beta/pom.xml +++ b/java-iam/proto-google-iam-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v2beta - 1.28.0 + 1.28.1-SNAPSHOT proto-google-iam-v2beta Proto library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.28.0 + 1.28.1-SNAPSHOT diff --git a/java-shared-dependencies/dependency-convergence-check/pom.xml b/java-shared-dependencies/dependency-convergence-check/pom.xml index f2c0917ddf..84f876e295 100644 --- a/java-shared-dependencies/dependency-convergence-check/pom.xml +++ b/java-shared-dependencies/dependency-convergence-check/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud shared-dependencies-dependency-convergence-test - 3.24.0 + 3.24.1-SNAPSHOT Dependency convergence test for certain artifacts in Google Cloud Shared Dependencies An dependency convergence test case for the shared dependencies BOM. A failure of this test case means diff --git a/java-shared-dependencies/first-party-dependencies/pom.xml b/java-shared-dependencies/first-party-dependencies/pom.xml index 7ca9988f8a..6c5bb87fa6 100644 --- a/java-shared-dependencies/first-party-dependencies/pom.xml +++ b/java-shared-dependencies/first-party-dependencies/pom.xml @@ -6,7 +6,7 @@ com.google.cloud first-party-dependencies pom - 3.24.0 + 3.24.1-SNAPSHOT Google Cloud First-party Shared Dependencies Shared first-party dependencies for Google Cloud Java libraries. @@ -33,7 +33,7 @@ com.google.api gapic-generator-java-bom - 2.34.0 + 2.34.1-SNAPSHOT pom import @@ -45,7 +45,7 @@ com.google.cloud google-cloud-core-bom - 2.32.0 + 2.32.1-SNAPSHOT pom import @@ -69,13 +69,13 @@ com.google.cloud google-cloud-core - 2.32.0 + 2.32.1-SNAPSHOT test-jar com.google.cloud google-cloud-core - 2.32.0 + 2.32.1-SNAPSHOT tests diff --git a/java-shared-dependencies/pom.xml b/java-shared-dependencies/pom.xml index 035c4e2412..db364746c7 100644 --- a/java-shared-dependencies/pom.xml +++ b/java-shared-dependencies/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-shared-dependencies pom - 3.24.0 + 3.24.1-SNAPSHOT first-party-dependencies third-party-dependencies @@ -17,7 +17,7 @@ com.google.api gapic-generator-java-pom-parent - 2.34.0 + 2.34.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -31,14 +31,14 @@ com.google.cloud first-party-dependencies - 3.24.0 + 3.24.1-SNAPSHOT pom import com.google.cloud third-party-dependencies - 3.24.0 + 3.24.1-SNAPSHOT pom import diff --git a/java-shared-dependencies/third-party-dependencies/pom.xml b/java-shared-dependencies/third-party-dependencies/pom.xml index 5b0da14d5e..ae0580e0e6 100644 --- a/java-shared-dependencies/third-party-dependencies/pom.xml +++ b/java-shared-dependencies/third-party-dependencies/pom.xml @@ -6,7 +6,7 @@ com.google.cloud third-party-dependencies pom - 3.24.0 + 3.24.1-SNAPSHOT Google Cloud Third-party Shared Dependencies Shared third-party dependencies for Google Cloud Java libraries. diff --git a/java-shared-dependencies/upper-bound-check/pom.xml b/java-shared-dependencies/upper-bound-check/pom.xml index 5b0f62a5c3..c009d3c484 100644 --- a/java-shared-dependencies/upper-bound-check/pom.xml +++ b/java-shared-dependencies/upper-bound-check/pom.xml @@ -4,7 +4,7 @@ com.google.cloud shared-dependencies-upper-bound-test pom - 3.24.0 + 3.24.1-SNAPSHOT Upper bound test for Google Cloud Shared Dependencies An upper bound test case for the shared dependencies BOM. A failure of this test case means @@ -30,7 +30,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.24.0 + 3.24.1-SNAPSHOT pom import diff --git a/sdk-platform-java-config/pom.xml b/sdk-platform-java-config/pom.xml index 4770a70f22..2b809b9e2a 100644 --- a/sdk-platform-java-config/pom.xml +++ b/sdk-platform-java-config/pom.xml @@ -4,7 +4,7 @@ com.google.cloud sdk-platform-java-config pom - 3.24.0 + 3.24.1-SNAPSHOT SDK Platform For Java Configurations Shared build configuration for Google Cloud Java libraries. @@ -17,6 +17,6 @@ - 3.24.0 + 3.24.1-SNAPSHOT \ No newline at end of file diff --git a/showcase/pom.xml b/showcase/pom.xml index 5907bbac24..933e231f92 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.24.0 + 3.24.1-SNAPSHOT pom import diff --git a/versions.txt b/versions.txt index acedcf4b31..4dfce48e72 100644 --- a/versions.txt +++ b/versions.txt @@ -1,19 +1,19 @@ # Format: # module:released-version:current-version -gapic-generator-java:2.34.0:2.34.0 -api-common:2.25.0:2.25.0 -gax:2.42.0:2.42.0 -gax-grpc:2.42.0:2.42.0 -gax-httpjson:0.127.0:0.127.0 -proto-google-common-protos:2.33.0:2.33.0 -grpc-google-common-protos:2.33.0:2.33.0 -proto-google-iam-v1:1.28.0:1.28.0 -grpc-google-iam-v1:1.28.0:1.28.0 -proto-google-iam-v2beta:1.28.0:1.28.0 -grpc-google-iam-v2beta:1.28.0:1.28.0 -google-iam-policy:1.28.0:1.28.0 -proto-google-iam-v2:1.28.0:1.28.0 -grpc-google-iam-v2:1.28.0:1.28.0 -google-cloud-core:2.32.0:2.32.0 -google-cloud-shared-dependencies:3.24.0:3.24.0 +gapic-generator-java:2.34.0:2.34.1-SNAPSHOT +api-common:2.25.0:2.25.1-SNAPSHOT +gax:2.42.0:2.42.1-SNAPSHOT +gax-grpc:2.42.0:2.42.1-SNAPSHOT +gax-httpjson:0.127.0:0.127.1-SNAPSHOT +proto-google-common-protos:2.33.0:2.33.1-SNAPSHOT +grpc-google-common-protos:2.33.0:2.33.1-SNAPSHOT +proto-google-iam-v1:1.28.0:1.28.1-SNAPSHOT +grpc-google-iam-v1:1.28.0:1.28.1-SNAPSHOT +proto-google-iam-v2beta:1.28.0:1.28.1-SNAPSHOT +grpc-google-iam-v2beta:1.28.0:1.28.1-SNAPSHOT +google-iam-policy:1.28.0:1.28.1-SNAPSHOT +proto-google-iam-v2:1.28.0:1.28.1-SNAPSHOT +grpc-google-iam-v2:1.28.0:1.28.1-SNAPSHOT +google-cloud-core:2.32.0:2.32.1-SNAPSHOT +google-cloud-shared-dependencies:3.24.0:3.24.1-SNAPSHOT From bc8e2859a5bea96c58b44f0453be08f4a0ebe018 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 1 Feb 2024 10:40:03 -0500 Subject: [PATCH 38/75] test: increase timeout testCancelOuterFutureAfterStart to 60s (#2437) * test: increase timeout testCancelOuterFutureAfterStart to 60s Fixes https://github.com/googleapis/sdk-platform-java/issues/1962. The test was written under a bad assumption that the main thread (the thread running the test) calls future.cancel always before the callable finishes in 2 second. In reality, there's no guarantee that CPU executes the main thread in a timely manner. (This possibility is actually already written in the source code comment) Increasing the timeout value from 2 seconds to 60 seconds will drastically reduce the likelihood of the failure. --- .../api/gax/retrying/ScheduledRetryingExecutorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gax-java/gax/src/test/java/com/google/api/gax/retrying/ScheduledRetryingExecutorTest.java b/gax-java/gax/src/test/java/com/google/api/gax/retrying/ScheduledRetryingExecutorTest.java index 279bdd6ab7..60ba301c62 100644 --- a/gax-java/gax/src/test/java/com/google/api/gax/retrying/ScheduledRetryingExecutorTest.java +++ b/gax-java/gax/src/test/java/com/google/api/gax/retrying/ScheduledRetryingExecutorTest.java @@ -262,11 +262,11 @@ public void testCancelOuterFutureAfterStart() throws Exception { .setInitialRetryDelay(Duration.ofMillis(25L)) .setMaxRetryDelay(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(4.0) - .setTotalTimeout(Duration.ofMillis(2000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) // Set this test to not use jitter as the randomized retry delay (RRD) may introduce // flaky results. For example, if every RRD value is calculated to be a small value // (i.e. 2ms), four retries would result a "SUCCESS" result after 8ms, far below - // both the sleep value (150ms) and timeout (2000ms). This could potentially result + // both the sleep value (150ms) and timeout (60000ms). This could potentially result // in the future.cancel() returning false as you can't cancel a future that has // already succeeded. The possibility of having each of the four retries produce a // tiny RRD value is small, but not impossible. From b4c96598b571134c061c31217c3fe57b070c41c7 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Fri, 2 Feb 2024 00:15:20 +0000 Subject: [PATCH 39/75] chore: change header year (#2438) * chore: change header year * fix unit tests * update showcase * fix integration tests * generate year by calander --- .../composer/comment/CommentComposer.java | 23 +++++++++++-------- .../goldens/ComposerPostProcOnFooBar.golden | 2 +- .../bookshopclient/AsyncGetBook.golden | 2 +- .../SyncCreateSetCredentialsProvider.golden | 2 +- .../SyncCreateSetEndpoint.golden | 2 +- .../samples/bookshopclient/SyncGetBook.golden | 2 +- .../SyncGetBookIntListbook.golden | 2 +- .../SyncGetBookStringListbook.golden | 2 +- .../AsyncFastFibonacci.golden | 2 +- .../AsyncSlowFibonacci.golden | 2 +- .../SyncCreateSetCredentialsProvider.golden | 2 +- .../SyncCreateSetEndpoint.golden | 2 +- .../SyncFastFibonacci.golden | 2 +- .../SyncSlowFibonacci.golden | 2 +- .../samples/echoclient/AsyncBlock.golden | 2 +- .../samples/echoclient/AsyncChat.golden | 2 +- .../samples/echoclient/AsyncChatAgain.golden | 2 +- .../samples/echoclient/AsyncCollect.golden | 2 +- .../echoclient/AsyncCollideName.golden | 2 +- .../samples/echoclient/AsyncEcho.golden | 2 +- .../samples/echoclient/AsyncExpand.golden | 2 +- .../echoclient/AsyncPagedExpand.golden | 2 +- .../echoclient/AsyncPagedExpandPaged.golden | 2 +- .../echoclient/AsyncSimplePagedExpand.golden | 2 +- .../AsyncSimplePagedExpandPaged.golden | 2 +- .../samples/echoclient/AsyncWait.golden | 2 +- .../samples/echoclient/AsyncWaitLRO.golden | 2 +- .../samples/echoclient/SyncBlock.golden | 2 +- .../samples/echoclient/SyncCollideName.golden | 2 +- .../SyncCreateSetCredentialsProvider.golden | 2 +- .../echoclient/SyncCreateSetEndpoint.golden | 2 +- .../samples/echoclient/SyncEcho.golden | 2 +- .../echoclient/SyncEchoFoobarname.golden | 2 +- .../samples/echoclient/SyncEchoNoargs.golden | 2 +- .../echoclient/SyncEchoResourcename.golden | 2 +- .../samples/echoclient/SyncEchoStatus.golden | 2 +- .../samples/echoclient/SyncEchoString.golden | 2 +- .../samples/echoclient/SyncEchoString1.golden | 2 +- .../samples/echoclient/SyncEchoString2.golden | 2 +- .../echoclient/SyncEchoStringSeverity.golden | 2 +- .../samples/echoclient/SyncPagedExpand.golden | 2 +- .../echoclient/SyncSimplePagedExpand.golden | 2 +- .../SyncSimplePagedExpandNoargs.golden | 2 +- .../samples/echoclient/SyncWait.golden | 2 +- .../echoclient/SyncWaitDuration.golden | 2 +- .../echoclient/SyncWaitTimestamp.golden | 2 +- .../identityclient/AsyncCreateUser.golden | 2 +- .../identityclient/AsyncDeleteUser.golden | 2 +- .../identityclient/AsyncGetUser.golden | 2 +- .../identityclient/AsyncListUsers.golden | 2 +- .../identityclient/AsyncListUsersPaged.golden | 2 +- .../identityclient/AsyncUpdateUser.golden | 2 +- .../SyncCreateSetCredentialsProvider.golden | 2 +- .../SyncCreateSetEndpoint.golden | 2 +- .../identityclient/SyncCreateUser.golden | 2 +- .../SyncCreateUserStringStringString.golden | 2 +- ...gStringStringIntStringBooleanDouble.golden | 2 +- ...ngStringIntStringStringStringString.golden | 2 +- .../identityclient/SyncDeleteUser.golden | 2 +- .../SyncDeleteUserString.golden | 2 +- .../SyncDeleteUserUsername.golden | 2 +- .../samples/identityclient/SyncGetUser.golden | 2 +- .../identityclient/SyncGetUserString.golden | 2 +- .../identityclient/SyncGetUserUsername.golden | 2 +- .../identityclient/SyncListUsers.golden | 2 +- .../identityclient/SyncUpdateUser.golden | 2 +- .../messagingclient/AsyncConnect.golden | 2 +- .../messagingclient/AsyncCreateBlurb.golden | 2 +- .../messagingclient/AsyncCreateRoom.golden | 2 +- .../messagingclient/AsyncDeleteBlurb.golden | 2 +- .../messagingclient/AsyncDeleteRoom.golden | 2 +- .../messagingclient/AsyncGetBlurb.golden | 2 +- .../messagingclient/AsyncGetRoom.golden | 2 +- .../messagingclient/AsyncListBlurbs.golden | 2 +- .../AsyncListBlurbsPaged.golden | 2 +- .../messagingclient/AsyncListRooms.golden | 2 +- .../AsyncListRoomsPaged.golden | 2 +- .../messagingclient/AsyncSearchBlurbs.golden | 2 +- .../AsyncSearchBlurbsLRO.golden | 2 +- .../messagingclient/AsyncSendBlurbs.golden | 2 +- .../messagingclient/AsyncStreamBlurbs.golden | 2 +- .../messagingclient/AsyncUpdateBlurb.golden | 2 +- .../messagingclient/AsyncUpdateRoom.golden | 2 +- .../messagingclient/SyncCreateBlurb.golden | 2 +- ...yncCreateBlurbProfilenameBytestring.golden | 2 +- .../SyncCreateBlurbProfilenameString.golden | 2 +- .../SyncCreateBlurbRoomnameBytestring.golden | 2 +- .../SyncCreateBlurbRoomnameString.golden | 2 +- .../SyncCreateBlurbStringBytestring.golden | 2 +- .../SyncCreateBlurbStringString.golden | 2 +- .../messagingclient/SyncCreateRoom.golden | 2 +- .../SyncCreateRoomStringString.golden | 2 +- .../SyncCreateSetCredentialsProvider.golden | 2 +- .../SyncCreateSetEndpoint.golden | 2 +- .../messagingclient/SyncDeleteBlurb.golden | 2 +- .../SyncDeleteBlurbBlurbname.golden | 2 +- .../SyncDeleteBlurbString.golden | 2 +- .../messagingclient/SyncDeleteRoom.golden | 2 +- .../SyncDeleteRoomRoomname.golden | 2 +- .../SyncDeleteRoomString.golden | 2 +- .../messagingclient/SyncGetBlurb.golden | 2 +- .../SyncGetBlurbBlurbname.golden | 2 +- .../messagingclient/SyncGetBlurbString.golden | 2 +- .../messagingclient/SyncGetRoom.golden | 2 +- .../SyncGetRoomRoomname.golden | 2 +- .../messagingclient/SyncGetRoomString.golden | 2 +- .../messagingclient/SyncListBlurbs.golden | 2 +- .../SyncListBlurbsProfilename.golden | 2 +- .../SyncListBlurbsRoomname.golden | 2 +- .../SyncListBlurbsString.golden | 2 +- .../messagingclient/SyncListRooms.golden | 2 +- .../messagingclient/SyncSearchBlurbs.golden | 2 +- .../SyncSearchBlurbsString.golden | 2 +- .../messagingclient/SyncUpdateBlurb.golden | 2 +- .../messagingclient/SyncUpdateRoom.golden | 2 +- .../samples/servicesettings/SyncEcho.golden | 2 +- .../servicesettings/SyncFastFibonacci.golden | 2 +- .../stub/SyncCreateTopic.golden | 2 +- .../servicesettings/stub/SyncDeleteLog.golden | 2 +- .../servicesettings/stub/SyncEcho.golden | 2 +- .../stub/SyncFastFibonacci.golden | 2 +- .../showcase/v1beta1/ComplianceClient.java | 2 +- .../showcase/v1beta1/ComplianceSettings.java | 2 +- .../google/showcase/v1beta1/EchoClient.java | 2 +- .../google/showcase/v1beta1/EchoSettings.java | 2 +- .../showcase/v1beta1/IdentityClient.java | 2 +- .../showcase/v1beta1/IdentitySettings.java | 2 +- .../showcase/v1beta1/MessagingClient.java | 2 +- .../showcase/v1beta1/MessagingSettings.java | 2 +- .../v1beta1/SequenceServiceClient.java | 2 +- .../v1beta1/SequenceServiceSettings.java | 2 +- .../showcase/v1beta1/TestingClient.java | 2 +- .../showcase/v1beta1/TestingSettings.java | 2 +- .../google/showcase/v1beta1/package-info.java | 2 +- .../showcase/v1beta1/stub/ComplianceStub.java | 2 +- .../v1beta1/stub/ComplianceStubSettings.java | 2 +- .../showcase/v1beta1/stub/EchoStub.java | 2 +- .../v1beta1/stub/EchoStubSettings.java | 2 +- .../stub/GrpcComplianceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcComplianceStub.java | 2 +- .../v1beta1/stub/GrpcEchoCallableFactory.java | 2 +- .../showcase/v1beta1/stub/GrpcEchoStub.java | 2 +- .../stub/GrpcIdentityCallableFactory.java | 2 +- .../v1beta1/stub/GrpcIdentityStub.java | 2 +- .../stub/GrpcMessagingCallableFactory.java | 2 +- .../v1beta1/stub/GrpcMessagingStub.java | 2 +- .../GrpcSequenceServiceCallableFactory.java | 2 +- .../v1beta1/stub/GrpcSequenceServiceStub.java | 2 +- .../stub/GrpcTestingCallableFactory.java | 2 +- .../v1beta1/stub/GrpcTestingStub.java | 2 +- .../HttpJsonComplianceCallableFactory.java | 2 +- .../v1beta1/stub/HttpJsonComplianceStub.java | 2 +- .../stub/HttpJsonEchoCallableFactory.java | 2 +- .../v1beta1/stub/HttpJsonEchoStub.java | 2 +- .../stub/HttpJsonIdentityCallableFactory.java | 2 +- .../v1beta1/stub/HttpJsonIdentityStub.java | 2 +- .../HttpJsonMessagingCallableFactory.java | 2 +- .../v1beta1/stub/HttpJsonMessagingStub.java | 2 +- ...ttpJsonSequenceServiceCallableFactory.java | 2 +- .../stub/HttpJsonSequenceServiceStub.java | 2 +- .../stub/HttpJsonTestingCallableFactory.java | 2 +- .../v1beta1/stub/HttpJsonTestingStub.java | 2 +- .../showcase/v1beta1/stub/IdentityStub.java | 2 +- .../v1beta1/stub/IdentityStubSettings.java | 2 +- .../showcase/v1beta1/stub/MessagingStub.java | 2 +- .../v1beta1/stub/MessagingStubSettings.java | 2 +- .../v1beta1/stub/SequenceServiceStub.java | 2 +- .../stub/SequenceServiceStubSettings.java | 2 +- .../showcase/v1beta1/stub/TestingStub.java | 2 +- .../v1beta1/stub/TestingStubSettings.java | 2 +- .../google/showcase/v1beta1/BlurbName.java | 2 +- .../google/showcase/v1beta1/ProfileName.java | 2 +- .../com/google/showcase/v1beta1/RoomName.java | 2 +- .../google/showcase/v1beta1/SequenceName.java | 2 +- .../showcase/v1beta1/SequenceReportName.java | 2 +- .../google/showcase/v1beta1/SessionName.java | 2 +- .../v1beta1/StreamingSequenceName.java | 2 +- .../v1beta1/StreamingSequenceReportName.java | 2 +- .../com/google/showcase/v1beta1/TestName.java | 2 +- .../com/google/showcase/v1beta1/UserName.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../SyncCreateSetCredentialsProvider1.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../listconnections/AsyncListConnections.java | 2 +- .../AsyncListConnectionsPaged.java | 2 +- .../listconnections/SyncListConnections.java | 2 +- .../SyncListConnectionsEndpointname.java | 2 +- .../SyncListConnectionsString.java | 2 +- .../listconnections/SyncListConnections.java | 2 +- .../listconnections/SyncListConnections.java | 2 +- .../tetherstubsettings/egress/SyncEgress.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../tether/create/SyncCreateSetEndpoint.java | 2 +- .../v1/tether/egress/AsyncEgress.java | 2 +- .../v1/tethersettings/egress/SyncEgress.java | 2 +- .../v1/ConnectionServiceClient.java | 2 +- .../ConnectionServiceClientHttpJsonTest.java | 2 +- .../v1/ConnectionServiceClientTest.java | 2 +- .../v1/ConnectionServiceSettings.java | 2 +- .../cloud/apigeeconnect/v1/EndpointName.java | 2 +- .../v1/MockConnectionService.java | 2 +- .../v1/MockConnectionServiceImpl.java | 2 +- .../cloud/apigeeconnect/v1/MockTether.java | 2 +- .../apigeeconnect/v1/MockTetherImpl.java | 2 +- .../cloud/apigeeconnect/v1/TetherClient.java | 2 +- .../apigeeconnect/v1/TetherClientTest.java | 2 +- .../apigeeconnect/v1/TetherSettings.java | 2 +- .../cloud/apigeeconnect/v1/package-info.java | 2 +- .../v1/stub/ConnectionServiceStub.java | 2 +- .../stub/ConnectionServiceStubSettings.java | 2 +- .../GrpcConnectionServiceCallableFactory.java | 2 +- .../v1/stub/GrpcConnectionServiceStub.java | 2 +- .../v1/stub/GrpcTetherCallableFactory.java | 2 +- .../apigeeconnect/v1/stub/GrpcTetherStub.java | 2 +- ...pJsonConnectionServiceCallableFactory.java | 2 +- .../stub/HttpJsonConnectionServiceStub.java | 2 +- .../apigeeconnect/v1/stub/TetherStub.java | 2 +- .../v1/stub/TetherStubSettings.java | 2 +- .../AsyncAnalyzeIamPolicy.java | 2 +- .../SyncAnalyzeIamPolicy.java | 2 +- .../AsyncAnalyzeIamPolicyLongrunning.java | 2 +- .../AsyncAnalyzeIamPolicyLongrunningLRO.java | 2 +- .../SyncAnalyzeIamPolicyLongrunning.java | 2 +- .../analyzemove/AsyncAnalyzeMove.java | 2 +- .../analyzemove/SyncAnalyzeMove.java | 2 +- .../AsyncBatchGetAssetsHistory.java | 2 +- .../SyncBatchGetAssetsHistory.java | 2 +- .../AsyncBatchGetEffectiveIamPolicies.java | 2 +- .../SyncBatchGetEffectiveIamPolicies.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../SyncCreateSetCredentialsProvider1.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../createfeed/AsyncCreateFeed.java | 2 +- .../createfeed/SyncCreateFeed.java | 2 +- .../createfeed/SyncCreateFeedString.java | 2 +- .../AsyncCreateSavedQuery.java | 2 +- .../SyncCreateSavedQuery.java | 2 +- ...eSavedQueryFoldernameSavedqueryString.java | 2 +- ...QueryOrganizationnameSavedqueryString.java | 2 +- ...SavedQueryProjectnameSavedqueryString.java | 2 +- ...reateSavedQueryStringSavedqueryString.java | 2 +- .../deletefeed/AsyncDeleteFeed.java | 2 +- .../deletefeed/SyncDeleteFeed.java | 2 +- .../deletefeed/SyncDeleteFeedFeedname.java | 2 +- .../deletefeed/SyncDeleteFeedString.java | 2 +- .../AsyncDeleteSavedQuery.java | 2 +- .../SyncDeleteSavedQuery.java | 2 +- .../SyncDeleteSavedQuerySavedqueryname.java | 2 +- .../SyncDeleteSavedQueryString.java | 2 +- .../exportassets/AsyncExportAssets.java | 2 +- .../exportassets/AsyncExportAssetsLRO.java | 2 +- .../exportassets/SyncExportAssets.java | 2 +- .../v1/assetservice/getfeed/AsyncGetFeed.java | 2 +- .../v1/assetservice/getfeed/SyncGetFeed.java | 2 +- .../getfeed/SyncGetFeedFeedname.java | 2 +- .../getfeed/SyncGetFeedString.java | 2 +- .../getsavedquery/AsyncGetSavedQuery.java | 2 +- .../getsavedquery/SyncGetSavedQuery.java | 2 +- .../SyncGetSavedQuerySavedqueryname.java | 2 +- .../SyncGetSavedQueryString.java | 2 +- .../listassets/AsyncListAssets.java | 2 +- .../listassets/AsyncListAssetsPaged.java | 2 +- .../listassets/SyncListAssets.java | 2 +- .../SyncListAssetsResourcename.java | 2 +- .../listassets/SyncListAssetsString.java | 2 +- .../listfeeds/AsyncListFeeds.java | 2 +- .../assetservice/listfeeds/SyncListFeeds.java | 2 +- .../listfeeds/SyncListFeedsString.java | 2 +- .../AsyncListSavedQueries.java | 2 +- .../AsyncListSavedQueriesPaged.java | 2 +- .../SyncListSavedQueries.java | 2 +- .../SyncListSavedQueriesFoldername.java | 2 +- .../SyncListSavedQueriesOrganizationname.java | 2 +- .../SyncListSavedQueriesProjectname.java | 2 +- .../SyncListSavedQueriesString.java | 2 +- .../queryassets/AsyncQueryAssets.java | 2 +- .../queryassets/SyncQueryAssets.java | 2 +- .../AsyncSearchAllIamPolicies.java | 2 +- .../AsyncSearchAllIamPoliciesPaged.java | 2 +- .../SyncSearchAllIamPolicies.java | 2 +- .../SyncSearchAllIamPoliciesStringString.java | 2 +- .../AsyncSearchAllResources.java | 2 +- .../AsyncSearchAllResourcesPaged.java | 2 +- .../SyncSearchAllResources.java | 2 +- ...rchAllResourcesStringStringListstring.java | 2 +- .../updatefeed/AsyncUpdateFeed.java | 2 +- .../updatefeed/SyncUpdateFeed.java | 2 +- .../updatefeed/SyncUpdateFeedFeed.java | 2 +- .../AsyncUpdateSavedQuery.java | 2 +- .../SyncUpdateSavedQuery.java | 2 +- ...ncUpdateSavedQuerySavedqueryFieldmask.java | 2 +- .../SyncBatchGetAssetsHistory.java | 2 +- .../SyncBatchGetAssetsHistory.java | 2 +- .../cloud/asset/v1/AssetServiceClient.java | 2 +- .../v1/AssetServiceClientHttpJsonTest.java | 2 +- .../asset/v1/AssetServiceClientTest.java | 2 +- .../cloud/asset/v1/AssetServiceSettings.java | 2 +- .../com/google/cloud/asset/v1/FeedName.java | 2 +- .../com/google/cloud/asset/v1/FolderName.java | 2 +- .../cloud/asset/v1/MockAssetService.java | 2 +- .../cloud/asset/v1/MockAssetServiceImpl.java | 2 +- .../cloud/asset/v1/OrganizationName.java | 2 +- .../google/cloud/asset/v1/ProjectName.java | 2 +- .../google/cloud/asset/v1/SavedQueryName.java | 2 +- .../google/cloud/asset/v1/package-info.java | 2 +- .../cloud/asset/v1/stub/AssetServiceStub.java | 2 +- .../v1/stub/AssetServiceStubSettings.java | 2 +- .../stub/GrpcAssetServiceCallableFactory.java | 2 +- .../asset/v1/stub/GrpcAssetServiceStub.java | 2 +- .../HttpJsonAssetServiceCallableFactory.java | 2 +- .../v1/stub/HttpJsonAssetServiceStub.java | 2 +- .../mutaterow/SyncMutateRow.java | 2 +- .../AsyncCheckAndMutateRow.java | 2 +- .../SyncCheckAndMutateRow.java | 2 +- ...ringRowfilterListmutationListmutation.java | 2 +- ...wfilterListmutationListmutationString.java | 2 +- ...ringRowfilterListmutationListmutation.java | 2 +- ...wfilterListmutationListmutationString.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../v2/bigtable/mutaterow/AsyncMutateRow.java | 2 +- .../v2/bigtable/mutaterow/SyncMutateRow.java | 2 +- ...MutateRowStringBytestringListmutation.java | 2 +- ...RowStringBytestringListmutationString.java | 2 +- ...ateRowTablenameBytestringListmutation.java | 2 +- ...TablenameBytestringListmutationString.java | 2 +- .../bigtable/mutaterows/AsyncMutateRows.java | 2 +- .../pingandwarm/AsyncPingAndWarm.java | 2 +- .../bigtable/pingandwarm/SyncPingAndWarm.java | 2 +- .../SyncPingAndWarmInstancename.java | 2 +- .../SyncPingAndWarmInstancenameString.java | 2 +- .../pingandwarm/SyncPingAndWarmString.java | 2 +- .../SyncPingAndWarmStringString.java | 2 +- .../AsyncReadModifyWriteRow.java | 2 +- .../SyncReadModifyWriteRow.java | 2 +- ...ringBytestringListreadmodifywriterule.java | 2 +- ...testringListreadmodifywriteruleString.java | 2 +- ...nameBytestringListreadmodifywriterule.java | 2 +- ...testringListreadmodifywriteruleString.java | 2 +- .../v2/bigtable/readrows/AsyncReadRows.java | 2 +- .../samplerowkeys/AsyncSampleRowKeys.java | 2 +- .../mutaterow/SyncMutateRow.java | 2 +- .../com/google/bigtable/v2/InstanceName.java | 2 +- .../src/com/google/bigtable/v2/TableName.java | 2 +- .../data/v2/BaseBigtableDataClient.java | 2 +- .../data/v2/BaseBigtableDataClientTest.java | 2 +- .../data/v2/BaseBigtableDataSettings.java | 2 +- .../cloud/bigtable/data/v2/MockBigtable.java | 2 +- .../bigtable/data/v2/MockBigtableImpl.java | 2 +- .../cloud/bigtable/data/v2/package-info.java | 2 +- .../bigtable/data/v2/stub/BigtableStub.java | 2 +- .../data/v2/stub/BigtableStubSettings.java | 2 +- .../v2/stub/GrpcBigtableCallableFactory.java | 2 +- .../data/v2/stub/GrpcBigtableStub.java | 2 +- .../aggregatedlist/AsyncAggregatedList.java | 2 +- .../AsyncAggregatedListPaged.java | 2 +- .../aggregatedlist/SyncAggregatedList.java | 2 +- .../SyncAggregatedListString.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../v1small/addresses/delete/AsyncDelete.java | 2 +- .../addresses/delete/AsyncDeleteLRO.java | 2 +- .../v1small/addresses/delete/SyncDelete.java | 2 +- .../delete/SyncDeleteStringStringString.java | 2 +- .../v1small/addresses/insert/AsyncInsert.java | 2 +- .../addresses/insert/AsyncInsertLRO.java | 2 +- .../v1small/addresses/insert/SyncInsert.java | 2 +- .../insert/SyncInsertStringStringAddress.java | 2 +- .../v1small/addresses/list/AsyncList.java | 2 +- .../addresses/list/AsyncListPaged.java | 2 +- .../v1small/addresses/list/SyncList.java | 2 +- .../list/SyncListStringStringString.java | 2 +- .../aggregatedlist/SyncAggregatedList.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../regionoperations/get/AsyncGet.java | 2 +- .../v1small/regionoperations/get/SyncGet.java | 2 +- .../get/SyncGetStringStringString.java | 2 +- .../regionoperations/wait/AsyncWait.java | 2 +- .../regionoperations/wait/SyncWait.java | 2 +- .../wait/SyncWaitStringStringString.java | 2 +- .../regionoperationssettings/get/SyncGet.java | 2 +- .../aggregatedlist/SyncAggregatedList.java | 2 +- .../get/SyncGet.java | 2 +- .../compute/v1small/AddressesClient.java | 2 +- .../compute/v1small/AddressesClientTest.java | 2 +- .../compute/v1small/AddressesSettings.java | 2 +- .../v1small/RegionOperationsClient.java | 2 +- .../v1small/RegionOperationsClientTest.java | 2 +- .../v1small/RegionOperationsSettings.java | 2 +- .../cloud/compute/v1small/package-info.java | 2 +- .../compute/v1small/stub/AddressesStub.java | 2 +- .../v1small/stub/AddressesStubSettings.java | 2 +- .../HttpJsonAddressesCallableFactory.java | 2 +- .../v1small/stub/HttpJsonAddressesStub.java | 2 +- ...tpJsonRegionOperationsCallableFactory.java | 2 +- .../stub/HttpJsonRegionOperationsStub.java | 2 +- .../v1small/stub/RegionOperationsStub.java | 2 +- .../stub/RegionOperationsStubSettings.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../SyncCreateSetCredentialsProvider1.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../AsyncGenerateAccessToken.java | 2 +- .../SyncGenerateAccessToken.java | 2 +- ...countnameListstringListstringDuration.java | 2 +- ...kenStringListstringListstringDuration.java | 2 +- .../generateidtoken/AsyncGenerateIdToken.java | 2 +- .../generateidtoken/SyncGenerateIdToken.java | 2 +- ...iceaccountnameListstringStringBoolean.java | 2 +- ...eIdTokenStringListstringStringBoolean.java | 2 +- .../signblob/AsyncSignBlob.java | 2 +- .../iamcredentials/signblob/SyncSignBlob.java | 2 +- ...erviceaccountnameListstringBytestring.java | 2 +- ...yncSignBlobStringListstringBytestring.java | 2 +- .../iamcredentials/signjwt/AsyncSignJwt.java | 2 +- .../iamcredentials/signjwt/SyncSignJwt.java | 2 +- ...JwtServiceaccountnameListstringString.java | 2 +- .../SyncSignJwtStringListstringString.java | 2 +- .../SyncGenerateAccessToken.java | 2 +- .../SyncGenerateAccessToken.java | 2 +- .../v1/IAMCredentialsClientHttpJsonTest.java | 2 +- .../v1/IAMCredentialsClientTest.java | 2 +- .../credentials/v1/IamCredentialsClient.java | 2 +- .../v1/IamCredentialsSettings.java | 2 +- .../credentials/v1/MockIAMCredentials.java | 2 +- .../v1/MockIAMCredentialsImpl.java | 2 +- .../credentials/v1/ServiceAccountName.java | 2 +- .../iam/credentials/v1/package-info.java | 2 +- .../GrpcIamCredentialsCallableFactory.java | 2 +- .../v1/stub/GrpcIamCredentialsStub.java | 2 +- ...HttpJsonIamCredentialsCallableFactory.java | 2 +- .../v1/stub/HttpJsonIamCredentialsStub.java | 2 +- .../v1/stub/IamCredentialsStub.java | 2 +- .../v1/stub/IamCredentialsStubSettings.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../getiampolicy/AsyncGetIamPolicy.java | 2 +- .../getiampolicy/SyncGetIamPolicy.java | 2 +- .../setiampolicy/AsyncSetIamPolicy.java | 2 +- .../setiampolicy/SyncSetIamPolicy.java | 2 +- .../AsyncTestIamPermissions.java | 2 +- .../SyncTestIamPermissions.java | 2 +- .../setiampolicy/SyncSetIamPolicy.java | 2 +- .../setiampolicy/SyncSetIamPolicy.java | 2 +- .../com/google/iam/v1/IAMPolicyClient.java | 2 +- .../google/iam/v1/IAMPolicyClientTest.java | 2 +- .../com/google/iam/v1/IAMPolicySettings.java | 2 +- .../src/com/google/iam/v1/MockIAMPolicy.java | 2 +- .../com/google/iam/v1/MockIAMPolicyImpl.java | 2 +- .../src/com/google/iam/v1/package-info.java | 2 +- .../v1/stub/GrpcIAMPolicyCallableFactory.java | 2 +- .../google/iam/v1/stub/GrpcIAMPolicyStub.java | 2 +- .../com/google/iam/v1/stub/IAMPolicyStub.java | 2 +- .../iam/v1/stub/IAMPolicyStubSettings.java | 2 +- .../AsyncAsymmetricDecrypt.java | 2 +- .../SyncAsymmetricDecrypt.java | 2 +- ...DecryptCryptokeyversionnameBytestring.java | 2 +- ...SyncAsymmetricDecryptStringBytestring.java | 2 +- .../asymmetricsign/AsyncAsymmetricSign.java | 2 +- .../asymmetricsign/SyncAsymmetricSign.java | 2 +- ...mmetricSignCryptokeyversionnameDigest.java | 2 +- .../SyncAsymmetricSignStringDigest.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../createcryptokey/AsyncCreateCryptoKey.java | 2 +- .../createcryptokey/SyncCreateCryptoKey.java | 2 +- ...teCryptoKeyKeyringnameStringCryptokey.java | 2 +- ...cCreateCryptoKeyStringStringCryptokey.java | 2 +- .../AsyncCreateCryptoKeyVersion.java | 2 +- .../SyncCreateCryptoKeyVersion.java | 2 +- ...yVersionCryptokeynameCryptokeyversion.java | 2 +- ...ryptoKeyVersionStringCryptokeyversion.java | 2 +- .../createimportjob/AsyncCreateImportJob.java | 2 +- .../createimportjob/SyncCreateImportJob.java | 2 +- ...teImportJobKeyringnameStringImportjob.java | 2 +- ...cCreateImportJobStringStringImportjob.java | 2 +- .../createkeyring/AsyncCreateKeyRing.java | 2 +- .../createkeyring/SyncCreateKeyRing.java | 2 +- ...reateKeyRingLocationnameStringKeyring.java | 2 +- .../SyncCreateKeyRingStringStringKeyring.java | 2 +- .../decrypt/AsyncDecrypt.java | 2 +- .../decrypt/SyncDecrypt.java | 2 +- .../SyncDecryptCryptokeynameBytestring.java | 2 +- .../decrypt/SyncDecryptStringBytestring.java | 2 +- .../AsyncDestroyCryptoKeyVersion.java | 2 +- .../SyncDestroyCryptoKeyVersion.java | 2 +- ...yCryptoKeyVersionCryptokeyversionname.java | 2 +- .../SyncDestroyCryptoKeyVersionString.java | 2 +- .../encrypt/AsyncEncrypt.java | 2 +- .../encrypt/SyncEncrypt.java | 2 +- .../SyncEncryptResourcenameBytestring.java | 2 +- .../encrypt/SyncEncryptStringBytestring.java | 2 +- .../getcryptokey/AsyncGetCryptoKey.java | 2 +- .../getcryptokey/SyncGetCryptoKey.java | 2 +- .../SyncGetCryptoKeyCryptokeyname.java | 2 +- .../getcryptokey/SyncGetCryptoKeyString.java | 2 +- .../AsyncGetCryptoKeyVersion.java | 2 +- .../SyncGetCryptoKeyVersion.java | 2 +- ...tCryptoKeyVersionCryptokeyversionname.java | 2 +- .../SyncGetCryptoKeyVersionString.java | 2 +- .../getiampolicy/AsyncGetIamPolicy.java | 2 +- .../getiampolicy/SyncGetIamPolicy.java | 2 +- .../getimportjob/AsyncGetImportJob.java | 2 +- .../getimportjob/SyncGetImportJob.java | 2 +- .../SyncGetImportJobImportjobname.java | 2 +- .../getimportjob/SyncGetImportJobString.java | 2 +- .../getkeyring/AsyncGetKeyRing.java | 2 +- .../getkeyring/SyncGetKeyRing.java | 2 +- .../getkeyring/SyncGetKeyRingKeyringname.java | 2 +- .../getkeyring/SyncGetKeyRingString.java | 2 +- .../getlocation/AsyncGetLocation.java | 2 +- .../getlocation/SyncGetLocation.java | 2 +- .../getpublickey/AsyncGetPublicKey.java | 2 +- .../getpublickey/SyncGetPublicKey.java | 2 +- .../SyncGetPublicKeyCryptokeyversionname.java | 2 +- .../getpublickey/SyncGetPublicKeyString.java | 2 +- .../AsyncImportCryptoKeyVersion.java | 2 +- .../SyncImportCryptoKeyVersion.java | 2 +- .../listcryptokeys/AsyncListCryptoKeys.java | 2 +- .../AsyncListCryptoKeysPaged.java | 2 +- .../listcryptokeys/SyncListCryptoKeys.java | 2 +- .../SyncListCryptoKeysKeyringname.java | 2 +- .../SyncListCryptoKeysString.java | 2 +- .../AsyncListCryptoKeyVersions.java | 2 +- .../AsyncListCryptoKeyVersionsPaged.java | 2 +- .../SyncListCryptoKeyVersions.java | 2 +- ...yncListCryptoKeyVersionsCryptokeyname.java | 2 +- .../SyncListCryptoKeyVersionsString.java | 2 +- .../listimportjobs/AsyncListImportJobs.java | 2 +- .../AsyncListImportJobsPaged.java | 2 +- .../listimportjobs/SyncListImportJobs.java | 2 +- .../SyncListImportJobsKeyringname.java | 2 +- .../SyncListImportJobsString.java | 2 +- .../listkeyrings/AsyncListKeyRings.java | 2 +- .../listkeyrings/AsyncListKeyRingsPaged.java | 2 +- .../listkeyrings/SyncListKeyRings.java | 2 +- .../SyncListKeyRingsLocationname.java | 2 +- .../listkeyrings/SyncListKeyRingsString.java | 2 +- .../listlocations/AsyncListLocations.java | 2 +- .../AsyncListLocationsPaged.java | 2 +- .../listlocations/SyncListLocations.java | 2 +- .../AsyncRestoreCryptoKeyVersion.java | 2 +- .../SyncRestoreCryptoKeyVersion.java | 2 +- ...eCryptoKeyVersionCryptokeyversionname.java | 2 +- .../SyncRestoreCryptoKeyVersionString.java | 2 +- .../AsyncTestIamPermissions.java | 2 +- .../SyncTestIamPermissions.java | 2 +- .../updatecryptokey/AsyncUpdateCryptoKey.java | 2 +- .../updatecryptokey/SyncUpdateCryptoKey.java | 2 +- ...SyncUpdateCryptoKeyCryptokeyFieldmask.java | 2 +- .../AsyncUpdateCryptoKeyPrimaryVersion.java | 2 +- .../SyncUpdateCryptoKeyPrimaryVersion.java | 2 +- ...oKeyPrimaryVersionCryptokeynameString.java | 2 +- ...teCryptoKeyPrimaryVersionStringString.java | 2 +- .../AsyncUpdateCryptoKeyVersion.java | 2 +- .../SyncUpdateCryptoKeyVersion.java | 2 +- ...toKeyVersionCryptokeyversionFieldmask.java | 2 +- .../getkeyring/SyncGetKeyRing.java | 2 +- .../getkeyring/SyncGetKeyRing.java | 2 +- .../google/cloud/kms/v1/CryptoKeyName.java | 2 +- .../cloud/kms/v1/CryptoKeyVersionName.java | 2 +- .../google/cloud/kms/v1/ImportJobName.java | 2 +- .../kms/v1/KeyManagementServiceClient.java | 2 +- .../v1/KeyManagementServiceClientTest.java | 2 +- .../kms/v1/KeyManagementServiceSettings.java | 2 +- .../com/google/cloud/kms/v1/KeyRingName.java | 2 +- .../com/google/cloud/kms/v1/LocationName.java | 2 +- .../google/cloud/kms/v1/MockIAMPolicy.java | 2 +- .../cloud/kms/v1/MockIAMPolicyImpl.java | 2 +- .../kms/v1/MockKeyManagementService.java | 2 +- .../kms/v1/MockKeyManagementServiceImpl.java | 2 +- .../google/cloud/kms/v1/MockLocations.java | 2 +- .../cloud/kms/v1/MockLocationsImpl.java | 2 +- .../com/google/cloud/kms/v1/package-info.java | 2 +- ...pcKeyManagementServiceCallableFactory.java | 2 +- .../v1/stub/GrpcKeyManagementServiceStub.java | 2 +- .../kms/v1/stub/KeyManagementServiceStub.java | 2 +- .../KeyManagementServiceStubSettings.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../SyncCreateSetCredentialsProvider1.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../createbook/AsyncCreateBook.java | 2 +- .../createbook/SyncCreateBook.java | 2 +- .../SyncCreateBookShelfnameBook.java | 2 +- .../createbook/SyncCreateBookStringBook.java | 2 +- .../createshelf/AsyncCreateShelf.java | 2 +- .../createshelf/SyncCreateShelf.java | 2 +- .../createshelf/SyncCreateShelfShelf.java | 2 +- .../deletebook/AsyncDeleteBook.java | 2 +- .../deletebook/SyncDeleteBook.java | 2 +- .../deletebook/SyncDeleteBookBookname.java | 2 +- .../deletebook/SyncDeleteBookString.java | 2 +- .../deleteshelf/AsyncDeleteShelf.java | 2 +- .../deleteshelf/SyncDeleteShelf.java | 2 +- .../deleteshelf/SyncDeleteShelfShelfname.java | 2 +- .../deleteshelf/SyncDeleteShelfString.java | 2 +- .../libraryservice/getbook/AsyncGetBook.java | 2 +- .../libraryservice/getbook/SyncGetBook.java | 2 +- .../getbook/SyncGetBookBookname.java | 2 +- .../getbook/SyncGetBookString.java | 2 +- .../getshelf/AsyncGetShelf.java | 2 +- .../libraryservice/getshelf/SyncGetShelf.java | 2 +- .../getshelf/SyncGetShelfShelfname.java | 2 +- .../getshelf/SyncGetShelfString.java | 2 +- .../listbooks/AsyncListBooks.java | 2 +- .../listbooks/AsyncListBooksPaged.java | 2 +- .../listbooks/SyncListBooks.java | 2 +- .../listbooks/SyncListBooksShelfname.java | 2 +- .../listbooks/SyncListBooksString.java | 2 +- .../listshelves/AsyncListShelves.java | 2 +- .../listshelves/AsyncListShelvesPaged.java | 2 +- .../listshelves/SyncListShelves.java | 2 +- .../mergeshelves/AsyncMergeShelves.java | 2 +- .../mergeshelves/SyncMergeShelves.java | 2 +- .../SyncMergeShelvesShelfnameShelfname.java | 2 +- .../SyncMergeShelvesShelfnameString.java | 2 +- .../SyncMergeShelvesStringShelfname.java | 2 +- .../SyncMergeShelvesStringString.java | 2 +- .../movebook/AsyncMoveBook.java | 2 +- .../libraryservice/movebook/SyncMoveBook.java | 2 +- .../SyncMoveBookBooknameShelfname.java | 2 +- .../movebook/SyncMoveBookBooknameString.java | 2 +- .../movebook/SyncMoveBookStringShelfname.java | 2 +- .../movebook/SyncMoveBookStringString.java | 2 +- .../updatebook/AsyncUpdateBook.java | 2 +- .../updatebook/SyncUpdateBook.java | 2 +- .../SyncUpdateBookBookFieldmask.java | 2 +- .../createshelf/SyncCreateShelf.java | 2 +- .../createshelf/SyncCreateShelf.java | 2 +- .../library/v1/LibraryServiceClient.java | 2 +- .../v1/LibraryServiceClientHttpJsonTest.java | 2 +- .../library/v1/LibraryServiceClientTest.java | 2 +- .../library/v1/LibraryServiceSettings.java | 2 +- .../library/v1/MockLibraryService.java | 2 +- .../library/v1/MockLibraryServiceImpl.java | 2 +- .../example/library/v1/package-info.java | 2 +- .../GrpcLibraryServiceCallableFactory.java | 2 +- .../v1/stub/GrpcLibraryServiceStub.java | 2 +- ...HttpJsonLibraryServiceCallableFactory.java | 2 +- .../v1/stub/HttpJsonLibraryServiceStub.java | 2 +- .../library/v1/stub/LibraryServiceStub.java | 2 +- .../v1/stub/LibraryServiceStubSettings.java | 2 +- .../google/example/library/v1/BookName.java | 2 +- .../google/example/library/v1/ShelfName.java | 2 +- .../copylogentries/AsyncCopyLogEntries.java | 2 +- .../AsyncCopyLogEntriesLRO.java | 2 +- .../copylogentries/SyncCopyLogEntries.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../createbucket/AsyncCreateBucket.java | 2 +- .../createbucket/SyncCreateBucket.java | 2 +- .../createexclusion/AsyncCreateExclusion.java | 2 +- .../createexclusion/SyncCreateExclusion.java | 2 +- ...clusionBillingaccountnameLogexclusion.java | 2 +- ...CreateExclusionFoldernameLogexclusion.java | 2 +- ...ExclusionOrganizationnameLogexclusion.java | 2 +- ...reateExclusionProjectnameLogexclusion.java | 2 +- ...SyncCreateExclusionStringLogexclusion.java | 2 +- .../createsink/AsyncCreateSink.java | 2 +- .../createsink/SyncCreateSink.java | 2 +- ...ncCreateSinkBillingaccountnameLogsink.java | 2 +- .../SyncCreateSinkFoldernameLogsink.java | 2 +- ...SyncCreateSinkOrganizationnameLogsink.java | 2 +- .../SyncCreateSinkProjectnameLogsink.java | 2 +- .../SyncCreateSinkStringLogsink.java | 2 +- .../createview/AsyncCreateView.java | 2 +- .../createview/SyncCreateView.java | 2 +- .../deletebucket/AsyncDeleteBucket.java | 2 +- .../deletebucket/SyncDeleteBucket.java | 2 +- .../deleteexclusion/AsyncDeleteExclusion.java | 2 +- .../deleteexclusion/SyncDeleteExclusion.java | 2 +- .../SyncDeleteExclusionLogexclusionname.java | 2 +- .../SyncDeleteExclusionString.java | 2 +- .../deletesink/AsyncDeleteSink.java | 2 +- .../deletesink/SyncDeleteSink.java | 2 +- .../deletesink/SyncDeleteSinkLogsinkname.java | 2 +- .../deletesink/SyncDeleteSinkString.java | 2 +- .../deleteview/AsyncDeleteView.java | 2 +- .../deleteview/SyncDeleteView.java | 2 +- .../getbucket/AsyncGetBucket.java | 2 +- .../getbucket/SyncGetBucket.java | 2 +- .../getcmeksettings/AsyncGetCmekSettings.java | 2 +- .../getcmeksettings/SyncGetCmekSettings.java | 2 +- .../getexclusion/AsyncGetExclusion.java | 2 +- .../getexclusion/SyncGetExclusion.java | 2 +- .../SyncGetExclusionLogexclusionname.java | 2 +- .../getexclusion/SyncGetExclusionString.java | 2 +- .../getsettings/AsyncGetSettings.java | 2 +- .../getsettings/SyncGetSettings.java | 2 +- .../SyncGetSettingsSettingsname.java | 2 +- .../getsettings/SyncGetSettingsString.java | 2 +- .../configservicev2/getsink/AsyncGetSink.java | 2 +- .../configservicev2/getsink/SyncGetSink.java | 2 +- .../getsink/SyncGetSinkLogsinkname.java | 2 +- .../getsink/SyncGetSinkString.java | 2 +- .../configservicev2/getview/AsyncGetView.java | 2 +- .../configservicev2/getview/SyncGetView.java | 2 +- .../listbuckets/AsyncListBuckets.java | 2 +- .../listbuckets/AsyncListBucketsPaged.java | 2 +- .../listbuckets/SyncListBuckets.java | 2 +- ...ListBucketsBillingaccountlocationname.java | 2 +- .../SyncListBucketsFolderlocationname.java | 2 +- .../SyncListBucketsLocationname.java | 2 +- ...ncListBucketsOrganizationlocationname.java | 2 +- .../listbuckets/SyncListBucketsString.java | 2 +- .../listexclusions/AsyncListExclusions.java | 2 +- .../AsyncListExclusionsPaged.java | 2 +- .../listexclusions/SyncListExclusions.java | 2 +- .../SyncListExclusionsBillingaccountname.java | 2 +- .../SyncListExclusionsFoldername.java | 2 +- .../SyncListExclusionsOrganizationname.java | 2 +- .../SyncListExclusionsProjectname.java | 2 +- .../SyncListExclusionsString.java | 2 +- .../listsinks/AsyncListSinks.java | 2 +- .../listsinks/AsyncListSinksPaged.java | 2 +- .../listsinks/SyncListSinks.java | 2 +- .../SyncListSinksBillingaccountname.java | 2 +- .../listsinks/SyncListSinksFoldername.java | 2 +- .../SyncListSinksOrganizationname.java | 2 +- .../listsinks/SyncListSinksProjectname.java | 2 +- .../listsinks/SyncListSinksString.java | 2 +- .../listviews/AsyncListViews.java | 2 +- .../listviews/AsyncListViewsPaged.java | 2 +- .../listviews/SyncListViews.java | 2 +- .../listviews/SyncListViewsString.java | 2 +- .../undeletebucket/AsyncUndeleteBucket.java | 2 +- .../undeletebucket/SyncUndeleteBucket.java | 2 +- .../updatebucket/AsyncUpdateBucket.java | 2 +- .../updatebucket/SyncUpdateBucket.java | 2 +- .../AsyncUpdateCmekSettings.java | 2 +- .../SyncUpdateCmekSettings.java | 2 +- .../updateexclusion/AsyncUpdateExclusion.java | 2 +- .../updateexclusion/SyncUpdateExclusion.java | 2 +- ...LogexclusionnameLogexclusionFieldmask.java | 2 +- ...eExclusionStringLogexclusionFieldmask.java | 2 +- .../updatesettings/AsyncUpdateSettings.java | 2 +- .../updatesettings/SyncUpdateSettings.java | 2 +- .../SyncUpdateSettingsSettingsFieldmask.java | 2 +- .../updatesink/AsyncUpdateSink.java | 2 +- .../updatesink/SyncUpdateSink.java | 2 +- .../SyncUpdateSinkLogsinknameLogsink.java | 2 +- ...UpdateSinkLogsinknameLogsinkFieldmask.java | 2 +- .../SyncUpdateSinkStringLogsink.java | 2 +- .../SyncUpdateSinkStringLogsinkFieldmask.java | 2 +- .../updateview/AsyncUpdateView.java | 2 +- .../updateview/SyncUpdateView.java | 2 +- .../getbucket/SyncGetBucket.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../deletelog/AsyncDeleteLog.java | 2 +- .../deletelog/SyncDeleteLog.java | 2 +- .../deletelog/SyncDeleteLogLogname.java | 2 +- .../deletelog/SyncDeleteLogString.java | 2 +- .../listlogentries/AsyncListLogEntries.java | 2 +- .../AsyncListLogEntriesPaged.java | 2 +- .../listlogentries/SyncListLogEntries.java | 2 +- ...cListLogEntriesListstringStringString.java | 2 +- .../listlogs/AsyncListLogs.java | 2 +- .../listlogs/AsyncListLogsPaged.java | 2 +- .../listlogs/SyncListLogs.java | 2 +- .../SyncListLogsBillingaccountname.java | 2 +- .../listlogs/SyncListLogsFoldername.java | 2 +- .../SyncListLogsOrganizationname.java | 2 +- .../listlogs/SyncListLogsProjectname.java | 2 +- .../listlogs/SyncListLogsString.java | 2 +- ...AsyncListMonitoredResourceDescriptors.java | 2 +- ...ListMonitoredResourceDescriptorsPaged.java | 2 +- .../SyncListMonitoredResourceDescriptors.java | 2 +- .../taillogentries/AsyncTailLogEntries.java | 2 +- .../writelogentries/AsyncWriteLogEntries.java | 2 +- .../writelogentries/SyncWriteLogEntries.java | 2 +- ...edresourceMapstringstringListlogentry.java | 2 +- ...edresourceMapstringstringListlogentry.java | 2 +- .../deletelog/SyncDeleteLog.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../createlogmetric/AsyncCreateLogMetric.java | 2 +- .../createlogmetric/SyncCreateLogMetric.java | 2 +- ...ncCreateLogMetricProjectnameLogmetric.java | 2 +- .../SyncCreateLogMetricStringLogmetric.java | 2 +- .../deletelogmetric/AsyncDeleteLogMetric.java | 2 +- .../deletelogmetric/SyncDeleteLogMetric.java | 2 +- .../SyncDeleteLogMetricLogmetricname.java | 2 +- .../SyncDeleteLogMetricString.java | 2 +- .../getlogmetric/AsyncGetLogMetric.java | 2 +- .../getlogmetric/SyncGetLogMetric.java | 2 +- .../SyncGetLogMetricLogmetricname.java | 2 +- .../getlogmetric/SyncGetLogMetricString.java | 2 +- .../listlogmetrics/AsyncListLogMetrics.java | 2 +- .../AsyncListLogMetricsPaged.java | 2 +- .../listlogmetrics/SyncListLogMetrics.java | 2 +- .../SyncListLogMetricsProjectname.java | 2 +- .../SyncListLogMetricsString.java | 2 +- .../updatelogmetric/AsyncUpdateLogMetric.java | 2 +- .../updatelogmetric/SyncUpdateLogMetric.java | 2 +- ...UpdateLogMetricLogmetricnameLogmetric.java | 2 +- .../SyncUpdateLogMetricStringLogmetric.java | 2 +- .../getlogmetric/SyncGetLogMetric.java | 2 +- .../getbucket/SyncGetBucket.java | 2 +- .../deletelog/SyncDeleteLog.java | 2 +- .../getlogmetric/SyncGetLogMetric.java | 2 +- .../google/cloud/logging/v2/ConfigClient.java | 2 +- .../cloud/logging/v2/ConfigClientTest.java | 2 +- .../cloud/logging/v2/ConfigSettings.java | 2 +- .../cloud/logging/v2/LoggingClient.java | 2 +- .../cloud/logging/v2/LoggingClientTest.java | 2 +- .../cloud/logging/v2/LoggingSettings.java | 2 +- .../cloud/logging/v2/MetricsClient.java | 2 +- .../cloud/logging/v2/MetricsClientTest.java | 2 +- .../cloud/logging/v2/MetricsSettings.java | 2 +- .../cloud/logging/v2/MockConfigServiceV2.java | 2 +- .../logging/v2/MockConfigServiceV2Impl.java | 2 +- .../logging/v2/MockLoggingServiceV2.java | 2 +- .../logging/v2/MockLoggingServiceV2Impl.java | 2 +- .../logging/v2/MockMetricsServiceV2.java | 2 +- .../logging/v2/MockMetricsServiceV2Impl.java | 2 +- .../google/cloud/logging/v2/package-info.java | 2 +- .../logging/v2/stub/ConfigServiceV2Stub.java | 2 +- .../v2/stub/ConfigServiceV2StubSettings.java | 2 +- .../GrpcConfigServiceV2CallableFactory.java | 2 +- .../v2/stub/GrpcConfigServiceV2Stub.java | 2 +- .../GrpcLoggingServiceV2CallableFactory.java | 2 +- .../v2/stub/GrpcLoggingServiceV2Stub.java | 2 +- .../GrpcMetricsServiceV2CallableFactory.java | 2 +- .../v2/stub/GrpcMetricsServiceV2Stub.java | 2 +- .../logging/v2/stub/LoggingServiceV2Stub.java | 2 +- .../v2/stub/LoggingServiceV2StubSettings.java | 2 +- .../logging/v2/stub/MetricsServiceV2Stub.java | 2 +- .../v2/stub/MetricsServiceV2StubSettings.java | 2 +- .../v2/BillingAccountLocationName.java | 2 +- .../google/logging/v2/BillingAccountName.java | 2 +- .../google/logging/v2/CmekSettingsName.java | 2 +- .../google/logging/v2/FolderLocationName.java | 2 +- .../src/com/google/logging/v2/FolderName.java | 2 +- .../com/google/logging/v2/LocationName.java | 2 +- .../com/google/logging/v2/LogBucketName.java | 2 +- .../google/logging/v2/LogExclusionName.java | 2 +- .../com/google/logging/v2/LogMetricName.java | 2 +- .../src/com/google/logging/v2/LogName.java | 2 +- .../com/google/logging/v2/LogSinkName.java | 2 +- .../com/google/logging/v2/LogViewName.java | 2 +- .../logging/v2/OrganizationLocationName.java | 2 +- .../google/logging/v2/OrganizationName.java | 2 +- .../com/google/logging/v2/ProjectName.java | 2 +- .../com/google/logging/v2/SettingsName.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../createtopic/AsyncCreateTopic.java | 2 +- .../createtopic/SyncCreateTopic.java | 2 +- .../createtopic/SyncCreateTopicString.java | 2 +- .../createtopic/SyncCreateTopicTopicname.java | 2 +- .../deletetopic/AsyncDeleteTopic.java | 2 +- .../deletetopic/SyncDeleteTopic.java | 2 +- .../deletetopic/SyncDeleteTopicString.java | 2 +- .../deletetopic/SyncDeleteTopicTopicname.java | 2 +- .../AsyncDetachSubscription.java | 2 +- .../SyncDetachSubscription.java | 2 +- .../getiampolicy/AsyncGetIamPolicy.java | 2 +- .../getiampolicy/SyncGetIamPolicy.java | 2 +- .../v1/publisher/gettopic/AsyncGetTopic.java | 2 +- .../v1/publisher/gettopic/SyncGetTopic.java | 2 +- .../gettopic/SyncGetTopicString.java | 2 +- .../gettopic/SyncGetTopicTopicname.java | 2 +- .../publisher/listtopics/AsyncListTopics.java | 2 +- .../listtopics/AsyncListTopicsPaged.java | 2 +- .../publisher/listtopics/SyncListTopics.java | 2 +- .../listtopics/SyncListTopicsProjectname.java | 2 +- .../listtopics/SyncListTopicsString.java | 2 +- .../AsyncListTopicSnapshots.java | 2 +- .../AsyncListTopicSnapshotsPaged.java | 2 +- .../SyncListTopicSnapshots.java | 2 +- .../SyncListTopicSnapshotsString.java | 2 +- .../SyncListTopicSnapshotsTopicname.java | 2 +- .../AsyncListTopicSubscriptions.java | 2 +- .../AsyncListTopicSubscriptionsPaged.java | 2 +- .../SyncListTopicSubscriptions.java | 2 +- .../SyncListTopicSubscriptionsString.java | 2 +- .../SyncListTopicSubscriptionsTopicname.java | 2 +- .../v1/publisher/publish/AsyncPublish.java | 2 +- .../v1/publisher/publish/SyncPublish.java | 2 +- .../SyncPublishStringListpubsubmessage.java | 2 +- ...SyncPublishTopicnameListpubsubmessage.java | 2 +- .../setiampolicy/AsyncSetIamPolicy.java | 2 +- .../setiampolicy/SyncSetIamPolicy.java | 2 +- .../AsyncTestIamPermissions.java | 2 +- .../SyncTestIamPermissions.java | 2 +- .../updatetopic/AsyncUpdateTopic.java | 2 +- .../updatetopic/SyncUpdateTopic.java | 2 +- .../commitschema/AsyncCommitSchema.java | 2 +- .../commitschema/SyncCommitSchema.java | 2 +- .../SyncCommitSchemaSchemanameSchema.java | 2 +- .../SyncCommitSchemaStringSchema.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../createschema/AsyncCreateSchema.java | 2 +- .../createschema/SyncCreateSchema.java | 2 +- ...ncCreateSchemaProjectnameSchemaString.java | 2 +- .../SyncCreateSchemaStringSchemaString.java | 2 +- .../deleteschema/AsyncDeleteSchema.java | 2 +- .../deleteschema/SyncDeleteSchema.java | 2 +- .../SyncDeleteSchemaSchemaname.java | 2 +- .../deleteschema/SyncDeleteSchemaString.java | 2 +- .../AsyncDeleteSchemaRevision.java | 2 +- .../SyncDeleteSchemaRevision.java | 2 +- ...cDeleteSchemaRevisionSchemanameString.java | 2 +- .../SyncDeleteSchemaRevisionStringString.java | 2 +- .../getiampolicy/AsyncGetIamPolicy.java | 2 +- .../getiampolicy/SyncGetIamPolicy.java | 2 +- .../getschema/AsyncGetSchema.java | 2 +- .../getschema/SyncGetSchema.java | 2 +- .../getschema/SyncGetSchemaSchemaname.java | 2 +- .../getschema/SyncGetSchemaString.java | 2 +- .../AsyncListSchemaRevisions.java | 2 +- .../AsyncListSchemaRevisionsPaged.java | 2 +- .../SyncListSchemaRevisions.java | 2 +- .../SyncListSchemaRevisionsSchemaname.java | 2 +- .../SyncListSchemaRevisionsString.java | 2 +- .../listschemas/AsyncListSchemas.java | 2 +- .../listschemas/AsyncListSchemasPaged.java | 2 +- .../listschemas/SyncListSchemas.java | 2 +- .../SyncListSchemasProjectname.java | 2 +- .../listschemas/SyncListSchemasString.java | 2 +- .../rollbackschema/AsyncRollbackSchema.java | 2 +- .../rollbackschema/SyncRollbackSchema.java | 2 +- .../SyncRollbackSchemaSchemanameString.java | 2 +- .../SyncRollbackSchemaStringString.java | 2 +- .../setiampolicy/AsyncSetIamPolicy.java | 2 +- .../setiampolicy/SyncSetIamPolicy.java | 2 +- .../AsyncTestIamPermissions.java | 2 +- .../SyncTestIamPermissions.java | 2 +- .../validatemessage/AsyncValidateMessage.java | 2 +- .../validatemessage/SyncValidateMessage.java | 2 +- .../validateschema/AsyncValidateSchema.java | 2 +- .../validateschema/SyncValidateSchema.java | 2 +- .../SyncValidateSchemaProjectnameSchema.java | 2 +- .../SyncValidateSchemaStringSchema.java | 2 +- .../createschema/SyncCreateSchema.java | 2 +- .../createtopic/SyncCreateTopic.java | 2 +- .../createschema/SyncCreateSchema.java | 2 +- .../SyncCreateSubscription.java | 2 +- .../acknowledge/AsyncAcknowledge.java | 2 +- .../acknowledge/SyncAcknowledge.java | 2 +- .../SyncAcknowledgeStringListstring.java | 2 +- ...AcknowledgeSubscriptionnameListstring.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../createsnapshot/AsyncCreateSnapshot.java | 2 +- .../createsnapshot/SyncCreateSnapshot.java | 2 +- .../SyncCreateSnapshotSnapshotnameString.java | 2 +- ...eSnapshotSnapshotnameSubscriptionname.java | 2 +- .../SyncCreateSnapshotStringString.java | 2 +- ...cCreateSnapshotStringSubscriptionname.java | 2 +- .../AsyncCreateSubscription.java | 2 +- .../SyncCreateSubscription.java | 2 +- ...SubscriptionStringStringPushconfigInt.java | 2 +- ...scriptionStringTopicnamePushconfigInt.java | 2 +- ...onSubscriptionnameStringPushconfigInt.java | 2 +- ...ubscriptionnameTopicnamePushconfigInt.java | 2 +- .../deletesnapshot/AsyncDeleteSnapshot.java | 2 +- .../deletesnapshot/SyncDeleteSnapshot.java | 2 +- .../SyncDeleteSnapshotSnapshotname.java | 2 +- .../SyncDeleteSnapshotString.java | 2 +- .../AsyncDeleteSubscription.java | 2 +- .../SyncDeleteSubscription.java | 2 +- .../SyncDeleteSubscriptionString.java | 2 +- ...yncDeleteSubscriptionSubscriptionname.java | 2 +- .../getiampolicy/AsyncGetIamPolicy.java | 2 +- .../getiampolicy/SyncGetIamPolicy.java | 2 +- .../getsnapshot/AsyncGetSnapshot.java | 2 +- .../getsnapshot/SyncGetSnapshot.java | 2 +- .../SyncGetSnapshotSnapshotname.java | 2 +- .../getsnapshot/SyncGetSnapshotString.java | 2 +- .../getsubscription/AsyncGetSubscription.java | 2 +- .../getsubscription/SyncGetSubscription.java | 2 +- .../SyncGetSubscriptionString.java | 2 +- .../SyncGetSubscriptionSubscriptionname.java | 2 +- .../listsnapshots/AsyncListSnapshots.java | 2 +- .../AsyncListSnapshotsPaged.java | 2 +- .../listsnapshots/SyncListSnapshots.java | 2 +- .../SyncListSnapshotsProjectname.java | 2 +- .../SyncListSnapshotsString.java | 2 +- .../AsyncListSubscriptions.java | 2 +- .../AsyncListSubscriptionsPaged.java | 2 +- .../SyncListSubscriptions.java | 2 +- .../SyncListSubscriptionsProjectname.java | 2 +- .../SyncListSubscriptionsString.java | 2 +- .../AsyncModifyAckDeadline.java | 2 +- .../SyncModifyAckDeadline.java | 2 +- ...cModifyAckDeadlineStringListstringInt.java | 2 +- ...DeadlineSubscriptionnameListstringInt.java | 2 +- .../AsyncModifyPushConfig.java | 2 +- .../SyncModifyPushConfig.java | 2 +- .../SyncModifyPushConfigStringPushconfig.java | 2 +- ...yPushConfigSubscriptionnamePushconfig.java | 2 +- .../pubsub/v1/subscriber/pull/AsyncPull.java | 2 +- .../pubsub/v1/subscriber/pull/SyncPull.java | 2 +- .../pull/SyncPullStringBooleanInt.java | 2 +- .../v1/subscriber/pull/SyncPullStringInt.java | 2 +- .../SyncPullSubscriptionnameBooleanInt.java | 2 +- .../pull/SyncPullSubscriptionnameInt.java | 2 +- .../pubsub/v1/subscriber/seek/AsyncSeek.java | 2 +- .../pubsub/v1/subscriber/seek/SyncSeek.java | 2 +- .../setiampolicy/AsyncSetIamPolicy.java | 2 +- .../setiampolicy/SyncSetIamPolicy.java | 2 +- .../streamingpull/AsyncStreamingPull.java | 2 +- .../AsyncTestIamPermissions.java | 2 +- .../SyncTestIamPermissions.java | 2 +- .../updatesnapshot/AsyncUpdateSnapshot.java | 2 +- .../updatesnapshot/SyncUpdateSnapshot.java | 2 +- .../AsyncUpdateSubscription.java | 2 +- .../SyncUpdateSubscription.java | 2 +- .../SyncCreateSubscription.java | 2 +- .../createtopic/SyncCreateTopic.java | 2 +- .../google/cloud/pubsub/v1/MockIAMPolicy.java | 2 +- .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 2 +- .../google/cloud/pubsub/v1/MockPublisher.java | 2 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 2 +- .../cloud/pubsub/v1/MockSchemaService.java | 2 +- .../pubsub/v1/MockSchemaServiceImpl.java | 2 +- .../cloud/pubsub/v1/MockSubscriber.java | 2 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 2 +- .../cloud/pubsub/v1/SchemaServiceClient.java | 2 +- .../pubsub/v1/SchemaServiceClientTest.java | 2 +- .../pubsub/v1/SchemaServiceSettings.java | 2 +- .../pubsub/v1/SubscriptionAdminClient.java | 2 +- .../v1/SubscriptionAdminClientTest.java | 2 +- .../pubsub/v1/SubscriptionAdminSettings.java | 2 +- .../cloud/pubsub/v1/TopicAdminClient.java | 2 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 2 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 2 +- .../google/cloud/pubsub/v1/package-info.java | 2 +- .../v1/stub/GrpcPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 2 +- .../GrpcSchemaServiceCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 2 +- .../stub/GrpcSubscriberCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSubscriberStub.java | 2 +- .../cloud/pubsub/v1/stub/PublisherStub.java | 2 +- .../pubsub/v1/stub/PublisherStubSettings.java | 2 +- .../pubsub/v1/stub/SchemaServiceStub.java | 2 +- .../v1/stub/SchemaServiceStubSettings.java | 2 +- .../cloud/pubsub/v1/stub/SubscriberStub.java | 2 +- .../v1/stub/SubscriberStubSettings.java | 2 +- .../src/com/google/pubsub/v1/ProjectName.java | 2 +- .../src/com/google/pubsub/v1/SchemaName.java | 2 +- .../com/google/pubsub/v1/SnapshotName.java | 2 +- .../google/pubsub/v1/SubscriptionName.java | 2 +- .../src/com/google/pubsub/v1/TopicName.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../SyncCreateSetCredentialsProvider1.java | 2 +- .../create/SyncCreateSetEndpoint.java | 2 +- .../createinstance/AsyncCreateInstance.java | 2 +- .../AsyncCreateInstanceLRO.java | 2 +- .../createinstance/SyncCreateInstance.java | 2 +- ...ateInstanceLocationnameStringInstance.java | 2 +- ...yncCreateInstanceStringStringInstance.java | 2 +- .../deleteinstance/AsyncDeleteInstance.java | 2 +- .../AsyncDeleteInstanceLRO.java | 2 +- .../deleteinstance/SyncDeleteInstance.java | 2 +- .../SyncDeleteInstanceInstancename.java | 2 +- .../SyncDeleteInstanceString.java | 2 +- .../exportinstance/AsyncExportInstance.java | 2 +- .../AsyncExportInstanceLRO.java | 2 +- .../exportinstance/SyncExportInstance.java | 2 +- .../SyncExportInstanceStringOutputconfig.java | 2 +- .../AsyncFailoverInstance.java | 2 +- .../AsyncFailoverInstanceLRO.java | 2 +- .../SyncFailoverInstance.java | 2 +- ...overinstancerequestdataprotectionmode.java | 2 +- ...overinstancerequestdataprotectionmode.java | 2 +- .../getinstance/AsyncGetInstance.java | 2 +- .../getinstance/SyncGetInstance.java | 2 +- .../SyncGetInstanceInstancename.java | 2 +- .../getinstance/SyncGetInstanceString.java | 2 +- .../AsyncGetInstanceAuthString.java | 2 +- .../SyncGetInstanceAuthString.java | 2 +- ...SyncGetInstanceAuthStringInstancename.java | 2 +- .../SyncGetInstanceAuthStringString.java | 2 +- .../importinstance/AsyncImportInstance.java | 2 +- .../AsyncImportInstanceLRO.java | 2 +- .../importinstance/SyncImportInstance.java | 2 +- .../SyncImportInstanceStringInputconfig.java | 2 +- .../listinstances/AsyncListInstances.java | 2 +- .../AsyncListInstancesPaged.java | 2 +- .../listinstances/SyncListInstances.java | 2 +- .../SyncListInstancesLocationname.java | 2 +- .../SyncListInstancesString.java | 2 +- .../AsyncRescheduleMaintenance.java | 2 +- .../AsyncRescheduleMaintenanceLRO.java | 2 +- .../SyncRescheduleMaintenance.java | 2 +- ...tenancerequestrescheduletypeTimestamp.java | 2 +- ...tenancerequestrescheduletypeTimestamp.java | 2 +- .../updateinstance/AsyncUpdateInstance.java | 2 +- .../AsyncUpdateInstanceLRO.java | 2 +- .../updateinstance/SyncUpdateInstance.java | 2 +- .../SyncUpdateInstanceFieldmaskInstance.java | 2 +- .../upgradeinstance/AsyncUpgradeInstance.java | 2 +- .../AsyncUpgradeInstanceLRO.java | 2 +- .../upgradeinstance/SyncUpgradeInstance.java | 2 +- ...SyncUpgradeInstanceInstancenameString.java | 2 +- .../SyncUpgradeInstanceStringString.java | 2 +- .../getinstance/SyncGetInstance.java | 2 +- .../getinstance/SyncGetInstance.java | 2 +- .../cloud/redis/v1beta1/CloudRedisClient.java | 2 +- .../v1beta1/CloudRedisClientHttpJsonTest.java | 2 +- .../redis/v1beta1/CloudRedisClientTest.java | 2 +- .../redis/v1beta1/CloudRedisSettings.java | 2 +- .../cloud/redis/v1beta1/InstanceName.java | 2 +- .../cloud/redis/v1beta1/LocationName.java | 2 +- .../cloud/redis/v1beta1/MockCloudRedis.java | 2 +- .../redis/v1beta1/MockCloudRedisImpl.java | 2 +- .../cloud/redis/v1beta1/package-info.java | 2 +- .../redis/v1beta1/stub/CloudRedisStub.java | 2 +- .../v1beta1/stub/CloudRedisStubSettings.java | 2 +- .../stub/GrpcCloudRedisCallableFactory.java | 2 +- .../v1beta1/stub/GrpcCloudRedisStub.java | 2 +- .../HttpJsonCloudRedisCallableFactory.java | 2 +- .../v1beta1/stub/HttpJsonCloudRedisStub.java | 2 +- .../AsyncCancelResumableWrite.java | 2 +- .../SyncCancelResumableWrite.java | 2 +- .../SyncCancelResumableWriteString.java | 2 +- .../composeobject/AsyncComposeObject.java | 2 +- .../composeobject/SyncComposeObject.java | 2 +- .../SyncCreateSetCredentialsProvider.java | 2 +- .../storage/create/SyncCreateSetEndpoint.java | 2 +- .../createbucket/AsyncCreateBucket.java | 2 +- .../createbucket/SyncCreateBucket.java | 2 +- ...ncCreateBucketProjectnameBucketString.java | 2 +- .../SyncCreateBucketStringBucketString.java | 2 +- .../createhmackey/AsyncCreateHmacKey.java | 2 +- .../createhmackey/SyncCreateHmacKey.java | 2 +- .../SyncCreateHmacKeyProjectnameString.java | 2 +- .../SyncCreateHmacKeyStringString.java | 2 +- .../AsyncCreateNotification.java | 2 +- .../SyncCreateNotification.java | 2 +- ...teNotificationProjectnameNotification.java | 2 +- ...cCreateNotificationStringNotification.java | 2 +- .../deletebucket/AsyncDeleteBucket.java | 2 +- .../deletebucket/SyncDeleteBucket.java | 2 +- .../SyncDeleteBucketBucketname.java | 2 +- .../deletebucket/SyncDeleteBucketString.java | 2 +- .../deletehmackey/AsyncDeleteHmacKey.java | 2 +- .../deletehmackey/SyncDeleteHmacKey.java | 2 +- .../SyncDeleteHmacKeyStringProjectname.java | 2 +- .../SyncDeleteHmacKeyStringString.java | 2 +- .../AsyncDeleteNotification.java | 2 +- .../SyncDeleteNotification.java | 2 +- ...yncDeleteNotificationNotificationname.java | 2 +- .../SyncDeleteNotificationString.java | 2 +- .../deleteobject/AsyncDeleteObject.java | 2 +- .../deleteobject/SyncDeleteObject.java | 2 +- .../SyncDeleteObjectStringString.java | 2 +- .../SyncDeleteObjectStringStringLong.java | 2 +- .../v2/storage/getbucket/AsyncGetBucket.java | 2 +- .../v2/storage/getbucket/SyncGetBucket.java | 2 +- .../getbucket/SyncGetBucketBucketname.java | 2 +- .../getbucket/SyncGetBucketString.java | 2 +- .../storage/gethmackey/AsyncGetHmacKey.java | 2 +- .../v2/storage/gethmackey/SyncGetHmacKey.java | 2 +- .../SyncGetHmacKeyStringProjectname.java | 2 +- .../SyncGetHmacKeyStringString.java | 2 +- .../getiampolicy/AsyncGetIamPolicy.java | 2 +- .../getiampolicy/SyncGetIamPolicy.java | 2 +- .../SyncGetIamPolicyResourcename.java | 2 +- .../getiampolicy/SyncGetIamPolicyString.java | 2 +- .../getnotification/AsyncGetNotification.java | 2 +- .../getnotification/SyncGetNotification.java | 2 +- .../SyncGetNotificationBucketname.java | 2 +- .../SyncGetNotificationString.java | 2 +- .../v2/storage/getobject/AsyncGetObject.java | 2 +- .../v2/storage/getobject/SyncGetObject.java | 2 +- .../getobject/SyncGetObjectStringString.java | 2 +- .../SyncGetObjectStringStringLong.java | 2 +- .../AsyncGetServiceAccount.java | 2 +- .../SyncGetServiceAccount.java | 2 +- .../SyncGetServiceAccountProjectname.java | 2 +- .../SyncGetServiceAccountString.java | 2 +- .../storage/listbuckets/AsyncListBuckets.java | 2 +- .../listbuckets/AsyncListBucketsPaged.java | 2 +- .../storage/listbuckets/SyncListBuckets.java | 2 +- .../SyncListBucketsProjectname.java | 2 +- .../listbuckets/SyncListBucketsString.java | 2 +- .../listhmackeys/AsyncListHmacKeys.java | 2 +- .../listhmackeys/AsyncListHmacKeysPaged.java | 2 +- .../listhmackeys/SyncListHmacKeys.java | 2 +- .../SyncListHmacKeysProjectname.java | 2 +- .../listhmackeys/SyncListHmacKeysString.java | 2 +- .../AsyncListNotifications.java | 2 +- .../AsyncListNotificationsPaged.java | 2 +- .../SyncListNotifications.java | 2 +- .../SyncListNotificationsProjectname.java | 2 +- .../SyncListNotificationsString.java | 2 +- .../storage/listobjects/AsyncListObjects.java | 2 +- .../listobjects/AsyncListObjectsPaged.java | 2 +- .../storage/listobjects/SyncListObjects.java | 2 +- .../SyncListObjectsProjectname.java | 2 +- .../listobjects/SyncListObjectsString.java | 2 +- .../AsyncLockBucketRetentionPolicy.java | 2 +- .../SyncLockBucketRetentionPolicy.java | 2 +- ...ncLockBucketRetentionPolicyBucketname.java | 2 +- .../SyncLockBucketRetentionPolicyString.java | 2 +- .../AsyncQueryWriteStatus.java | 2 +- .../SyncQueryWriteStatus.java | 2 +- .../SyncQueryWriteStatusString.java | 2 +- .../storage/readobject/AsyncReadObject.java | 2 +- .../rewriteobject/AsyncRewriteObject.java | 2 +- .../rewriteobject/SyncRewriteObject.java | 2 +- .../setiampolicy/AsyncSetIamPolicy.java | 2 +- .../setiampolicy/SyncSetIamPolicy.java | 2 +- .../SyncSetIamPolicyResourcenamePolicy.java | 2 +- .../SyncSetIamPolicyStringPolicy.java | 2 +- .../AsyncStartResumableWrite.java | 2 +- .../SyncStartResumableWrite.java | 2 +- .../AsyncTestIamPermissions.java | 2 +- .../SyncTestIamPermissions.java | 2 +- ...tIamPermissionsResourcenameListstring.java | 2 +- ...yncTestIamPermissionsStringListstring.java | 2 +- .../updatebucket/AsyncUpdateBucket.java | 2 +- .../updatebucket/SyncUpdateBucket.java | 2 +- .../SyncUpdateBucketBucketFieldmask.java | 2 +- .../updatehmackey/AsyncUpdateHmacKey.java | 2 +- .../updatehmackey/SyncUpdateHmacKey.java | 2 +- ...UpdateHmacKeyHmackeymetadataFieldmask.java | 2 +- .../updateobject/AsyncUpdateObject.java | 2 +- .../updateobject/SyncUpdateObject.java | 2 +- .../SyncUpdateObjectObjectFieldmask.java | 2 +- .../storage/writeobject/AsyncWriteObject.java | 2 +- .../deletebucket/SyncDeleteBucket.java | 2 +- .../deletebucket/SyncDeleteBucket.java | 2 +- .../src/com/google/storage/v2/BucketName.java | 2 +- .../com/google/storage/v2/CryptoKeyName.java | 2 +- .../com/google/storage/v2/MockStorage.java | 2 +- .../google/storage/v2/MockStorageImpl.java | 2 +- .../google/storage/v2/NotificationName.java | 2 +- .../com/google/storage/v2/ProjectName.java | 2 +- .../com/google/storage/v2/StorageClient.java | 2 +- .../google/storage/v2/StorageClientTest.java | 2 +- .../google/storage/v2/StorageSettings.java | 2 +- .../com/google/storage/v2/package-info.java | 2 +- .../v2/stub/GrpcStorageCallableFactory.java | 2 +- .../storage/v2/stub/GrpcStorageStub.java | 2 +- .../google/storage/v2/stub/StorageStub.java | 2 +- .../storage/v2/stub/StorageStubSettings.java | 2 +- 1243 files changed, 1255 insertions(+), 1252 deletions(-) diff --git a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java index 8b8ca52560..3731961171 100644 --- a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java +++ b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/comment/CommentComposer.java @@ -19,20 +19,23 @@ import com.google.api.generator.engine.ast.LineComment; import com.google.api.generator.engine.ast.Statement; import java.util.Arrays; +import java.util.Calendar; import java.util.List; public class CommentComposer { private static final String APACHE_LICENSE_STRING = - "Copyright 2023 Google LLC\n\n" - + "Licensed under the Apache License, Version 2.0 (the \"License\");\n" - + "you may not use this file except in compliance with the License.\n" - + "You may obtain a copy of the License at\n\n" - + " https://www.apache.org/licenses/LICENSE-2.0\n\n" - + "Unless required by applicable law or agreed to in writing, software\n" - + "distributed under the License is distributed on an \"AS IS\" BASIS,\n" - + "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" - + "See the License for the specific language governing permissions and\n" - + "limitations under the License."; + String.format( + "Copyright %s Google LLC\n\n" + + "Licensed under the Apache License, Version 2.0 (the \"License\");\n" + + "you may not use this file except in compliance with the License.\n" + + "You may obtain a copy of the License at\n\n" + + " https://www.apache.org/licenses/LICENSE-2.0\n\n" + + "Unless required by applicable law or agreed to in writing, software\n" + + "distributed under the License is distributed on an \"AS IS\" BASIS,\n" + + "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" + + "See the License for the specific language governing permissions and\n" + + "limitations under the License.", + Calendar.getInstance().get(Calendar.YEAR)); private static final String AUTO_GENERATED_CLASS_DISCLAIMER_STRING = "AUTO-GENERATED DOCUMENTATION AND CLASS."; diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/goldens/ComposerPostProcOnFooBar.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/goldens/ComposerPostProcOnFooBar.golden index df5c785728..1e6724a0b5 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/goldens/ComposerPostProcOnFooBar.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/goldens/ComposerPostProcOnFooBar.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden index 2075fe98e1..f22b86b331 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/AsyncGetBook.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden index 0a9a4f2ffb..5fa3a02b11 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetCredentialsProvider.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden index 27f7625c64..87660e8c72 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncCreateSetEndpoint.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden index e22ee5fea5..9ea5f5c6b7 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBook.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden index 2a33fc0676..1f4cce73eb 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookIntListbook.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden index 62700fbf70..601fb7b5da 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/bookshopclient/SyncGetBookStringListbook.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden index 4a83d5f50b..3481ac8a48 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncFastFibonacci.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden index beadb0d587..9e73a83847 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/AsyncSlowFibonacci.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden index 3769b22111..b6fc47729b 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetCredentialsProvider.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden index fca612b9d9..aee449a848 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncCreateSetEndpoint.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden index ef80cf71e1..ff05cf8eea 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncFastFibonacci.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden index e4eb2674e0..00ef137f37 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/deprecatedserviceclient/SyncSlowFibonacci.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden index c0a4225098..a1678b09ce 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncBlock.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden index e67e1d5045..42bbd4a5a7 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden index 16fdf6e73a..6897c6f67a 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden index 756c28f9b2..4d9438ca9e 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden index 8b22c05f7d..00083b62ad 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden index 685c2e16cb..e75246e24a 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpand.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpand.golden index aff30c88fc..fe82f5cddf 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpand.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpand.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpand.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpand.golden index 263ecdb56c..11c9154c85 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpand.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpand.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPaged.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPaged.golden index 0b9b6dfacf..766365f99e 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPaged.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncPagedExpandPaged.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpand.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpand.golden index ff8639cb22..20e8198220 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpand.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpand.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPaged.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPaged.golden index 30e005a7cd..067626a1c8 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPaged.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncSimplePagedExpandPaged.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden index ecce4857a4..2b91f381dd 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWait.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitLRO.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitLRO.golden index adb9c736e6..209cc4d60a 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitLRO.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncWaitLRO.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden index a4b32fc486..a1d0e469ce 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncBlock.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden index e4beee3fcd..06b87bc186 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden index 9b4b152e29..6d8a2203ac 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetCredentialsProvider.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden index cc3e67e69f..11996fa8af 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCreateSetEndpoint.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden index 29c754d9ae..662f69c7c3 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden index f59a42ae39..ec2d1d0267 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoFoobarname.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoNoargs.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoNoargs.golden index 841b531167..cac6b703e3 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoNoargs.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoNoargs.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden index 926a154a8d..4bc3957066 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoResourcename.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden index 784f5a2695..66f67f354b 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStatus.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden index 9440c4d5e4..c1451d479d 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden index 5065f39c30..10d5f9a228 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString1.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden index c34aed13e1..b20f502db9 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoString2.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden index 4d67f18d1c..b1f1711d5d 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEchoStringSeverity.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden index 986ecaf45f..d3f0583182 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncPagedExpand.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden index 16c71b5499..ebb46dc312 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpand.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandNoargs.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandNoargs.golden index 99ef99e387..d30f125637 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandNoargs.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncSimplePagedExpandNoargs.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden index 2eced308e8..06e73bc955 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWait.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden index ef4683df4c..0e1009a4a2 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitDuration.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden index 759f7f87ab..1c73d2f0ca 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncWaitTimestamp.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden index 29000431b4..273cbf1975 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncCreateUser.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden index 78d0fd4326..b9d0118280 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncDeleteUser.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden index 7adc658311..66b70eb4f2 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncGetUser.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsers.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsers.golden index 8f2b202126..ef668121c9 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsers.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsers.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPaged.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPaged.golden index e0f0310f22..cb9bae400c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPaged.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPaged.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden index 387affb9be..e613316e37 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncUpdateUser.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden index 769aba202e..fa71be8618 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetCredentialsProvider.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden index 220556f0b8..dc5548f8ad 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateSetEndpoint.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden index 69763e3bb9..f8e76f6df3 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUser.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden index c88bc54fb0..f2c08728bb 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden index d50c95273a..15a472f55f 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringIntStringBooleanDouble.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden index 89c7ee0a01..129e78595f 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncCreateUserStringStringStringStringStringIntStringStringStringString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden index 76ceb90b61..4e4d1ee816 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUser.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden index 76f995e4c9..daabb54a61 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden index cc3ac7dac8..a730b83999 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncDeleteUserUsername.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden index d2901f191a..abc5ef5b22 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUser.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden index 1928699768..3c1291f0bb 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden index 25c73251ff..b9573e1ef1 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncGetUserUsername.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden index 084cbff215..b1e5bf874a 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncListUsers.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden index c715daae9a..826d241729 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/SyncUpdateUser.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnect.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnect.golden index d423861427..abb36abd3f 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnect.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncConnect.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden index 447e1d9e1b..e70cf10405 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateBlurb.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden index 2d8b87caf3..3246de7697 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncCreateRoom.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden index a00a171cfc..bbc3889081 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteBlurb.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden index a1ba1bb205..53f2bcaebd 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncDeleteRoom.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden index a1c2659be9..1234af8a27 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetBlurb.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden index 56fc06eecf..e33fb68d2b 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncGetRoom.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbs.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbs.golden index 56e7b73ad0..9af171ca5b 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbs.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbs.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPaged.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPaged.golden index d7f2110b81..276423bc78 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPaged.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPaged.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRooms.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRooms.golden index a3cb64f36b..aa74c0b363 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRooms.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRooms.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPaged.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPaged.golden index f829038f14..0dbf3c925d 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPaged.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPaged.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden index 4bb7a8975b..8769230fc6 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbs.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsLRO.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsLRO.golden index 07cb78a7f3..9cd07cd993 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsLRO.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSearchBlurbsLRO.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbs.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbs.golden index ffc9d3dde4..e598fea07c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbs.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncSendBlurbs.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbs.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbs.golden index 4565791b18..8118b6003e 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbs.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncStreamBlurbs.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden index 6b8bff8f49..82761a7953 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateBlurb.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden index 53ea875a7a..49bc7ab326 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncUpdateRoom.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden index 855d6a2440..7cf98b8e55 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurb.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden index 97d6a19ce9..1d7a758817 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameBytestring.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden index 233e2b3841..aea5d2b8ce 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbProfilenameString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden index 10d52bc935..0a78a82932 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameBytestring.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden index d9ee46ab2c..108478914c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbRoomnameString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden index 8c1c827090..d3e8e04687 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringBytestring.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden index 53ecf9f0aa..65092fa680 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateBlurbStringString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden index fdac8a0b2f..227ed0543b 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoom.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden index ba4d46bf13..b03b72d1dc 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateRoomStringString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden index 522af01970..5c93b957b8 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetCredentialsProvider.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden index 52df001948..cc9914c0b7 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncCreateSetEndpoint.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden index 404bd8536f..f1d88106be 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurb.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden index 1ddc11828c..bbe46c2771 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbBlurbname.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden index c485970fdb..2627da88b8 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteBlurbString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden index 1fea939f10..74e6f4afbf 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoom.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden index 9d924be4de..dd1102e5af 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomRoomname.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden index 868736466b..d8308f0fa6 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncDeleteRoomString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden index a0bfb09983..028d9ade79 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurb.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden index ec2db38ea6..c4f9c44118 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbBlurbname.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden index 60d8ad8b33..68134c3f6a 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetBlurbString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden index 620480644d..723136cd95 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoom.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden index 7fc83b18a8..267cdbbdf6 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomRoomname.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden index d437addcf9..9d9f3169f1 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncGetRoomString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden index b917b58397..ba7cce0041 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbs.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden index f09354852f..894a9a711b 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsProfilename.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden index 105dc940e0..aed0e78ec4 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsRoomname.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden index 44c4cefba9..243394f721 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListBlurbsString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden index 2b4feb296d..0e0d6e666d 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncListRooms.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden index 2cfdf89c0e..40d454b8ef 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbs.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden index 3ff5c00a3d..04b642acda 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncSearchBlurbsString.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden index 103a8b1516..274c6c72b4 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateBlurb.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden index cad841f469..549b321a8a 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/SyncUpdateRoom.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden index ce58c981ce..e49ab67421 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncEcho.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden index 758dc5d338..6600959c8b 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/SyncFastFibonacci.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden index a2436dd7bd..02dd51c41f 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncCreateTopic.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden index f4e781755e..4c95dc1460 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncDeleteLog.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden index ce06222e4b..ebf64e322b 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncEcho.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden index 625d4b6a12..7646bc5a79 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/servicesettings/stub/SyncFastFibonacci.golden @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java index 93839af2ef..4b1c0f6021 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java index 050afe24dd..9763f99a41 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java index 804b52dc29..24749d8a0b 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java index 388995f9bb..684a8956ae 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java index e26fb08281..00b6c4bf65 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java index 81d98ff0c1..11e5b842e6 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java index f2cb5e4d7d..4863d49856 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java index 102ec93cd4..f1c43003ff 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java index 7436214060..aafd934902 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java index 1d14057c11..2069da8bf5 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java index 15200b24e1..5a8050fe4c 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java index 7c864ae4eb..1b687d20c2 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/package-info.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/package-info.java index 8b10221563..ceb4779c4c 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/package-info.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java index 033e6024fc..ae5c2c13b8 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java index e6b5127084..de660ce681 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java index 82fc32563a..b6ac43d3c8 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java index 4f6166ee64..c7d30b6007 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java index 9b91d01574..c1e8fe1a95 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java index dfd4b5870a..88d4c6f853 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java index d5cacc6cbf..83d056c19e 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java index 217a66b80c..e7891eaa8b 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java index fdb71cd059..4daedef320 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java index facfb04c0d..d02268d961 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java index 9062dc33ae..a86a5fc1ff 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java index 8846164182..0818be4ddf 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java index 4526e1026e..bdfd4148a3 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java index 422fada24a..66434e8e68 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java index ed15768641..1866fd54b4 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java index c1df2142d2..4040160d4d 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java index 20f08dd5a2..1679175660 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java index bc890f7fc9..3caec35bb1 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java index 6e537829af..544410bc98 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java index 80d9439ec9..b41e0e6073 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java index 9d0321dfff..f6ace1ac12 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java index baa9736528..0dda48a01f 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java index ff68f97a4b..842da74456 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java index dde66e8083..8a215068b0 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java index 0bfaaac9bc..44f207f84b 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java index 5c1f451476..1c9090c0c6 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java index 74e029a9cc..a6654a9840 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java index fd075a3229..2715ab1ae3 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java index 55a003cfde..a9c8ef859b 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java index 76d9956cf0..24db00e832 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java index 19ed93f930..18f053a4b3 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java index e80223ce69..95cae44fc5 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java index d657fe528b..cb475c4813 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java index 596c8f8474..987b9b7ea7 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java index bd8e9759ff..de0f6f1236 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java index 7c951511f1..812452a1d3 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java index 6bab6a2810..843613d8c4 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java index fe133f5e34..3f790a77c3 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java index 36e2739874..f4fc6eabaf 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java index 2d262a9bc2..c835fb2ced 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java index 56a62ac6a5..38fcdd5c05 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java index 288a8f3efb..808ac65ca6 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java index 195cf8a57d..9cfc569ca1 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java index 4fa8cb8696..d6560b5d9d 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java index ac57fc985d..cf8112dddf 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java index f5c9cff62a..87e5320d10 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java index eb341a92d1..32690fa21c 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java index 56a90c7147..ac1853a953 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetEndpoint.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetEndpoint.java index a74363576b..874a385a77 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/AsyncListConnections.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/AsyncListConnections.java index 9dc23958ad..e06af48356 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/AsyncListConnections.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/AsyncListConnections.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java index 1f673cd56f..617ffc549f 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/SyncListConnections.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/SyncListConnections.java index 8cf9bf22a5..4f4291df0b 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/SyncListConnections.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/SyncListConnections.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/SyncListConnectionsEndpointname.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/SyncListConnectionsEndpointname.java index 296db84cf9..f2e9ecd85a 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/SyncListConnectionsEndpointname.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/SyncListConnectionsEndpointname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/SyncListConnectionsString.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/SyncListConnectionsString.java index b96bb7511e..ced980c8e8 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/SyncListConnectionsString.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservice/listconnections/SyncListConnectionsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java index 137c2690c8..81efec5f6d 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java index 9f2c475f15..3c4fc6d001 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java index f49d173acb..607db4c4dc 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tether/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tether/create/SyncCreateSetCredentialsProvider.java index 9bd01ccad7..1a3f6f71fa 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tether/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tether/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tether/create/SyncCreateSetEndpoint.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tether/create/SyncCreateSetEndpoint.java index bfd4caa157..a76e79b308 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tether/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tether/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tether/egress/AsyncEgress.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tether/egress/AsyncEgress.java index e3f77738ab..35e4fa233d 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tether/egress/AsyncEgress.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tether/egress/AsyncEgress.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java index daa45e758d..763f818edf 100644 --- a/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java +++ b/test/integration/goldens/apigeeconnect/samples/snippets/generated/main/java/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java index c1be2a6a0b..2311073ce3 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java index 51d5de0ef4..8f63448478 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java index dce311d025..00a56229a7 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java index 2f435c328e..bf11c5c4dd 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/EndpointName.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/EndpointName.java index 5fa9394632..9933d1e742 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/EndpointName.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/EndpointName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockConnectionService.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockConnectionService.java index 976611224c..6355a465ca 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockConnectionService.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockConnectionService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java index d5118e0702..10157ef0d9 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockTether.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockTether.java index a162b1f2af..a6e224ce8e 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockTether.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockTether.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java index 91938a1eaa..5c5d17c61c 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClient.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClient.java index 5e7dc7150d..70e1255968 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClient.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClientTest.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClientTest.java index c580ef0af7..cbf2ec5931 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClientTest.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java index a1902b37f4..7846d321d1 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/package-info.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/package-info.java index c47d3b1b35..dd7cc6cdfa 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/package-info.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java index 294de683eb..c98a8fb531 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java index df9e8abec0..34d2d5d6fd 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java index 036b4d8073..a2d9841c5d 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java index 772d87a816..3c89c73861 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java index 387f3f9b50..451d94cb71 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java index 7cf3e84f83..67d1596672 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java index 17ec77104f..ebca0f676e 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java index 4bf5d6e94f..434cecd957 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java index ba8c07686e..0d403f9175 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java index e4b77f5681..5ff1f553c9 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java index 156c15f06d..e861d34fc5 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java index a28432409b..fff3a3681f 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java index 586e24446c..0261d30cef 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java index 618b324de6..de46088b57 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java index 35b8c3adfc..3528e8f306 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java index b3d28fd3dd..e08ac4a4de 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java index 278b070d0d..d188740918 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java index 4f69a827b8..09a49b4a15 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java index db560f299d..849869f870 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java index 91e3a41c3c..cd25cbdb56 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java index 8f2ddf5708..d3dbca2483 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java index 3d77c16d1c..57a75b7914 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java index 503688fab9..5d2931115c 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java index f69c5fa8f8..f11f79c030 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java index 63eb1a017a..a479cce878 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java index 22a4432251..d423af6a40 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java index 71f3d013ad..8b2a4aec91 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java index 4292202d9c..470f454fbd 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java index f4e23828dd..90cf19a120 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java index 9d40c9f5f2..2b683f81f2 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java index 8a1b4e278e..cfa7d27316 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java index b11e77b37e..81c49eb105 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java index 7de2380c03..e163673c67 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java index 310a499bd8..49970c88ac 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java index 66dc568f15..baea7773ae 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java index aa6c4cdc00..ddb3de39f8 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java index ca6428b5ba..c1e4a4e2c8 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java index 5f73ba210c..b230cb826a 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java index ce7e5d68df..ab50cb7d44 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java index a12a0fff8b..2f2805cad4 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java index 5499209ed8..6e10d0afa4 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java index 90bbc2e277..097bfd27b8 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java index 39fb5326bd..ae93a7e552 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java index 3cbf2fce8b..d62865df18 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java index fd5c9a7fca..0d25a179ed 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java index 2b43970387..61cff0d120 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java index db8f0f2fe7..9638a49805 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java index 4ecf5e97a3..7ed8777dfe 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java index b77a3066fb..f6227d4132 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java index bdedd7ee77..d7cb44aeb8 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java index e8374d2fec..2f8a4b838a 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java index 1efa0f9b6d..2581f7eae7 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java index 3df30237f2..3bff617290 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java index 8102572576..5bc5773dc5 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java index 83acee6375..65902ae20c 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java index d99d286d0e..1a8e877d2e 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java index dcae96a56e..33cf2a8871 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java index eadce3866a..79389f42b3 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java index a7b43990e7..55f43ad9d5 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java index 30bf27c905..77743f8168 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java index f8ae951b14..bc87246cb7 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java index af46767922..056aec5468 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java index 827c8bced0..b3d8359c47 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java index 61d0c68e65..5f98310392 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java index 836d6e3550..22e347195a 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java index f514720408..f8fe966d96 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java index 85239c8b46..50e663697a 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java index 19a16c66ce..a2a4f2c3a9 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java index 8cad1670b2..e41ab7648a 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java index 454a9f1bde..6a9321191f 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java index 3631dd2046..9288139a89 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java index af2a52aa2d..2a3a532c22 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java index 82ffffa9d7..2242642c62 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java index 82633eb2c2..389ae33b61 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java index 39eae3466a..bca6df87e5 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java index 79f3dba844..39314cdf91 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java index cb8e8ccf78..99881eed7f 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java index c3cb21f64a..22e4020f0f 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java index a4b6b70bc3..3c9f852fcf 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java index 7021653712..1ba0519c3c 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java index e60336f81f..4ad7872698 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java index cf31ed365d..9fe6ab4c2f 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java index b6b1f205fd..058b218dd9 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java index 2763068d52..26f380d1b6 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java index 2613f021f3..aec0bb6aea 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java index f163939bd0..e2e6515287 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java index afb7b9ac99..d6c55711c5 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClientTest.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClientTest.java index fccb612bd5..9d4e8a7dda 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClientTest.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java index 141bf35c5b..3f2e571681 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java index a3dc5f5fdb..7278bc364b 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FolderName.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FolderName.java index 6544050763..494a8b6ac8 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FolderName.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FolderName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/MockAssetService.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/MockAssetService.java index acbdbc0836..cf22052fe5 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/MockAssetService.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/MockAssetService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/MockAssetServiceImpl.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/MockAssetServiceImpl.java index 7844156358..8658b576cc 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/MockAssetServiceImpl.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/MockAssetServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/OrganizationName.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/OrganizationName.java index c924effa14..b5126afd86 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/OrganizationName.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/OrganizationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/ProjectName.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/ProjectName.java index 0f11713b4a..f58488e0bb 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/ProjectName.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java index 4cd6ab0d63..af70ae9f77 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/package-info.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/package-info.java index 6129125395..018529089d 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/package-info.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java index 226405fe22..61c037004a 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java index 5575d68f9c..e66d1477ba 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java index fc52f237d0..086389a7c3 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java index 85b316e8a4..3635e903e4 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java index 4e97054b2c..312ceb6c4d 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java index ef3b723171..fde890bd68 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/SyncMutateRow.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/SyncMutateRow.java index e153a19c34..ddc13ebe69 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/SyncMutateRow.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/basebigtabledatasettings/mutaterow/SyncMutateRow.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/AsyncCheckAndMutateRow.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/AsyncCheckAndMutateRow.java index 76c687f2f9..ea75b4a9ee 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/AsyncCheckAndMutateRow.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/AsyncCheckAndMutateRow.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRow.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRow.java index 5198353ea9..4c0476b95b 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRow.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRow.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutation.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutation.java index d5cb4e5934..f8cf572c6c 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutation.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutation.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutationString.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutationString.java index 403bbc2a22..bf1d9cd210 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutationString.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowStringBytestringRowfilterListmutationListmutationString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutation.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutation.java index d694cc7e5a..3bf19656d3 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutation.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutation.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutationString.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutationString.java index 3dd1b927ee..9be68a6dbb 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutationString.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/checkandmutaterow/SyncCheckAndMutateRowTablenameBytestringRowfilterListmutationListmutationString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/create/SyncCreateSetCredentialsProvider.java index b29667ca2e..7a85c3f6a5 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/create/SyncCreateSetEndpoint.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/create/SyncCreateSetEndpoint.java index f303314cc8..6331247daf 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/AsyncMutateRow.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/AsyncMutateRow.java index 19f19a8fe7..60642db63d 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/AsyncMutateRow.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/AsyncMutateRow.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRow.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRow.java index 9bbd657ba7..63705a237e 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRow.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRow.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowStringBytestringListmutation.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowStringBytestringListmutation.java index 254be81fd4..afbf9a7d1e 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowStringBytestringListmutation.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowStringBytestringListmutation.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowStringBytestringListmutationString.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowStringBytestringListmutationString.java index 2f65bb3165..2a1832444a 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowStringBytestringListmutationString.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowStringBytestringListmutationString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowTablenameBytestringListmutation.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowTablenameBytestringListmutation.java index 43ef4c4492..aa8ff15ced 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowTablenameBytestringListmutation.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowTablenameBytestringListmutation.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowTablenameBytestringListmutationString.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowTablenameBytestringListmutationString.java index fbbb4e0fea..0e7135cc7b 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowTablenameBytestringListmutationString.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterow/SyncMutateRowTablenameBytestringListmutationString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterows/AsyncMutateRows.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterows/AsyncMutateRows.java index 08ceaffb12..d3805bea72 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterows/AsyncMutateRows.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/mutaterows/AsyncMutateRows.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/AsyncPingAndWarm.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/AsyncPingAndWarm.java index adfaba180b..66681fe3a0 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/AsyncPingAndWarm.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/AsyncPingAndWarm.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarm.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarm.java index d959a99cb5..579dfe8fb6 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarm.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarm.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmInstancename.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmInstancename.java index eca56b74fe..0bd14db4b8 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmInstancename.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmInstancename.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmInstancenameString.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmInstancenameString.java index 2bef0a906a..139883642e 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmInstancenameString.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmInstancenameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmString.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmString.java index 79662c1ee3..171b4b9198 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmString.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmStringString.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmStringString.java index 4d23ed4276..2b3b8f55a0 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmStringString.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/pingandwarm/SyncPingAndWarmStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/AsyncReadModifyWriteRow.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/AsyncReadModifyWriteRow.java index cbe0a12a0e..68f5bdcf7c 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/AsyncReadModifyWriteRow.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/AsyncReadModifyWriteRow.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRow.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRow.java index 96e117907c..b82cef0d38 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRow.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRow.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriterule.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriterule.java index 4790517ae7..d09132b50b 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriterule.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriterule.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriteruleString.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriteruleString.java index bd57034b07..18ed730118 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriteruleString.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowStringBytestringListreadmodifywriteruleString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriterule.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriterule.java index 828ae7e6a9..c9cdc7e67a 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriterule.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriterule.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriteruleString.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriteruleString.java index e112775f39..a9e92df1ae 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriteruleString.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readmodifywriterow/SyncReadModifyWriteRowTablenameBytestringListreadmodifywriteruleString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readrows/AsyncReadRows.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readrows/AsyncReadRows.java index 5abfbe6075..1339370180 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readrows/AsyncReadRows.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/readrows/AsyncReadRows.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/samplerowkeys/AsyncSampleRowKeys.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/samplerowkeys/AsyncSampleRowKeys.java index 7f5d07a2b8..3d12c2f945 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/samplerowkeys/AsyncSampleRowKeys.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/bigtable/samplerowkeys/AsyncSampleRowKeys.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/SyncMutateRow.java b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/SyncMutateRow.java index caeb7c523e..48c8448abe 100644 --- a/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/SyncMutateRow.java +++ b/test/integration/goldens/bigtable/samples/snippets/generated/main/java/com/google/cloud/bigtable/data/v2/stub/bigtablestubsettings/mutaterow/SyncMutateRow.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/src/com/google/bigtable/v2/InstanceName.java b/test/integration/goldens/bigtable/src/com/google/bigtable/v2/InstanceName.java index 7cf6525b1c..cc4f7e627b 100644 --- a/test/integration/goldens/bigtable/src/com/google/bigtable/v2/InstanceName.java +++ b/test/integration/goldens/bigtable/src/com/google/bigtable/v2/InstanceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java b/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java index b154274117..98f1912341 100644 --- a/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java +++ b/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java index ec522bcc51..ad5cfe0b8d 100644 --- a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java +++ b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClientTest.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClientTest.java index 3c73002983..5cca861014 100644 --- a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClientTest.java +++ b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java index 03e1b3cb87..b0c63eb9b9 100644 --- a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java +++ b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/MockBigtable.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/MockBigtable.java index 24940b75bd..540dbbcfd2 100644 --- a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/MockBigtable.java +++ b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/MockBigtable.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/MockBigtableImpl.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/MockBigtableImpl.java index 3bd0a566b9..4783be6a91 100644 --- a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/MockBigtableImpl.java +++ b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/MockBigtableImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/package-info.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/package-info.java index e3ad6f6568..a00a6b2536 100644 --- a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/package-info.java +++ b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java index f1777c805e..b34678281a 100644 --- a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java +++ b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java index 1ac218894e..9020f18a7a 100644 --- a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java +++ b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java index 202a5cac25..6934cd7908 100644 --- a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java +++ b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java index 14c0a310e1..6a09b5bbc1 100644 --- a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java +++ b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/AsyncAggregatedList.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/AsyncAggregatedList.java index d2383df578..e7b40964a2 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/AsyncAggregatedList.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/AsyncAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/AsyncAggregatedListPaged.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/AsyncAggregatedListPaged.java index 44ba3fb617..9ca1bfb168 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/AsyncAggregatedListPaged.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/AsyncAggregatedListPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/SyncAggregatedList.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/SyncAggregatedList.java index de14d9802a..f37e402506 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/SyncAggregatedList.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/SyncAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/SyncAggregatedListString.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/SyncAggregatedListString.java index fdf240aa0b..0849266d35 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/SyncAggregatedListString.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/aggregatedlist/SyncAggregatedListString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/create/SyncCreateSetCredentialsProvider.java index f267afcc39..0d0ac0c9d0 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/create/SyncCreateSetEndpoint.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/create/SyncCreateSetEndpoint.java index c0cc9d7d56..5761f43900 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/AsyncDelete.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/AsyncDelete.java index a913fd36fb..218a2bfbd4 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/AsyncDelete.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/AsyncDelete.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/AsyncDeleteLRO.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/AsyncDeleteLRO.java index 8039feb99f..64b0f225ba 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/AsyncDeleteLRO.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/AsyncDeleteLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/SyncDelete.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/SyncDelete.java index e8ec7dca47..180c3531d5 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/SyncDelete.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/SyncDelete.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/SyncDeleteStringStringString.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/SyncDeleteStringStringString.java index 81681280c0..818a25cdfe 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/SyncDeleteStringStringString.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/delete/SyncDeleteStringStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/AsyncInsert.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/AsyncInsert.java index b75d5eecf3..1a6ee7af0a 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/AsyncInsert.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/AsyncInsert.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/AsyncInsertLRO.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/AsyncInsertLRO.java index 845fed832f..3c4855abee 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/AsyncInsertLRO.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/AsyncInsertLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/SyncInsert.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/SyncInsert.java index 2e743094a2..ed5b515b27 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/SyncInsert.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/SyncInsert.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/SyncInsertStringStringAddress.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/SyncInsertStringStringAddress.java index cb277d5a97..d5f77eadf5 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/SyncInsertStringStringAddress.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/insert/SyncInsertStringStringAddress.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/AsyncList.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/AsyncList.java index 0d745893bc..3ec9314365 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/AsyncList.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/AsyncList.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/AsyncListPaged.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/AsyncListPaged.java index 2d778f5d95..9694241b2e 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/AsyncListPaged.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/AsyncListPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/SyncList.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/SyncList.java index 453d27cfbe..b843ea93c6 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/SyncList.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/SyncList.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/SyncListStringStringString.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/SyncListStringStringString.java index 15cc7ff585..63d700a7c2 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/SyncListStringStringString.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addresses/list/SyncListStringStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/SyncAggregatedList.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/SyncAggregatedList.java index e670636cc6..954828dc4b 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/SyncAggregatedList.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addressessettings/aggregatedlist/SyncAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/create/SyncCreateSetCredentialsProvider.java index ad005c82df..1c135992f8 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/create/SyncCreateSetEndpoint.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/create/SyncCreateSetEndpoint.java index a4cba3b728..a916805065 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/get/AsyncGet.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/get/AsyncGet.java index 4d488b86a5..56bc90c72d 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/get/AsyncGet.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/get/AsyncGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/get/SyncGet.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/get/SyncGet.java index b3b5d2eb95..8f279c402e 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/get/SyncGet.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/get/SyncGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/get/SyncGetStringStringString.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/get/SyncGetStringStringString.java index 616762834c..3034865993 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/get/SyncGetStringStringString.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/get/SyncGetStringStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/wait/AsyncWait.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/wait/AsyncWait.java index 52414a5475..bec82eeffc 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/wait/AsyncWait.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/wait/AsyncWait.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/wait/SyncWait.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/wait/SyncWait.java index 0e8b1f782f..cd1cb7bea1 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/wait/SyncWait.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/wait/SyncWait.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/wait/SyncWaitStringStringString.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/wait/SyncWaitStringStringString.java index 07b28c97eb..2372ad7ff7 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/wait/SyncWaitStringStringString.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperations/wait/SyncWaitStringStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperationssettings/get/SyncGet.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperationssettings/get/SyncGet.java index 7412344826..99ef9e7dac 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperationssettings/get/SyncGet.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/regionoperationssettings/get/SyncGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/SyncAggregatedList.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/SyncAggregatedList.java index 29f8d82dc3..4f04ef426b 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/SyncAggregatedList.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/stub/addressesstubsettings/aggregatedlist/SyncAggregatedList.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/SyncGet.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/SyncGet.java index 7a39b469d2..9045231d98 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/SyncGet.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/stub/regionoperationsstubsettings/get/SyncGet.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java index 24966655e9..6ea9e35d3e 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClientTest.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClientTest.java index 53dd781ec9..6b04c31f72 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClientTest.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java index 0a42a81785..6300d5d913 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java index 01e2795646..de22c0b3f6 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClientTest.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClientTest.java index 534b970655..4ac51c6ccc 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClientTest.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java index e565834ed8..443a4c9bf2 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/package-info.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/package-info.java index 9a753364eb..d6781cabd2 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/package-info.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStub.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStub.java index c234cee7b0..0d2dd584ac 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStub.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java index e76bd8781b..0872d93367 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java index bc57dec20a..8f0188d286 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java index a6ee1e36b2..a0caf3d274 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java index 44500cb712..d4dd29cd71 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java index 6e7a7ed27d..81f0e4838b 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java index 34f696897d..7517e20696 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java index 4bd1ca0422..d36444131b 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetCredentialsProvider.java index 56c22c3aeb..35e3ffd48b 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetCredentialsProvider1.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetCredentialsProvider1.java index d6aab702c9..3d84450f03 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetCredentialsProvider1.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetCredentialsProvider1.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetEndpoint.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetEndpoint.java index 39f1cadfb9..1cd83eef22 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/AsyncGenerateAccessToken.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/AsyncGenerateAccessToken.java index bedc786c21..794b2898b0 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/AsyncGenerateAccessToken.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/AsyncGenerateAccessToken.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/SyncGenerateAccessToken.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/SyncGenerateAccessToken.java index 512042d875..4e151564af 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/SyncGenerateAccessToken.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/SyncGenerateAccessToken.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/SyncGenerateAccessTokenServiceaccountnameListstringListstringDuration.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/SyncGenerateAccessTokenServiceaccountnameListstringListstringDuration.java index a0c969e299..0926df29f2 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/SyncGenerateAccessTokenServiceaccountnameListstringListstringDuration.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/SyncGenerateAccessTokenServiceaccountnameListstringListstringDuration.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/SyncGenerateAccessTokenStringListstringListstringDuration.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/SyncGenerateAccessTokenStringListstringListstringDuration.java index 719badd7bd..78c8f32ab0 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/SyncGenerateAccessTokenStringListstringListstringDuration.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateaccesstoken/SyncGenerateAccessTokenStringListstringListstringDuration.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/AsyncGenerateIdToken.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/AsyncGenerateIdToken.java index d5c3b5d2ec..c893c9ef93 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/AsyncGenerateIdToken.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/AsyncGenerateIdToken.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/SyncGenerateIdToken.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/SyncGenerateIdToken.java index 28f5e8f10e..71eebb5c69 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/SyncGenerateIdToken.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/SyncGenerateIdToken.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/SyncGenerateIdTokenServiceaccountnameListstringStringBoolean.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/SyncGenerateIdTokenServiceaccountnameListstringStringBoolean.java index eee88f8f48..5643bb1287 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/SyncGenerateIdTokenServiceaccountnameListstringStringBoolean.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/SyncGenerateIdTokenServiceaccountnameListstringStringBoolean.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/SyncGenerateIdTokenStringListstringStringBoolean.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/SyncGenerateIdTokenStringListstringStringBoolean.java index cc95c6e0f1..57221a6a75 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/SyncGenerateIdTokenStringListstringStringBoolean.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/generateidtoken/SyncGenerateIdTokenStringListstringStringBoolean.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/AsyncSignBlob.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/AsyncSignBlob.java index f4bf99bbc5..3b7e8c09d1 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/AsyncSignBlob.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/AsyncSignBlob.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/SyncSignBlob.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/SyncSignBlob.java index 569a5f831e..9697e1588c 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/SyncSignBlob.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/SyncSignBlob.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/SyncSignBlobServiceaccountnameListstringBytestring.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/SyncSignBlobServiceaccountnameListstringBytestring.java index 5dd35d50af..3ff22e6b08 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/SyncSignBlobServiceaccountnameListstringBytestring.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/SyncSignBlobServiceaccountnameListstringBytestring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/SyncSignBlobStringListstringBytestring.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/SyncSignBlobStringListstringBytestring.java index b0c94b4d6d..34c32bd597 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/SyncSignBlobStringListstringBytestring.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signblob/SyncSignBlobStringListstringBytestring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/AsyncSignJwt.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/AsyncSignJwt.java index bacbaaf666..44d76ded89 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/AsyncSignJwt.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/AsyncSignJwt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/SyncSignJwt.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/SyncSignJwt.java index 69b26c6275..6ee72b08f6 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/SyncSignJwt.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/SyncSignJwt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/SyncSignJwtServiceaccountnameListstringString.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/SyncSignJwtServiceaccountnameListstringString.java index f27cd79bcc..6bd909181d 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/SyncSignJwtServiceaccountnameListstringString.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/SyncSignJwtServiceaccountnameListstringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/SyncSignJwtStringListstringString.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/SyncSignJwtStringListstringString.java index 6109f2104a..331f3f21fc 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/SyncSignJwtStringListstringString.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentials/signjwt/SyncSignJwtStringListstringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/SyncGenerateAccessToken.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/SyncGenerateAccessToken.java index 8afd76e299..f4ba4bc934 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/SyncGenerateAccessToken.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/iamcredentialssettings/generateaccesstoken/SyncGenerateAccessToken.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/SyncGenerateAccessToken.java b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/SyncGenerateAccessToken.java index 0f6bf894e2..74daf07eb3 100644 --- a/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/SyncGenerateAccessToken.java +++ b/test/integration/goldens/credentials/samples/snippets/generated/main/java/com/google/cloud/iam/credentials/v1/stub/iamcredentialsstubsettings/generateaccesstoken/SyncGenerateAccessToken.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IAMCredentialsClientHttpJsonTest.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IAMCredentialsClientHttpJsonTest.java index 0ddc379f57..42cb012a8a 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IAMCredentialsClientHttpJsonTest.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IAMCredentialsClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IAMCredentialsClientTest.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IAMCredentialsClientTest.java index baca549ee7..8d3304615b 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IAMCredentialsClientTest.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IAMCredentialsClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java index d08dfc57b8..9b11a4dfc6 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java index 80a81acf35..c2fbad96c7 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/MockIAMCredentials.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/MockIAMCredentials.java index 1e61159ca2..25603883db 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/MockIAMCredentials.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/MockIAMCredentials.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/MockIAMCredentialsImpl.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/MockIAMCredentialsImpl.java index 6cc61f8ea0..b2f62a3355 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/MockIAMCredentialsImpl.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/MockIAMCredentialsImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java index 7b036f599f..e95af3693e 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/package-info.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/package-info.java index f03b5c3063..f80d75bdd5 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/package-info.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java index 94e9bf9db8..32c859239e 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java index 3d51a4d38b..b1c162964c 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsCallableFactory.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsCallableFactory.java index 8fad431ae4..d17d440123 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsCallableFactory.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java index c3254effa9..5cb18810cf 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java index 4f90ca6bd7..431a15518e 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java index 4fc0a8271d..22c78bcf2c 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/create/SyncCreateSetCredentialsProvider.java index 50ea4d70b0..c3dd695553 100644 --- a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/create/SyncCreateSetEndpoint.java b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/create/SyncCreateSetEndpoint.java index 8767e58170..2be355cd17 100644 --- a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/getiampolicy/AsyncGetIamPolicy.java b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/getiampolicy/AsyncGetIamPolicy.java index 1150c69be5..c191569529 100644 --- a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/getiampolicy/AsyncGetIamPolicy.java +++ b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/getiampolicy/AsyncGetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/getiampolicy/SyncGetIamPolicy.java b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/getiampolicy/SyncGetIamPolicy.java index 2f1abea0f6..5055cce66c 100644 --- a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/getiampolicy/SyncGetIamPolicy.java +++ b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/getiampolicy/SyncGetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/setiampolicy/AsyncSetIamPolicy.java b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/setiampolicy/AsyncSetIamPolicy.java index 666eb775ca..87ed5c227f 100644 --- a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/setiampolicy/AsyncSetIamPolicy.java +++ b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/setiampolicy/AsyncSetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/setiampolicy/SyncSetIamPolicy.java b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/setiampolicy/SyncSetIamPolicy.java index d084631fae..83cd967e79 100644 --- a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/setiampolicy/SyncSetIamPolicy.java +++ b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/setiampolicy/SyncSetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/testiampermissions/AsyncTestIamPermissions.java b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/testiampermissions/AsyncTestIamPermissions.java index 5543b02e8d..f41c6074a6 100644 --- a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/testiampermissions/AsyncTestIamPermissions.java +++ b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/testiampermissions/AsyncTestIamPermissions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/testiampermissions/SyncTestIamPermissions.java b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/testiampermissions/SyncTestIamPermissions.java index b226c3e1f7..49a69dfea8 100644 --- a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/testiampermissions/SyncTestIamPermissions.java +++ b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicy/testiampermissions/SyncTestIamPermissions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicysettings/setiampolicy/SyncSetIamPolicy.java b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicysettings/setiampolicy/SyncSetIamPolicy.java index 37d8908d5f..b8f0745a26 100644 --- a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicysettings/setiampolicy/SyncSetIamPolicy.java +++ b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/iampolicysettings/setiampolicy/SyncSetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SyncSetIamPolicy.java b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SyncSetIamPolicy.java index f065f862fc..5d9d0fe693 100644 --- a/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SyncSetIamPolicy.java +++ b/test/integration/goldens/iam/samples/snippets/generated/main/java/com/google/iam/v1/stub/iampolicystubsettings/setiampolicy/SyncSetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java b/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java index 8f874bfce1..e15b88873d 100644 --- a/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java +++ b/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClientTest.java b/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClientTest.java index 8c83e6219c..c314d7d8e7 100644 --- a/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClientTest.java +++ b/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java b/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java index c482988306..b1ea0a8be9 100644 --- a/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java +++ b/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/src/com/google/iam/v1/MockIAMPolicy.java b/test/integration/goldens/iam/src/com/google/iam/v1/MockIAMPolicy.java index eca400e7d6..87c1970c88 100644 --- a/test/integration/goldens/iam/src/com/google/iam/v1/MockIAMPolicy.java +++ b/test/integration/goldens/iam/src/com/google/iam/v1/MockIAMPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/src/com/google/iam/v1/MockIAMPolicyImpl.java b/test/integration/goldens/iam/src/com/google/iam/v1/MockIAMPolicyImpl.java index 218cc5c223..394e9b1f85 100644 --- a/test/integration/goldens/iam/src/com/google/iam/v1/MockIAMPolicyImpl.java +++ b/test/integration/goldens/iam/src/com/google/iam/v1/MockIAMPolicyImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/src/com/google/iam/v1/package-info.java b/test/integration/goldens/iam/src/com/google/iam/v1/package-info.java index c31beb7ded..7093462f7b 100644 --- a/test/integration/goldens/iam/src/com/google/iam/v1/package-info.java +++ b/test/integration/goldens/iam/src/com/google/iam/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java b/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java index 609da69e2b..63338b13a7 100644 --- a/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java +++ b/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyStub.java b/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyStub.java index e734c54817..949bd28a6f 100644 --- a/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyStub.java +++ b/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStub.java b/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStub.java index ed610a35ae..af07570120 100644 --- a/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStub.java +++ b/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java b/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java index 783ae66465..7f8bdcf147 100644 --- a/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java +++ b/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/AsyncAsymmetricDecrypt.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/AsyncAsymmetricDecrypt.java index cc2a4f437f..22a5ad7647 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/AsyncAsymmetricDecrypt.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/AsyncAsymmetricDecrypt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecrypt.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecrypt.java index 7fb5390fc3..94e54ea34f 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecrypt.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecrypt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptCryptokeyversionnameBytestring.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptCryptokeyversionnameBytestring.java index f168f08094..6e3ca06159 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptCryptokeyversionnameBytestring.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptCryptokeyversionnameBytestring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptStringBytestring.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptStringBytestring.java index b411fef6a8..b3c2d465dd 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptStringBytestring.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricdecrypt/SyncAsymmetricDecryptStringBytestring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/AsyncAsymmetricSign.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/AsyncAsymmetricSign.java index f896350580..b1df147879 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/AsyncAsymmetricSign.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/AsyncAsymmetricSign.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSign.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSign.java index 6840faccbe..535d1d8224 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSign.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSign.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignCryptokeyversionnameDigest.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignCryptokeyversionnameDigest.java index 94e66bbc54..6df5da7859 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignCryptokeyversionnameDigest.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignCryptokeyversionnameDigest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignStringDigest.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignStringDigest.java index ef2f5569bf..b68e4aee94 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignStringDigest.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/asymmetricsign/SyncAsymmetricSignStringDigest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider.java index 041669de77..858cfad9d0 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetEndpoint.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetEndpoint.java index f9e66e56f1..bbc377b5c2 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/AsyncCreateCryptoKey.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/AsyncCreateCryptoKey.java index dd9d621827..3ba78e7996 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/AsyncCreateCryptoKey.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/AsyncCreateCryptoKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKey.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKey.java index f3fad688d7..0e4a5d5e36 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKey.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyKeyringnameStringCryptokey.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyKeyringnameStringCryptokey.java index 5e5a2651a9..e3c8f51c36 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyKeyringnameStringCryptokey.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyKeyringnameStringCryptokey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyStringStringCryptokey.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyStringStringCryptokey.java index 836c6af3dd..6f5e3340f4 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyStringStringCryptokey.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokey/SyncCreateCryptoKeyStringStringCryptokey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/AsyncCreateCryptoKeyVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/AsyncCreateCryptoKeyVersion.java index b989796311..68035ec787 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/AsyncCreateCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/AsyncCreateCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersion.java index 75876feefb..ecfd64e31d 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java index 453ca5530a..404faeb933 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionCryptokeynameCryptokeyversion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionStringCryptokeyversion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionStringCryptokeyversion.java index ff8bc3e1d1..3683301e69 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionStringCryptokeyversion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createcryptokeyversion/SyncCreateCryptoKeyVersionStringCryptokeyversion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/AsyncCreateImportJob.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/AsyncCreateImportJob.java index 3db848ec15..9da4794ba1 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/AsyncCreateImportJob.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/AsyncCreateImportJob.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJob.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJob.java index 04602a2f69..1844d0fc72 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJob.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJob.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobKeyringnameStringImportjob.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobKeyringnameStringImportjob.java index 97e2f92c1c..1bcbd56f72 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobKeyringnameStringImportjob.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobKeyringnameStringImportjob.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobStringStringImportjob.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobStringStringImportjob.java index 72c78fa6f9..8f04fe0a49 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobStringStringImportjob.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createimportjob/SyncCreateImportJobStringStringImportjob.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/AsyncCreateKeyRing.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/AsyncCreateKeyRing.java index a68808a85c..03f762d177 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/AsyncCreateKeyRing.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/AsyncCreateKeyRing.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRing.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRing.java index 405ca8d1ad..b9086c1498 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRing.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRing.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingLocationnameStringKeyring.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingLocationnameStringKeyring.java index 3dd2c39280..e4e56d399c 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingLocationnameStringKeyring.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingLocationnameStringKeyring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingStringStringKeyring.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingStringStringKeyring.java index 638e11b63a..877b191b90 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingStringStringKeyring.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/createkeyring/SyncCreateKeyRingStringStringKeyring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/AsyncDecrypt.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/AsyncDecrypt.java index fbb987567f..8b155da3b4 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/AsyncDecrypt.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/AsyncDecrypt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecrypt.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecrypt.java index 7c3930442e..35a76b058d 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecrypt.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecrypt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptCryptokeynameBytestring.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptCryptokeynameBytestring.java index 577ef88575..b04f195f37 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptCryptokeynameBytestring.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptCryptokeynameBytestring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptStringBytestring.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptStringBytestring.java index e452a4e86b..b2888ecc57 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptStringBytestring.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/decrypt/SyncDecryptStringBytestring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/AsyncDestroyCryptoKeyVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/AsyncDestroyCryptoKeyVersion.java index e30a288614..fc8445e8c3 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/AsyncDestroyCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/AsyncDestroyCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersion.java index 222573ab26..b9ecd965b7 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionCryptokeyversionname.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionCryptokeyversionname.java index e6dc417d23..5bc71c1a10 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionCryptokeyversionname.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionCryptokeyversionname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionString.java index e1f3c5e1bb..58d9f7ec48 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/destroycryptokeyversion/SyncDestroyCryptoKeyVersionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/AsyncEncrypt.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/AsyncEncrypt.java index 5764aac370..859657fefc 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/AsyncEncrypt.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/AsyncEncrypt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncrypt.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncrypt.java index e23902bc83..f221f48887 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncrypt.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncrypt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptResourcenameBytestring.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptResourcenameBytestring.java index 8606d7979f..0410a20a08 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptResourcenameBytestring.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptResourcenameBytestring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptStringBytestring.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptStringBytestring.java index da7a039f58..59ed8d337c 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptStringBytestring.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/encrypt/SyncEncryptStringBytestring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/AsyncGetCryptoKey.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/AsyncGetCryptoKey.java index bb5ea9bbc7..20a55f6642 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/AsyncGetCryptoKey.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/AsyncGetCryptoKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKey.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKey.java index 32c9dcb472..4c4d130c91 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKey.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyCryptokeyname.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyCryptokeyname.java index 2a6fdb47fb..55735a553b 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyCryptokeyname.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyCryptokeyname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyString.java index 54526a32ae..2fd7ac3033 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokey/SyncGetCryptoKeyString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/AsyncGetCryptoKeyVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/AsyncGetCryptoKeyVersion.java index cd34d1ff94..2746f1f6da 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/AsyncGetCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/AsyncGetCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersion.java index fc941f4e9a..f824c79f3e 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionCryptokeyversionname.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionCryptokeyversionname.java index 0bcdac28f1..00cd202443 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionCryptokeyversionname.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionCryptokeyversionname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionString.java index 80b917e2a1..659ba2bad5 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getcryptokeyversion/SyncGetCryptoKeyVersionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/AsyncGetIamPolicy.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/AsyncGetIamPolicy.java index 47b5fc2268..fb751ec6a5 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/AsyncGetIamPolicy.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/AsyncGetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/SyncGetIamPolicy.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/SyncGetIamPolicy.java index cee42c7c0b..2ce3b7ddaa 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/SyncGetIamPolicy.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getiampolicy/SyncGetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/AsyncGetImportJob.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/AsyncGetImportJob.java index e9c4860997..1fa7e80155 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/AsyncGetImportJob.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/AsyncGetImportJob.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJob.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJob.java index b8c6f7c8c9..5edeb92a60 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJob.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJob.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobImportjobname.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobImportjobname.java index 6b027a672a..35dd9f1830 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobImportjobname.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobImportjobname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobString.java index 71010664ca..449d7c8642 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getimportjob/SyncGetImportJobString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/AsyncGetKeyRing.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/AsyncGetKeyRing.java index 18ab2968dd..06223d2810 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/AsyncGetKeyRing.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/AsyncGetKeyRing.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRing.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRing.java index a087e951bf..973c3d45f1 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRing.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRing.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingKeyringname.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingKeyringname.java index d3de111058..f3109ab108 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingKeyringname.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingKeyringname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingString.java index 840a717027..564f9cff4b 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getkeyring/SyncGetKeyRingString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getlocation/AsyncGetLocation.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getlocation/AsyncGetLocation.java index 6367186a7d..1fcedb1f15 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getlocation/AsyncGetLocation.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getlocation/AsyncGetLocation.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getlocation/SyncGetLocation.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getlocation/SyncGetLocation.java index 3f6a88330c..5ac824215b 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getlocation/SyncGetLocation.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getlocation/SyncGetLocation.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/AsyncGetPublicKey.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/AsyncGetPublicKey.java index 6771469a14..478d43878c 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/AsyncGetPublicKey.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/AsyncGetPublicKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKey.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKey.java index adecee13ed..d7aa2405d3 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKey.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyCryptokeyversionname.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyCryptokeyversionname.java index d5ac4e736a..d000a31ab0 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyCryptokeyversionname.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyCryptokeyversionname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyString.java index 55daa29e91..b22a2ea13e 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/getpublickey/SyncGetPublicKeyString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/AsyncImportCryptoKeyVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/AsyncImportCryptoKeyVersion.java index c4706916dd..2eae199d2a 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/AsyncImportCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/AsyncImportCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/SyncImportCryptoKeyVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/SyncImportCryptoKeyVersion.java index f03e33329c..57787748e9 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/SyncImportCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/importcryptokeyversion/SyncImportCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeys.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeys.java index 56718da9b0..ce5c3c8bf4 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeys.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeys.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeysPaged.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeysPaged.java index 9af5639d8a..886a1ccadc 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeysPaged.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/AsyncListCryptoKeysPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeys.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeys.java index 239430c5a3..9667964697 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeys.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeys.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysKeyringname.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysKeyringname.java index 99c3e8e0d2..ef6b3b3a8e 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysKeyringname.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysKeyringname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysString.java index 8588e2f8b2..87bba31ba3 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeys/SyncListCryptoKeysString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersions.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersions.java index f111c1e181..f23f4b7cd6 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersions.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java index 3e404e16de..0d20730578 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersions.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersions.java index 38e4405d10..c6344ceaeb 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersions.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsCryptokeyname.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsCryptokeyname.java index ccef051d82..c69e224c4d 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsCryptokeyname.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsCryptokeyname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsString.java index 04d36658ce..7eab120639 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listcryptokeyversions/SyncListCryptoKeyVersionsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobs.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobs.java index d3fd99c208..e29344d12a 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobs.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobs.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobsPaged.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobsPaged.java index 7c3b0e7fa7..d4aee0e26e 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobsPaged.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/AsyncListImportJobsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobs.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobs.java index af2ad4042a..6244043cb1 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobs.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobs.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsKeyringname.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsKeyringname.java index 8b2e78e275..c7f81e3132 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsKeyringname.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsKeyringname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsString.java index 488d0a38c5..5db689d8b9 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listimportjobs/SyncListImportJobsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRings.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRings.java index 7f30ccb06e..ee7c833c6f 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRings.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRingsPaged.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRingsPaged.java index 56f7122763..8286cbc6b3 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRingsPaged.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/AsyncListKeyRingsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRings.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRings.java index e574ee3e4f..0c6e7fd2ef 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRings.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsLocationname.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsLocationname.java index 48bcb39508..b431b357b4 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsLocationname.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsLocationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsString.java index b41c7a012c..65ed0c9bbc 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listkeyrings/SyncListKeyRingsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocations.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocations.java index b9bf48e196..919d81864c 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocations.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocations.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocationsPaged.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocationsPaged.java index 83b07c6e29..cf35903a82 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocationsPaged.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listlocations/AsyncListLocationsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listlocations/SyncListLocations.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listlocations/SyncListLocations.java index 00d2dee8a0..eb9d33dbf6 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listlocations/SyncListLocations.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/listlocations/SyncListLocations.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/AsyncRestoreCryptoKeyVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/AsyncRestoreCryptoKeyVersion.java index 3cadf3766e..6985d5cb33 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/AsyncRestoreCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/AsyncRestoreCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersion.java index b37720cdf1..b8376a87d6 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionCryptokeyversionname.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionCryptokeyversionname.java index 683b766b9a..f353bf0632 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionCryptokeyversionname.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionCryptokeyversionname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionString.java index b80fe13beb..97bc87ef4b 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/restorecryptokeyversion/SyncRestoreCryptoKeyVersionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/AsyncTestIamPermissions.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/AsyncTestIamPermissions.java index 79ea7dec55..f99a0d7e34 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/AsyncTestIamPermissions.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/AsyncTestIamPermissions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/SyncTestIamPermissions.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/SyncTestIamPermissions.java index 75f80b0576..64b26538f3 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/SyncTestIamPermissions.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/testiampermissions/SyncTestIamPermissions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/AsyncUpdateCryptoKey.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/AsyncUpdateCryptoKey.java index 5352b33e19..843252c3f2 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/AsyncUpdateCryptoKey.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/AsyncUpdateCryptoKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKey.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKey.java index 89c6a1169f..bcd1d6b65f 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKey.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKeyCryptokeyFieldmask.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKeyCryptokeyFieldmask.java index 9adf51936a..dab5b87db2 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKeyCryptokeyFieldmask.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokey/SyncUpdateCryptoKeyCryptokeyFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/AsyncUpdateCryptoKeyPrimaryVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/AsyncUpdateCryptoKeyPrimaryVersion.java index cef1efa77b..8a84b76a47 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/AsyncUpdateCryptoKeyPrimaryVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/AsyncUpdateCryptoKeyPrimaryVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersion.java index 882d593893..14b18847ec 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java index 85f1325c1f..438a210ccc 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionCryptokeynameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionStringString.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionStringString.java index fc6feb84c7..af4cbc1b1a 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionStringString.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyprimaryversion/SyncUpdateCryptoKeyPrimaryVersionStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/AsyncUpdateCryptoKeyVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/AsyncUpdateCryptoKeyVersion.java index a1d1995b8f..09e1fa18b4 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/AsyncUpdateCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/AsyncUpdateCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersion.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersion.java index 154b5d97f8..e4989f0b42 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersion.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java index 038152b7e3..24a5ebace6 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservice/updatecryptokeyversion/SyncUpdateCryptoKeyVersionCryptokeyversionFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/SyncGetKeyRing.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/SyncGetKeyRing.java index 794e8fe8c5..a998bef402 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/SyncGetKeyRing.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementservicesettings/getkeyring/SyncGetKeyRing.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/SyncGetKeyRing.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/SyncGetKeyRing.java index bc4d2d4476..14c50feecc 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/SyncGetKeyRing.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/stub/keymanagementservicestubsettings/getkeyring/SyncGetKeyRing.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java index ac727082cb..72043d7f96 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java index b8672b6f1b..ca7cf4d36e 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java index 363ea81a8b..8f3e412af1 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java index fca416eecc..ad15b55e7c 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java index bd5075cfcd..97a2b4c6b6 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java index 7e86f7b23f..7d7a6baaf9 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java index 38996aff7c..16076a3de5 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java index 999aff636a..f659a0d662 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockIAMPolicy.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockIAMPolicy.java index 3a01f22d99..76728be4f7 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockIAMPolicy.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockIAMPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockIAMPolicyImpl.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockIAMPolicyImpl.java index 96a620d98b..993caf1d8b 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockIAMPolicyImpl.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockIAMPolicyImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockKeyManagementService.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockKeyManagementService.java index 3f7d6729bd..ab212e1955 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockKeyManagementService.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockKeyManagementService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java index 088a0f6e71..5f3ec33874 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockKeyManagementServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockLocations.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockLocations.java index 0627b4c3f3..8cf33f0011 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockLocations.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockLocations.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockLocationsImpl.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockLocationsImpl.java index a934aa4690..b129b0bd9b 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockLocationsImpl.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/MockLocationsImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/package-info.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/package-info.java index 99b038f914..ebf854b0c2 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/package-info.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java index 9c03d7854a..f50dde0717 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java index 832a2ca2cc..023f092883 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java index 021a5a6aea..6fef1f7c42 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java index 8fe5b31ad0..6d7ba5c886 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/create/SyncCreateSetCredentialsProvider.java index 6feec3f02f..5f926cbfc7 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/create/SyncCreateSetCredentialsProvider1.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/create/SyncCreateSetCredentialsProvider1.java index 97e069a04b..ed6461cb0e 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/create/SyncCreateSetCredentialsProvider1.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/create/SyncCreateSetCredentialsProvider1.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/create/SyncCreateSetEndpoint.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/create/SyncCreateSetEndpoint.java index 77c2ee9c63..36743cde36 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/AsyncCreateBook.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/AsyncCreateBook.java index 6222c21b94..f4a4098496 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/AsyncCreateBook.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/AsyncCreateBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/SyncCreateBook.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/SyncCreateBook.java index 0e94cd6ed4..fae0d27321 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/SyncCreateBook.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/SyncCreateBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/SyncCreateBookShelfnameBook.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/SyncCreateBookShelfnameBook.java index a5884b78fb..5107b76ed4 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/SyncCreateBookShelfnameBook.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/SyncCreateBookShelfnameBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/SyncCreateBookStringBook.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/SyncCreateBookStringBook.java index 356965aab9..ff6c752acb 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/SyncCreateBookStringBook.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createbook/SyncCreateBookStringBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/AsyncCreateShelf.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/AsyncCreateShelf.java index 14634e1b6b..f5dc9b8af4 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/AsyncCreateShelf.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/AsyncCreateShelf.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/SyncCreateShelf.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/SyncCreateShelf.java index 9fa234edac..a468cf651a 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/SyncCreateShelf.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/SyncCreateShelf.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/SyncCreateShelfShelf.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/SyncCreateShelfShelf.java index 2ebc9e99e9..8a1c61ba5e 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/SyncCreateShelfShelf.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/createshelf/SyncCreateShelfShelf.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/AsyncDeleteBook.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/AsyncDeleteBook.java index 1660fd1bf2..693ae0d0b7 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/AsyncDeleteBook.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/AsyncDeleteBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/SyncDeleteBook.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/SyncDeleteBook.java index 2c87a18058..5f8cdd8044 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/SyncDeleteBook.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/SyncDeleteBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/SyncDeleteBookBookname.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/SyncDeleteBookBookname.java index df46852380..ef45462efa 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/SyncDeleteBookBookname.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/SyncDeleteBookBookname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/SyncDeleteBookString.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/SyncDeleteBookString.java index 1f76cdabbc..b15732ae51 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/SyncDeleteBookString.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deletebook/SyncDeleteBookString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/AsyncDeleteShelf.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/AsyncDeleteShelf.java index 22dbf81f1e..71a089f40e 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/AsyncDeleteShelf.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/AsyncDeleteShelf.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/SyncDeleteShelf.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/SyncDeleteShelf.java index cb3c19f529..cda872830d 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/SyncDeleteShelf.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/SyncDeleteShelf.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/SyncDeleteShelfShelfname.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/SyncDeleteShelfShelfname.java index f40247fcf9..b3847b952f 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/SyncDeleteShelfShelfname.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/SyncDeleteShelfShelfname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/SyncDeleteShelfString.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/SyncDeleteShelfString.java index 9382020ee5..a03ce1d124 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/SyncDeleteShelfString.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/deleteshelf/SyncDeleteShelfString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/AsyncGetBook.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/AsyncGetBook.java index 56797bb925..f95791e3db 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/AsyncGetBook.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/AsyncGetBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/SyncGetBook.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/SyncGetBook.java index 002ab5172c..62153a2e93 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/SyncGetBook.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/SyncGetBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/SyncGetBookBookname.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/SyncGetBookBookname.java index 378254ac36..6f75613a76 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/SyncGetBookBookname.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/SyncGetBookBookname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/SyncGetBookString.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/SyncGetBookString.java index 8cc7e4d7f2..450942ce1f 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/SyncGetBookString.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getbook/SyncGetBookString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/AsyncGetShelf.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/AsyncGetShelf.java index dd55a2965b..b03103f339 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/AsyncGetShelf.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/AsyncGetShelf.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/SyncGetShelf.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/SyncGetShelf.java index effbefaee4..a17717bd48 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/SyncGetShelf.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/SyncGetShelf.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/SyncGetShelfShelfname.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/SyncGetShelfShelfname.java index 7cd91ff678..9029563349 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/SyncGetShelfShelfname.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/SyncGetShelfShelfname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/SyncGetShelfString.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/SyncGetShelfString.java index 4e6e3ec908..359e10438c 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/SyncGetShelfString.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/getshelf/SyncGetShelfString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/AsyncListBooks.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/AsyncListBooks.java index 116a4510f8..94ecfab018 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/AsyncListBooks.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/AsyncListBooks.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/AsyncListBooksPaged.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/AsyncListBooksPaged.java index a62e76cd3d..a1f9a80fa8 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/AsyncListBooksPaged.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/AsyncListBooksPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/SyncListBooks.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/SyncListBooks.java index 64dd251569..cbaf1a76e2 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/SyncListBooks.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/SyncListBooks.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/SyncListBooksShelfname.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/SyncListBooksShelfname.java index 194ad0e13f..6eb95613f9 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/SyncListBooksShelfname.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/SyncListBooksShelfname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/SyncListBooksString.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/SyncListBooksString.java index 6fc75f8dbb..08c03f38e0 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/SyncListBooksString.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listbooks/SyncListBooksString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listshelves/AsyncListShelves.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listshelves/AsyncListShelves.java index 4531051eec..7185121773 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listshelves/AsyncListShelves.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listshelves/AsyncListShelves.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listshelves/AsyncListShelvesPaged.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listshelves/AsyncListShelvesPaged.java index 4a1619bbb0..801e4e8a11 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listshelves/AsyncListShelvesPaged.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listshelves/AsyncListShelvesPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listshelves/SyncListShelves.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listshelves/SyncListShelves.java index 460e7c79f5..0c7133a318 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listshelves/SyncListShelves.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/listshelves/SyncListShelves.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/AsyncMergeShelves.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/AsyncMergeShelves.java index 23e96682d2..1adeb030ec 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/AsyncMergeShelves.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/AsyncMergeShelves.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelves.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelves.java index 2738e74472..c5ed9c3661 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelves.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelves.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesShelfnameShelfname.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesShelfnameShelfname.java index 5a13c081d5..ae6819490a 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesShelfnameShelfname.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesShelfnameShelfname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesShelfnameString.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesShelfnameString.java index 35a3f79d17..dbdec8f66b 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesShelfnameString.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesShelfnameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesStringShelfname.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesStringShelfname.java index c75cf2964d..73792076c7 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesStringShelfname.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesStringShelfname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesStringString.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesStringString.java index 978e32c467..dc9ca5232d 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesStringString.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/mergeshelves/SyncMergeShelvesStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/AsyncMoveBook.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/AsyncMoveBook.java index 4a9d600159..669eda525e 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/AsyncMoveBook.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/AsyncMoveBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBook.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBook.java index 90a4376800..441844f634 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBook.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookBooknameShelfname.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookBooknameShelfname.java index 19eebcde14..3bd9b6aa79 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookBooknameShelfname.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookBooknameShelfname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookBooknameString.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookBooknameString.java index 3764bd4f47..9dc6a98255 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookBooknameString.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookBooknameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookStringShelfname.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookStringShelfname.java index 275b7f2a35..e3bb9c0140 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookStringShelfname.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookStringShelfname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookStringString.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookStringString.java index 824f8aa3b8..f2249822be 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookStringString.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/movebook/SyncMoveBookStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/updatebook/AsyncUpdateBook.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/updatebook/AsyncUpdateBook.java index 53ba7b952b..bc2d3ecef0 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/updatebook/AsyncUpdateBook.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/updatebook/AsyncUpdateBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/updatebook/SyncUpdateBook.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/updatebook/SyncUpdateBook.java index d30318efda..2cda4e387c 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/updatebook/SyncUpdateBook.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/updatebook/SyncUpdateBook.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/updatebook/SyncUpdateBookBookFieldmask.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/updatebook/SyncUpdateBookBookFieldmask.java index 7ab9dd98d3..fb774a14cc 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/updatebook/SyncUpdateBookBookFieldmask.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservice/updatebook/SyncUpdateBookBookFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/SyncCreateShelf.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/SyncCreateShelf.java index 8a5543bfdf..7dc4625f7e 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/SyncCreateShelf.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryservicesettings/createshelf/SyncCreateShelf.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/SyncCreateShelf.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/SyncCreateShelf.java index e5a4dc596e..1b27c73b64 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/SyncCreateShelf.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/stub/libraryservicestubsettings/createshelf/SyncCreateShelf.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java index 792b325407..cadfdd530c 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClientHttpJsonTest.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClientHttpJsonTest.java index 5c151f0c8e..0b1c272024 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClientHttpJsonTest.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClientTest.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClientTest.java index 2aadaef721..ea5c8baa78 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClientTest.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java index 75de562fb0..2b9e988e05 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/MockLibraryService.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/MockLibraryService.java index 62d8222d1b..2c1fa2a4ac 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/MockLibraryService.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/MockLibraryService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/MockLibraryServiceImpl.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/MockLibraryServiceImpl.java index 7c08f6f26b..9c6c68240f 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/MockLibraryServiceImpl.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/MockLibraryServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/package-info.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/package-info.java index 9dd00066b9..c05cf52ba4 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/package-info.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java index f82da43a70..2f825acc3c 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java index 89d8bff088..db5a72a4e2 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceCallableFactory.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceCallableFactory.java index 41d0800761..60cd7ae542 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceCallableFactory.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceStub.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceStub.java index 565318ff8b..7c2e501087 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceStub.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java index b260be31e7..c90ba1d93d 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java index 3fe8079552..32ff855eba 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java b/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java index 3cc28fb4ba..a4f9314298 100644 --- a/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java +++ b/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java b/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java index 92b9a4a996..bf85d43d98 100644 --- a/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java +++ b/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/copylogentries/AsyncCopyLogEntries.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/copylogentries/AsyncCopyLogEntries.java index bed20beb35..ec2256b38d 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/copylogentries/AsyncCopyLogEntries.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/copylogentries/AsyncCopyLogEntries.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/copylogentries/AsyncCopyLogEntriesLRO.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/copylogentries/AsyncCopyLogEntriesLRO.java index 5eeca2b748..7c5e74cf38 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/copylogentries/AsyncCopyLogEntriesLRO.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/copylogentries/AsyncCopyLogEntriesLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/copylogentries/SyncCopyLogEntries.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/copylogentries/SyncCopyLogEntries.java index f1f5c419e4..a545dc980d 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/copylogentries/SyncCopyLogEntries.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/copylogentries/SyncCopyLogEntries.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/create/SyncCreateSetCredentialsProvider.java index 847d807682..41d5964e18 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/create/SyncCreateSetEndpoint.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/create/SyncCreateSetEndpoint.java index 8d724717ce..e013e44612 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createbucket/AsyncCreateBucket.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createbucket/AsyncCreateBucket.java index 4ae6ae8968..2c7b0f5b64 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createbucket/AsyncCreateBucket.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createbucket/AsyncCreateBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createbucket/SyncCreateBucket.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createbucket/SyncCreateBucket.java index 71d394247f..c03d24951c 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createbucket/SyncCreateBucket.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createbucket/SyncCreateBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/AsyncCreateExclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/AsyncCreateExclusion.java index c6e2dda90a..964550a9ad 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/AsyncCreateExclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/AsyncCreateExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusion.java index abbe244561..61993a748a 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionBillingaccountnameLogexclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionBillingaccountnameLogexclusion.java index 136437a4a7..51353de516 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionBillingaccountnameLogexclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionBillingaccountnameLogexclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionFoldernameLogexclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionFoldernameLogexclusion.java index 6feb827eef..e15c6d373e 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionFoldernameLogexclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionFoldernameLogexclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionOrganizationnameLogexclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionOrganizationnameLogexclusion.java index 92e5e01f83..a5afb23833 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionOrganizationnameLogexclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionOrganizationnameLogexclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionProjectnameLogexclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionProjectnameLogexclusion.java index bcd9b642ca..cd165118e8 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionProjectnameLogexclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionProjectnameLogexclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionStringLogexclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionStringLogexclusion.java index d85b425635..f4eb2caf46 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionStringLogexclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createexclusion/SyncCreateExclusionStringLogexclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/AsyncCreateSink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/AsyncCreateSink.java index 9670be2fc8..93c748844d 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/AsyncCreateSink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/AsyncCreateSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSink.java index 582bee16ee..36e5d3332e 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkBillingaccountnameLogsink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkBillingaccountnameLogsink.java index 6724cad461..53d77d75b0 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkBillingaccountnameLogsink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkBillingaccountnameLogsink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkFoldernameLogsink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkFoldernameLogsink.java index a7d1de2931..d2465b998d 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkFoldernameLogsink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkFoldernameLogsink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkOrganizationnameLogsink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkOrganizationnameLogsink.java index 8f972613f7..d84b514164 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkOrganizationnameLogsink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkOrganizationnameLogsink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkProjectnameLogsink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkProjectnameLogsink.java index f916d85feb..d2663880eb 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkProjectnameLogsink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkProjectnameLogsink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkStringLogsink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkStringLogsink.java index d75228af76..e22a28de0f 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkStringLogsink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createsink/SyncCreateSinkStringLogsink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createview/AsyncCreateView.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createview/AsyncCreateView.java index 9e93d6a16d..33282914d5 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createview/AsyncCreateView.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createview/AsyncCreateView.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createview/SyncCreateView.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createview/SyncCreateView.java index 5480c71111..fa9bcc1f24 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createview/SyncCreateView.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/createview/SyncCreateView.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletebucket/AsyncDeleteBucket.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletebucket/AsyncDeleteBucket.java index 48f979ecca..06ed7f4c50 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletebucket/AsyncDeleteBucket.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletebucket/AsyncDeleteBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletebucket/SyncDeleteBucket.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletebucket/SyncDeleteBucket.java index ecb9e7253b..a92bfbf018 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletebucket/SyncDeleteBucket.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletebucket/SyncDeleteBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/AsyncDeleteExclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/AsyncDeleteExclusion.java index 4c86c3e4b0..269fb11819 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/AsyncDeleteExclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/AsyncDeleteExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/SyncDeleteExclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/SyncDeleteExclusion.java index a5c6deb5ce..c0ff39a998 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/SyncDeleteExclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/SyncDeleteExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/SyncDeleteExclusionLogexclusionname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/SyncDeleteExclusionLogexclusionname.java index d84694e4c4..74bb43e24f 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/SyncDeleteExclusionLogexclusionname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/SyncDeleteExclusionLogexclusionname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/SyncDeleteExclusionString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/SyncDeleteExclusionString.java index 177e230bff..139fe61883 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/SyncDeleteExclusionString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteexclusion/SyncDeleteExclusionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/AsyncDeleteSink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/AsyncDeleteSink.java index d1fb26a1c2..fabb413d9f 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/AsyncDeleteSink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/AsyncDeleteSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/SyncDeleteSink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/SyncDeleteSink.java index eb4e0b35ec..190f535e2e 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/SyncDeleteSink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/SyncDeleteSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/SyncDeleteSinkLogsinkname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/SyncDeleteSinkLogsinkname.java index 06715983cc..8c3cc6aafb 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/SyncDeleteSinkLogsinkname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/SyncDeleteSinkLogsinkname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/SyncDeleteSinkString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/SyncDeleteSinkString.java index bf3c88bd7d..395ed84f36 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/SyncDeleteSinkString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deletesink/SyncDeleteSinkString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteview/AsyncDeleteView.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteview/AsyncDeleteView.java index 68270b6e11..2a507b01b5 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteview/AsyncDeleteView.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteview/AsyncDeleteView.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteview/SyncDeleteView.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteview/SyncDeleteView.java index 0e28a0ef5a..60b2ef20b2 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteview/SyncDeleteView.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/deleteview/SyncDeleteView.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getbucket/AsyncGetBucket.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getbucket/AsyncGetBucket.java index 6021be2325..a55d0701c1 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getbucket/AsyncGetBucket.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getbucket/AsyncGetBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getbucket/SyncGetBucket.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getbucket/SyncGetBucket.java index 1eb85fc7ba..19208fe8d5 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getbucket/SyncGetBucket.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getbucket/SyncGetBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getcmeksettings/AsyncGetCmekSettings.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getcmeksettings/AsyncGetCmekSettings.java index c6e1d2ebd7..0a39e64e07 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getcmeksettings/AsyncGetCmekSettings.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getcmeksettings/AsyncGetCmekSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getcmeksettings/SyncGetCmekSettings.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getcmeksettings/SyncGetCmekSettings.java index e09ffa32e2..3b15fea66b 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getcmeksettings/SyncGetCmekSettings.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getcmeksettings/SyncGetCmekSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/AsyncGetExclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/AsyncGetExclusion.java index 13bc773cbb..991198e9da 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/AsyncGetExclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/AsyncGetExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/SyncGetExclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/SyncGetExclusion.java index 34fb1cae33..24ab67e7c0 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/SyncGetExclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/SyncGetExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/SyncGetExclusionLogexclusionname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/SyncGetExclusionLogexclusionname.java index a72f1de451..a4494b4c21 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/SyncGetExclusionLogexclusionname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/SyncGetExclusionLogexclusionname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/SyncGetExclusionString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/SyncGetExclusionString.java index 5ea00b3aa6..17b21bf3dd 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/SyncGetExclusionString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getexclusion/SyncGetExclusionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/AsyncGetSettings.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/AsyncGetSettings.java index 98450d45d8..c2975021a6 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/AsyncGetSettings.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/AsyncGetSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/SyncGetSettings.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/SyncGetSettings.java index beadce3f5c..55b02223f0 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/SyncGetSettings.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/SyncGetSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/SyncGetSettingsSettingsname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/SyncGetSettingsSettingsname.java index 7ca58834a5..2cee0404e6 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/SyncGetSettingsSettingsname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/SyncGetSettingsSettingsname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/SyncGetSettingsString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/SyncGetSettingsString.java index c670b18491..50921752db 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/SyncGetSettingsString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsettings/SyncGetSettingsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/AsyncGetSink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/AsyncGetSink.java index 06442bcc7d..389f61ade1 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/AsyncGetSink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/AsyncGetSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/SyncGetSink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/SyncGetSink.java index 8c8af6f4ca..fb23db2477 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/SyncGetSink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/SyncGetSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/SyncGetSinkLogsinkname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/SyncGetSinkLogsinkname.java index b36cf9becc..5a29734abc 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/SyncGetSinkLogsinkname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/SyncGetSinkLogsinkname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/SyncGetSinkString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/SyncGetSinkString.java index fd712ac600..eb7e67c115 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/SyncGetSinkString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getsink/SyncGetSinkString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getview/AsyncGetView.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getview/AsyncGetView.java index 07b6330eff..7328975899 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getview/AsyncGetView.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getview/AsyncGetView.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getview/SyncGetView.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getview/SyncGetView.java index b8d6c7693d..5861452301 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getview/SyncGetView.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/getview/SyncGetView.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/AsyncListBuckets.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/AsyncListBuckets.java index 4cdf1d302b..6244207f0a 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/AsyncListBuckets.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/AsyncListBuckets.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/AsyncListBucketsPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/AsyncListBucketsPaged.java index c242c6910c..636670d219 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/AsyncListBucketsPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/AsyncListBucketsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBuckets.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBuckets.java index 4f221112cb..cc9a529c86 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBuckets.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBuckets.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsBillingaccountlocationname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsBillingaccountlocationname.java index a4380ed6f8..94ecda3ddd 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsBillingaccountlocationname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsBillingaccountlocationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsFolderlocationname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsFolderlocationname.java index f3f33256d8..e4e8db0f74 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsFolderlocationname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsFolderlocationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsLocationname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsLocationname.java index a6774438b0..cde7ee59a9 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsLocationname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsLocationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsOrganizationlocationname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsOrganizationlocationname.java index a72d7a4ec5..2e7319f582 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsOrganizationlocationname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsOrganizationlocationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsString.java index 6110e00c2b..81716eed4e 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listbuckets/SyncListBucketsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/AsyncListExclusions.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/AsyncListExclusions.java index 1b594693f2..067f1857ee 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/AsyncListExclusions.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/AsyncListExclusions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/AsyncListExclusionsPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/AsyncListExclusionsPaged.java index 106f327067..a80136f18d 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/AsyncListExclusionsPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/AsyncListExclusionsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusions.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusions.java index 93e34bbe1b..368f6d63e9 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusions.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsBillingaccountname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsBillingaccountname.java index de52b43f63..e0552b0337 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsBillingaccountname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsBillingaccountname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsFoldername.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsFoldername.java index bbd3f7ec64..54af2f2787 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsFoldername.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsFoldername.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsOrganizationname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsOrganizationname.java index d6e17cb19e..d4fa4c0c48 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsOrganizationname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsOrganizationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsProjectname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsProjectname.java index 928434aa76..ef985aad76 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsProjectname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsString.java index f2e12aaba2..5956dc4542 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listexclusions/SyncListExclusionsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/AsyncListSinks.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/AsyncListSinks.java index 1c9398e28c..355df7ee0d 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/AsyncListSinks.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/AsyncListSinks.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/AsyncListSinksPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/AsyncListSinksPaged.java index 815e5b80a9..d2be83933a 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/AsyncListSinksPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/AsyncListSinksPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinks.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinks.java index 9a9600dce0..3b21ba9988 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinks.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinks.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksBillingaccountname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksBillingaccountname.java index ff5f3ff814..08c525c77f 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksBillingaccountname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksBillingaccountname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksFoldername.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksFoldername.java index 9fb0a3d77e..6cfa87217b 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksFoldername.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksFoldername.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksOrganizationname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksOrganizationname.java index ceeeba8b01..6db7404c92 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksOrganizationname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksOrganizationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksProjectname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksProjectname.java index a88cfe2dde..a9c4c8866d 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksProjectname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksString.java index d3e7883250..7c31c41c3c 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listsinks/SyncListSinksString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/AsyncListViews.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/AsyncListViews.java index ba0eb83380..8fe11a95ba 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/AsyncListViews.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/AsyncListViews.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/AsyncListViewsPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/AsyncListViewsPaged.java index 47c7d704a6..75c86b6251 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/AsyncListViewsPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/AsyncListViewsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/SyncListViews.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/SyncListViews.java index e98adba487..c2b0d5a6f6 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/SyncListViews.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/SyncListViews.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/SyncListViewsString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/SyncListViewsString.java index 343918aed1..e0f4462932 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/SyncListViewsString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/listviews/SyncListViewsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/undeletebucket/AsyncUndeleteBucket.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/undeletebucket/AsyncUndeleteBucket.java index 628b5b6360..f791c46d86 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/undeletebucket/AsyncUndeleteBucket.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/undeletebucket/AsyncUndeleteBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/undeletebucket/SyncUndeleteBucket.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/undeletebucket/SyncUndeleteBucket.java index 22ba441c93..e3cb570eb8 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/undeletebucket/SyncUndeleteBucket.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/undeletebucket/SyncUndeleteBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatebucket/AsyncUpdateBucket.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatebucket/AsyncUpdateBucket.java index 8e9f81a88b..fb7533687b 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatebucket/AsyncUpdateBucket.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatebucket/AsyncUpdateBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatebucket/SyncUpdateBucket.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatebucket/SyncUpdateBucket.java index f99f417ad7..87b1de8923 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatebucket/SyncUpdateBucket.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatebucket/SyncUpdateBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatecmeksettings/AsyncUpdateCmekSettings.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatecmeksettings/AsyncUpdateCmekSettings.java index 9004da8d4d..5332175330 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatecmeksettings/AsyncUpdateCmekSettings.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatecmeksettings/AsyncUpdateCmekSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatecmeksettings/SyncUpdateCmekSettings.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatecmeksettings/SyncUpdateCmekSettings.java index 7804688928..45278214c7 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatecmeksettings/SyncUpdateCmekSettings.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatecmeksettings/SyncUpdateCmekSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/AsyncUpdateExclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/AsyncUpdateExclusion.java index 11f88540c8..7c24dc7106 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/AsyncUpdateExclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/AsyncUpdateExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/SyncUpdateExclusion.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/SyncUpdateExclusion.java index 629baa180b..4cdc7d103a 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/SyncUpdateExclusion.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/SyncUpdateExclusion.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/SyncUpdateExclusionLogexclusionnameLogexclusionFieldmask.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/SyncUpdateExclusionLogexclusionnameLogexclusionFieldmask.java index 4d4bd19f0f..5790e56277 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/SyncUpdateExclusionLogexclusionnameLogexclusionFieldmask.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/SyncUpdateExclusionLogexclusionnameLogexclusionFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/SyncUpdateExclusionStringLogexclusionFieldmask.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/SyncUpdateExclusionStringLogexclusionFieldmask.java index 7bb6b7927b..00c458a944 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/SyncUpdateExclusionStringLogexclusionFieldmask.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateexclusion/SyncUpdateExclusionStringLogexclusionFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesettings/AsyncUpdateSettings.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesettings/AsyncUpdateSettings.java index e15cac9fc9..b8bbd45e31 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesettings/AsyncUpdateSettings.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesettings/AsyncUpdateSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesettings/SyncUpdateSettings.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesettings/SyncUpdateSettings.java index fff88bf8f9..81befc7986 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesettings/SyncUpdateSettings.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesettings/SyncUpdateSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesettings/SyncUpdateSettingsSettingsFieldmask.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesettings/SyncUpdateSettingsSettingsFieldmask.java index 013f09b8dc..a0ba842f02 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesettings/SyncUpdateSettingsSettingsFieldmask.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesettings/SyncUpdateSettingsSettingsFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/AsyncUpdateSink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/AsyncUpdateSink.java index 10864dba88..1d24c3a7de 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/AsyncUpdateSink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/AsyncUpdateSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSink.java index 1d96a57ade..5c2d764a36 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkLogsinknameLogsink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkLogsinknameLogsink.java index e5d76471d4..ff017430fd 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkLogsinknameLogsink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkLogsinknameLogsink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkLogsinknameLogsinkFieldmask.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkLogsinknameLogsinkFieldmask.java index 46b02c90a3..aaa72035f9 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkLogsinknameLogsinkFieldmask.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkLogsinknameLogsinkFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkStringLogsink.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkStringLogsink.java index 6c99e2e2c1..6673761b53 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkStringLogsink.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkStringLogsink.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkStringLogsinkFieldmask.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkStringLogsinkFieldmask.java index bb590990e0..3db766e8d6 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkStringLogsinkFieldmask.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updatesink/SyncUpdateSinkStringLogsinkFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateview/AsyncUpdateView.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateview/AsyncUpdateView.java index 39166534c2..93a87b10a2 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateview/AsyncUpdateView.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateview/AsyncUpdateView.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateview/SyncUpdateView.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateview/SyncUpdateView.java index 244a6b91ad..a5358a995e 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateview/SyncUpdateView.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configservicev2/updateview/SyncUpdateView.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configsettings/getbucket/SyncGetBucket.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configsettings/getbucket/SyncGetBucket.java index 3244ec6c7f..bc551dcff4 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configsettings/getbucket/SyncGetBucket.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configsettings/getbucket/SyncGetBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/create/SyncCreateSetCredentialsProvider.java index ce2ca59618..29c5c64284 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/create/SyncCreateSetEndpoint.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/create/SyncCreateSetEndpoint.java index 807da3d721..8181dff298 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/AsyncDeleteLog.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/AsyncDeleteLog.java index 8414054de5..3cd813671c 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/AsyncDeleteLog.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/AsyncDeleteLog.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/SyncDeleteLog.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/SyncDeleteLog.java index e26b96e8b0..26b2433268 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/SyncDeleteLog.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/SyncDeleteLog.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/SyncDeleteLogLogname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/SyncDeleteLogLogname.java index 0fe57b51b3..48ec76be0d 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/SyncDeleteLogLogname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/SyncDeleteLogLogname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/SyncDeleteLogString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/SyncDeleteLogString.java index 3cd97e9f71..d1467bf60b 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/SyncDeleteLogString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/deletelog/SyncDeleteLogString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/AsyncListLogEntries.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/AsyncListLogEntries.java index 0a07e44463..28909d110a 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/AsyncListLogEntries.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/AsyncListLogEntries.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/AsyncListLogEntriesPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/AsyncListLogEntriesPaged.java index 5518988de3..bce435035b 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/AsyncListLogEntriesPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/AsyncListLogEntriesPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/SyncListLogEntries.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/SyncListLogEntries.java index 8eb2bc034a..930cc23e10 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/SyncListLogEntries.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/SyncListLogEntries.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/SyncListLogEntriesListstringStringString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/SyncListLogEntriesListstringStringString.java index 159f9d834a..61f799ba5f 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/SyncListLogEntriesListstringStringString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogentries/SyncListLogEntriesListstringStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/AsyncListLogs.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/AsyncListLogs.java index 2112a5b6ed..25b1baf8f2 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/AsyncListLogs.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/AsyncListLogs.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/AsyncListLogsPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/AsyncListLogsPaged.java index a40da8051a..c27c015f1d 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/AsyncListLogsPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/AsyncListLogsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogs.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogs.java index 0d1d84b426..40f5aa7563 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogs.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogs.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsBillingaccountname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsBillingaccountname.java index 71b40db6c2..ce3eaee7ef 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsBillingaccountname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsBillingaccountname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsFoldername.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsFoldername.java index 2eb3411eaf..c39ae17020 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsFoldername.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsFoldername.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsOrganizationname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsOrganizationname.java index 3b88188128..c05a4d0968 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsOrganizationname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsOrganizationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsProjectname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsProjectname.java index 383f70ae12..84990d2762 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsProjectname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsString.java index c40c8899dc..c1224cd4dc 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listlogs/SyncListLogsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java index 61af6df8b2..410382d99d 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptors.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java index d3b9fa998a..42a5f5fd4b 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java index 8f34380d6a..c244042018 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/listmonitoredresourcedescriptors/SyncListMonitoredResourceDescriptors.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/taillogentries/AsyncTailLogEntries.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/taillogentries/AsyncTailLogEntries.java index a8c6119046..8ec3b34560 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/taillogentries/AsyncTailLogEntries.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/taillogentries/AsyncTailLogEntries.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/AsyncWriteLogEntries.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/AsyncWriteLogEntries.java index c2f567830b..8aca8ae913 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/AsyncWriteLogEntries.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/AsyncWriteLogEntries.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/SyncWriteLogEntries.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/SyncWriteLogEntries.java index 6bc010faea..ce99b2d527 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/SyncWriteLogEntries.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/SyncWriteLogEntries.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/SyncWriteLogEntriesLognameMonitoredresourceMapstringstringListlogentry.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/SyncWriteLogEntriesLognameMonitoredresourceMapstringstringListlogentry.java index bfde9a1d80..2e981887ec 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/SyncWriteLogEntriesLognameMonitoredresourceMapstringstringListlogentry.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/SyncWriteLogEntriesLognameMonitoredresourceMapstringstringListlogentry.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/SyncWriteLogEntriesStringMonitoredresourceMapstringstringListlogentry.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/SyncWriteLogEntriesStringMonitoredresourceMapstringstringListlogentry.java index 9f910adb52..c19b079660 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/SyncWriteLogEntriesStringMonitoredresourceMapstringstringListlogentry.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingservicev2/writelogentries/SyncWriteLogEntriesStringMonitoredresourceMapstringstringListlogentry.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingsettings/deletelog/SyncDeleteLog.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingsettings/deletelog/SyncDeleteLog.java index 46cf4bc767..e6a610ff26 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingsettings/deletelog/SyncDeleteLog.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingsettings/deletelog/SyncDeleteLog.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/create/SyncCreateSetCredentialsProvider.java index e0a94b2035..6332707a62 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/create/SyncCreateSetEndpoint.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/create/SyncCreateSetEndpoint.java index 69fd30836a..adf9886de0 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/AsyncCreateLogMetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/AsyncCreateLogMetric.java index ea7a974960..6da2ff6f7b 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/AsyncCreateLogMetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/AsyncCreateLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/SyncCreateLogMetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/SyncCreateLogMetric.java index afb5bf7b8c..e02a4ff0ce 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/SyncCreateLogMetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/SyncCreateLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/SyncCreateLogMetricProjectnameLogmetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/SyncCreateLogMetricProjectnameLogmetric.java index 7496355b00..adf8599c4d 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/SyncCreateLogMetricProjectnameLogmetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/SyncCreateLogMetricProjectnameLogmetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/SyncCreateLogMetricStringLogmetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/SyncCreateLogMetricStringLogmetric.java index b1fc6a5fd0..52dd117abd 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/SyncCreateLogMetricStringLogmetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/createlogmetric/SyncCreateLogMetricStringLogmetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/AsyncDeleteLogMetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/AsyncDeleteLogMetric.java index f041771cf4..db62e58239 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/AsyncDeleteLogMetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/AsyncDeleteLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/SyncDeleteLogMetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/SyncDeleteLogMetric.java index 44ffd5775a..c686d9e75c 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/SyncDeleteLogMetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/SyncDeleteLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/SyncDeleteLogMetricLogmetricname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/SyncDeleteLogMetricLogmetricname.java index fb754804c4..84e2483475 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/SyncDeleteLogMetricLogmetricname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/SyncDeleteLogMetricLogmetricname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/SyncDeleteLogMetricString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/SyncDeleteLogMetricString.java index 4561d5fced..0bd0cc3f6f 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/SyncDeleteLogMetricString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/deletelogmetric/SyncDeleteLogMetricString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/AsyncGetLogMetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/AsyncGetLogMetric.java index 20f5ae8621..b9700ea016 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/AsyncGetLogMetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/AsyncGetLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/SyncGetLogMetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/SyncGetLogMetric.java index 2d23efdc1f..03263442e5 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/SyncGetLogMetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/SyncGetLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/SyncGetLogMetricLogmetricname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/SyncGetLogMetricLogmetricname.java index 9f39251028..da0a896a3e 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/SyncGetLogMetricLogmetricname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/SyncGetLogMetricLogmetricname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/SyncGetLogMetricString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/SyncGetLogMetricString.java index e2d39b4fb2..3c0f134ff1 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/SyncGetLogMetricString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/getlogmetric/SyncGetLogMetricString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/AsyncListLogMetrics.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/AsyncListLogMetrics.java index 0820cdab15..7ee2415dcd 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/AsyncListLogMetrics.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/AsyncListLogMetrics.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/AsyncListLogMetricsPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/AsyncListLogMetricsPaged.java index 12f0f9b7c6..324be3bbc8 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/AsyncListLogMetricsPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/AsyncListLogMetricsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/SyncListLogMetrics.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/SyncListLogMetrics.java index 5c77109387..7802caa6d2 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/SyncListLogMetrics.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/SyncListLogMetrics.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/SyncListLogMetricsProjectname.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/SyncListLogMetricsProjectname.java index d47c6e758f..a3e91da52f 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/SyncListLogMetricsProjectname.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/SyncListLogMetricsProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/SyncListLogMetricsString.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/SyncListLogMetricsString.java index 327c3adac8..f5f9fff542 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/SyncListLogMetricsString.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/listlogmetrics/SyncListLogMetricsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/AsyncUpdateLogMetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/AsyncUpdateLogMetric.java index 9df964cf15..812829a2ae 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/AsyncUpdateLogMetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/AsyncUpdateLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/SyncUpdateLogMetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/SyncUpdateLogMetric.java index 72b19b6cd0..18aadee570 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/SyncUpdateLogMetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/SyncUpdateLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/SyncUpdateLogMetricLogmetricnameLogmetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/SyncUpdateLogMetricLogmetricnameLogmetric.java index 07e19b3561..c8f9752c80 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/SyncUpdateLogMetricLogmetricnameLogmetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/SyncUpdateLogMetricLogmetricnameLogmetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/SyncUpdateLogMetricStringLogmetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/SyncUpdateLogMetricStringLogmetric.java index e71c919d4d..e0436faa0e 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/SyncUpdateLogMetricStringLogmetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsservicev2/updatelogmetric/SyncUpdateLogMetricStringLogmetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricssettings/getlogmetric/SyncGetLogMetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricssettings/getlogmetric/SyncGetLogMetric.java index 51a42adca1..c577cdb68e 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricssettings/getlogmetric/SyncGetLogMetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricssettings/getlogmetric/SyncGetLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/SyncGetBucket.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/SyncGetBucket.java index 2f29848084..b424ac1e6e 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/SyncGetBucket.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/stub/configservicev2stubsettings/getbucket/SyncGetBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/SyncDeleteLog.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/SyncDeleteLog.java index 83b1c51464..7a478c4a72 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/SyncDeleteLog.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/stub/loggingservicev2stubsettings/deletelog/SyncDeleteLog.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/SyncGetLogMetric.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/SyncGetLogMetric.java index b97c333afe..34727d7491 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/SyncGetLogMetric.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/stub/metricsservicev2stubsettings/getlogmetric/SyncGetLogMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java index ebd12a5156..8fe1fa1074 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClientTest.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClientTest.java index b0afbc94a0..10d39d0630 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClientTest.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java index 0959690382..e17580754b 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java index 2206fbd2ac..90f5d05e23 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClientTest.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClientTest.java index 736ef717b5..02dc0e3292 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClientTest.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java index 1576cad2f0..3abe909170 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java index c5e4ffe2e3..44601734b6 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClientTest.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClientTest.java index 0179c2cadb..bc554fd6b7 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClientTest.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java index 6035089795..722443dfad 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockConfigServiceV2.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockConfigServiceV2.java index 19151b2355..325959baa7 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockConfigServiceV2.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockConfigServiceV2.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java index ca94405545..d6c46ed84a 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockLoggingServiceV2.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockLoggingServiceV2.java index b178291ecc..027dae3a14 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockLoggingServiceV2.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockLoggingServiceV2.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java index 2d98bf7edb..7efc702ba8 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockMetricsServiceV2.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockMetricsServiceV2.java index b500421ac9..f9ba04a316 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockMetricsServiceV2.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockMetricsServiceV2.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java index 417c754fb6..765831f7c9 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/package-info.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/package-info.java index 4f6420980d..f473fa53e3 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/package-info.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java index 3342b44937..c5725ef0dc 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java index c1b47d8ba8..715f811382 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java index 3087b1086c..0a1a508b38 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java index f586326410..e9229fcffa 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java index aa0d7a48db..95d2afb335 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java index e3d33f31d2..7ad2ec7c7f 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java index 4057830b00..2759addace 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java index 19ac83ffd6..bd93e589d5 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java index 0598eed810..2df08a840f 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java index e96353717a..0c2e70f908 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java index be664c8fe2..8cec6cf389 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java index e7eefab52b..30cc3acdbe 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java b/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java index 4a9812183f..f07658910e 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java b/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java index c2f0cd358e..b6a3fbe5dc 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java b/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java index 09a410fb9b..63c0183a11 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java b/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java index f49c5ae452..42ec5ce89a 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java b/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java index 52946796ee..e8c65ec572 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java index d35fa539b9..b394430a3f 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java index 416ff0a60e..0f77e30267 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java index b92fb9c128..2fa6913c62 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java index 88602294ce..24ec4d2330 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java index d62ef78762..21c790f861 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java index 63db5f8ac6..030992a76f 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java b/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java index 223dcf90ec..92b3a1ad75 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java b/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java index 782996120c..e75fc60d78 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java b/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java index e2021c38b6..e9528730ea 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java b/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java index 718dc26f69..6f2c23447a 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java b/test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java index 40a59eee58..86322c9321 100644 --- a/test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java +++ b/test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/create/SyncCreateSetCredentialsProvider.java index cc5a391c07..38380dc268 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/create/SyncCreateSetEndpoint.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/create/SyncCreateSetEndpoint.java index eba79ac393..f19d48e7d3 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/AsyncCreateTopic.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/AsyncCreateTopic.java index 158a295563..f8934c6880 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/AsyncCreateTopic.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/AsyncCreateTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/SyncCreateTopic.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/SyncCreateTopic.java index 2e8a1a0c9c..6499b615fe 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/SyncCreateTopic.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/SyncCreateTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/SyncCreateTopicString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/SyncCreateTopicString.java index c50fd1606a..6dfb4bb215 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/SyncCreateTopicString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/SyncCreateTopicString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/SyncCreateTopicTopicname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/SyncCreateTopicTopicname.java index 9ece0f6f5f..4ccab98794 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/SyncCreateTopicTopicname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/createtopic/SyncCreateTopicTopicname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/AsyncDeleteTopic.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/AsyncDeleteTopic.java index 7fe68ab1b2..bc245d21db 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/AsyncDeleteTopic.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/AsyncDeleteTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/SyncDeleteTopic.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/SyncDeleteTopic.java index e45a50da55..d0d286918d 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/SyncDeleteTopic.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/SyncDeleteTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/SyncDeleteTopicString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/SyncDeleteTopicString.java index cfc0aa9fe9..53d1b305d2 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/SyncDeleteTopicString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/SyncDeleteTopicString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/SyncDeleteTopicTopicname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/SyncDeleteTopicTopicname.java index 953ee9f227..b487d93ea7 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/SyncDeleteTopicTopicname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/deletetopic/SyncDeleteTopicTopicname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/detachsubscription/AsyncDetachSubscription.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/detachsubscription/AsyncDetachSubscription.java index 77940fdc1c..88110cb06f 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/detachsubscription/AsyncDetachSubscription.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/detachsubscription/AsyncDetachSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/detachsubscription/SyncDetachSubscription.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/detachsubscription/SyncDetachSubscription.java index 1bcd280c94..96545e45cf 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/detachsubscription/SyncDetachSubscription.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/detachsubscription/SyncDetachSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/getiampolicy/AsyncGetIamPolicy.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/getiampolicy/AsyncGetIamPolicy.java index 2064402310..14c82617b6 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/getiampolicy/AsyncGetIamPolicy.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/getiampolicy/AsyncGetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/getiampolicy/SyncGetIamPolicy.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/getiampolicy/SyncGetIamPolicy.java index 8b5af87c22..bb99a5634e 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/getiampolicy/SyncGetIamPolicy.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/getiampolicy/SyncGetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/AsyncGetTopic.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/AsyncGetTopic.java index bcb3296062..48c66fce1f 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/AsyncGetTopic.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/AsyncGetTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/SyncGetTopic.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/SyncGetTopic.java index c0d7418232..0de0c49921 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/SyncGetTopic.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/SyncGetTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/SyncGetTopicString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/SyncGetTopicString.java index 8dd1a21cfb..16a3e0d1b3 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/SyncGetTopicString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/SyncGetTopicString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/SyncGetTopicTopicname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/SyncGetTopicTopicname.java index 5ed9f7db53..b06802329b 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/SyncGetTopicTopicname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/gettopic/SyncGetTopicTopicname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/AsyncListTopics.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/AsyncListTopics.java index 65b700ed7b..cc9110c1c7 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/AsyncListTopics.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/AsyncListTopics.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/AsyncListTopicsPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/AsyncListTopicsPaged.java index 95200d116a..7c9b9a0172 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/AsyncListTopicsPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/AsyncListTopicsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/SyncListTopics.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/SyncListTopics.java index 989ed455b9..6213db4079 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/SyncListTopics.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/SyncListTopics.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/SyncListTopicsProjectname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/SyncListTopicsProjectname.java index 4a7d08f7e2..23393618f0 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/SyncListTopicsProjectname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/SyncListTopicsProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/SyncListTopicsString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/SyncListTopicsString.java index 19eba09f2c..6d4096e6c6 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/SyncListTopicsString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopics/SyncListTopicsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/AsyncListTopicSnapshots.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/AsyncListTopicSnapshots.java index 2d87cea72d..0bc75f184c 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/AsyncListTopicSnapshots.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/AsyncListTopicSnapshots.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/AsyncListTopicSnapshotsPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/AsyncListTopicSnapshotsPaged.java index 585220da89..0816f9f7c4 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/AsyncListTopicSnapshotsPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/AsyncListTopicSnapshotsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/SyncListTopicSnapshots.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/SyncListTopicSnapshots.java index e88ea40aec..542fece93d 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/SyncListTopicSnapshots.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/SyncListTopicSnapshots.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/SyncListTopicSnapshotsString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/SyncListTopicSnapshotsString.java index 69f08f55d9..a3d4c74547 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/SyncListTopicSnapshotsString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/SyncListTopicSnapshotsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/SyncListTopicSnapshotsTopicname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/SyncListTopicSnapshotsTopicname.java index 26018e6be1..156a435efc 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/SyncListTopicSnapshotsTopicname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsnapshots/SyncListTopicSnapshotsTopicname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/AsyncListTopicSubscriptions.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/AsyncListTopicSubscriptions.java index fd97fa6e0c..843fa6ede1 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/AsyncListTopicSubscriptions.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/AsyncListTopicSubscriptions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java index a846f6ea33..538f18c97e 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/SyncListTopicSubscriptions.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/SyncListTopicSubscriptions.java index 22991df2d3..6ef08bd966 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/SyncListTopicSubscriptions.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/SyncListTopicSubscriptions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/SyncListTopicSubscriptionsString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/SyncListTopicSubscriptionsString.java index 18561ebc0c..c6a5ac7474 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/SyncListTopicSubscriptionsString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/SyncListTopicSubscriptionsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java index ed49bf73d8..7855f9469e 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/AsyncPublish.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/AsyncPublish.java index c4740df339..b15087339d 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/AsyncPublish.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/AsyncPublish.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/SyncPublish.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/SyncPublish.java index b8560692c6..5d541b3083 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/SyncPublish.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/SyncPublish.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/SyncPublishStringListpubsubmessage.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/SyncPublishStringListpubsubmessage.java index c639c96e77..55869f70f8 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/SyncPublishStringListpubsubmessage.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/SyncPublishStringListpubsubmessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/SyncPublishTopicnameListpubsubmessage.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/SyncPublishTopicnameListpubsubmessage.java index 75b770074c..184bce8a58 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/SyncPublishTopicnameListpubsubmessage.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/publish/SyncPublishTopicnameListpubsubmessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/setiampolicy/AsyncSetIamPolicy.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/setiampolicy/AsyncSetIamPolicy.java index 6371dc87d0..7c62afda9c 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/setiampolicy/AsyncSetIamPolicy.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/setiampolicy/AsyncSetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/setiampolicy/SyncSetIamPolicy.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/setiampolicy/SyncSetIamPolicy.java index d2d4edf40c..64c00eff1f 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/setiampolicy/SyncSetIamPolicy.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/setiampolicy/SyncSetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/testiampermissions/AsyncTestIamPermissions.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/testiampermissions/AsyncTestIamPermissions.java index 048441b261..49c13989c4 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/testiampermissions/AsyncTestIamPermissions.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/testiampermissions/AsyncTestIamPermissions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/testiampermissions/SyncTestIamPermissions.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/testiampermissions/SyncTestIamPermissions.java index 4f021b50f0..7adaa81f57 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/testiampermissions/SyncTestIamPermissions.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/testiampermissions/SyncTestIamPermissions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/updatetopic/AsyncUpdateTopic.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/updatetopic/AsyncUpdateTopic.java index aa243c8c17..8a3f1d02eb 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/updatetopic/AsyncUpdateTopic.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/updatetopic/AsyncUpdateTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/updatetopic/SyncUpdateTopic.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/updatetopic/SyncUpdateTopic.java index 038865903f..170c144a5b 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/updatetopic/SyncUpdateTopic.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/publisher/updatetopic/SyncUpdateTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/AsyncCommitSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/AsyncCommitSchema.java index 3f184d96f6..5dcc2120de 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/AsyncCommitSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/AsyncCommitSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/SyncCommitSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/SyncCommitSchema.java index 9b23bbd8d5..27b2ae5a1e 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/SyncCommitSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/SyncCommitSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/SyncCommitSchemaSchemanameSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/SyncCommitSchemaSchemanameSchema.java index c2d565e41b..e60ceb84a8 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/SyncCommitSchemaSchemanameSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/SyncCommitSchemaSchemanameSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/SyncCommitSchemaStringSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/SyncCommitSchemaStringSchema.java index 65677e0fe8..ba5871d3d2 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/SyncCommitSchemaStringSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/commitschema/SyncCommitSchemaStringSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/create/SyncCreateSetCredentialsProvider.java index dbd6b3a7d6..14fc8ca11e 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/create/SyncCreateSetEndpoint.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/create/SyncCreateSetEndpoint.java index 184887f49a..fbbf7bc123 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/AsyncCreateSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/AsyncCreateSchema.java index 85ea009338..59082e3f90 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/AsyncCreateSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/AsyncCreateSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/SyncCreateSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/SyncCreateSchema.java index 19a4de04ac..0b730b73d3 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/SyncCreateSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/SyncCreateSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/SyncCreateSchemaProjectnameSchemaString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/SyncCreateSchemaProjectnameSchemaString.java index be5e8913b0..09a4dfc2e5 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/SyncCreateSchemaProjectnameSchemaString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/SyncCreateSchemaProjectnameSchemaString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java index 42abd14c09..ac943bc492 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/createschema/SyncCreateSchemaStringSchemaString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/AsyncDeleteSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/AsyncDeleteSchema.java index 8505905bbd..fe75d7d36c 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/AsyncDeleteSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/AsyncDeleteSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/SyncDeleteSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/SyncDeleteSchema.java index 02cebbf329..258904fa82 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/SyncDeleteSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/SyncDeleteSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java index ef2ce670db..c17d44397c 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/SyncDeleteSchemaSchemaname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/SyncDeleteSchemaString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/SyncDeleteSchemaString.java index a5e04f3a43..7d81894a2d 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/SyncDeleteSchemaString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschema/SyncDeleteSchemaString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/AsyncDeleteSchemaRevision.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/AsyncDeleteSchemaRevision.java index 6be3964ba9..87faa99264 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/AsyncDeleteSchemaRevision.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/AsyncDeleteSchemaRevision.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/SyncDeleteSchemaRevision.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/SyncDeleteSchemaRevision.java index a76255355b..1b2072bc25 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/SyncDeleteSchemaRevision.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/SyncDeleteSchemaRevision.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/SyncDeleteSchemaRevisionSchemanameString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/SyncDeleteSchemaRevisionSchemanameString.java index ab7a3340d9..318f626b2e 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/SyncDeleteSchemaRevisionSchemanameString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/SyncDeleteSchemaRevisionSchemanameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/SyncDeleteSchemaRevisionStringString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/SyncDeleteSchemaRevisionStringString.java index 33381dba23..b387e55edc 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/SyncDeleteSchemaRevisionStringString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/deleteschemarevision/SyncDeleteSchemaRevisionStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getiampolicy/AsyncGetIamPolicy.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getiampolicy/AsyncGetIamPolicy.java index d66d3b5292..3d2a289fc9 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getiampolicy/AsyncGetIamPolicy.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getiampolicy/AsyncGetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getiampolicy/SyncGetIamPolicy.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getiampolicy/SyncGetIamPolicy.java index c2f5e91cfe..ee7f07388d 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getiampolicy/SyncGetIamPolicy.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getiampolicy/SyncGetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/AsyncGetSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/AsyncGetSchema.java index 8d30aae8cf..9ace101cdd 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/AsyncGetSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/AsyncGetSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/SyncGetSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/SyncGetSchema.java index 579e0b2d4c..4a64109c72 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/SyncGetSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/SyncGetSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/SyncGetSchemaSchemaname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/SyncGetSchemaSchemaname.java index 611a988035..681eef5bc9 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/SyncGetSchemaSchemaname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/SyncGetSchemaSchemaname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/SyncGetSchemaString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/SyncGetSchemaString.java index 1ffe6c7b9a..a350151648 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/SyncGetSchemaString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/getschema/SyncGetSchemaString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/AsyncListSchemaRevisions.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/AsyncListSchemaRevisions.java index 67c5106693..c5583fd20b 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/AsyncListSchemaRevisions.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/AsyncListSchemaRevisions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/AsyncListSchemaRevisionsPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/AsyncListSchemaRevisionsPaged.java index e2bf37a6dd..ead3bb70c8 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/AsyncListSchemaRevisionsPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/AsyncListSchemaRevisionsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/SyncListSchemaRevisions.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/SyncListSchemaRevisions.java index d6e6792495..4f5919e092 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/SyncListSchemaRevisions.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/SyncListSchemaRevisions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/SyncListSchemaRevisionsSchemaname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/SyncListSchemaRevisionsSchemaname.java index 116c94a8d5..a628b679c4 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/SyncListSchemaRevisionsSchemaname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/SyncListSchemaRevisionsSchemaname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/SyncListSchemaRevisionsString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/SyncListSchemaRevisionsString.java index c3611ec50f..3bc3ad69ee 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/SyncListSchemaRevisionsString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemarevisions/SyncListSchemaRevisionsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/AsyncListSchemas.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/AsyncListSchemas.java index 930d0b5f2b..8b86da88ae 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/AsyncListSchemas.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/AsyncListSchemas.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/AsyncListSchemasPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/AsyncListSchemasPaged.java index 3f40addbe5..005c2c98b9 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/AsyncListSchemasPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/AsyncListSchemasPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/SyncListSchemas.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/SyncListSchemas.java index b759244bec..c1f022f509 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/SyncListSchemas.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/SyncListSchemas.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/SyncListSchemasProjectname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/SyncListSchemasProjectname.java index 3fabd3efb9..531b37c61c 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/SyncListSchemasProjectname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/SyncListSchemasProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/SyncListSchemasString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/SyncListSchemasString.java index fa830315a4..580f7ecd31 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/SyncListSchemasString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/listschemas/SyncListSchemasString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/AsyncRollbackSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/AsyncRollbackSchema.java index 53c9bcf7e4..6aa853c940 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/AsyncRollbackSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/AsyncRollbackSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/SyncRollbackSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/SyncRollbackSchema.java index 865a425c2d..2aa197944b 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/SyncRollbackSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/SyncRollbackSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/SyncRollbackSchemaSchemanameString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/SyncRollbackSchemaSchemanameString.java index e9057776dd..c06bc2ba93 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/SyncRollbackSchemaSchemanameString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/SyncRollbackSchemaSchemanameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/SyncRollbackSchemaStringString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/SyncRollbackSchemaStringString.java index 6fd80f760c..06614e630d 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/SyncRollbackSchemaStringString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/rollbackschema/SyncRollbackSchemaStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/setiampolicy/AsyncSetIamPolicy.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/setiampolicy/AsyncSetIamPolicy.java index 9d161e4d5f..2042679195 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/setiampolicy/AsyncSetIamPolicy.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/setiampolicy/AsyncSetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/setiampolicy/SyncSetIamPolicy.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/setiampolicy/SyncSetIamPolicy.java index aee43a627e..9b51b62ada 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/setiampolicy/SyncSetIamPolicy.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/setiampolicy/SyncSetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/testiampermissions/AsyncTestIamPermissions.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/testiampermissions/AsyncTestIamPermissions.java index f643ef1c2d..6d7a819d3c 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/testiampermissions/AsyncTestIamPermissions.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/testiampermissions/AsyncTestIamPermissions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/testiampermissions/SyncTestIamPermissions.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/testiampermissions/SyncTestIamPermissions.java index fba9a506f1..ef33abc6d7 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/testiampermissions/SyncTestIamPermissions.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/testiampermissions/SyncTestIamPermissions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validatemessage/AsyncValidateMessage.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validatemessage/AsyncValidateMessage.java index c67e46ea2e..b51722839e 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validatemessage/AsyncValidateMessage.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validatemessage/AsyncValidateMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validatemessage/SyncValidateMessage.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validatemessage/SyncValidateMessage.java index 51717f3868..80fad4611d 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validatemessage/SyncValidateMessage.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validatemessage/SyncValidateMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/AsyncValidateSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/AsyncValidateSchema.java index 75a6dd4bcc..6b4320d0fe 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/AsyncValidateSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/AsyncValidateSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/SyncValidateSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/SyncValidateSchema.java index 893f803747..0766f12964 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/SyncValidateSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/SyncValidateSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/SyncValidateSchemaProjectnameSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/SyncValidateSchemaProjectnameSchema.java index a0736baaa7..e3f53492dc 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/SyncValidateSchemaProjectnameSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/SyncValidateSchemaProjectnameSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/SyncValidateSchemaStringSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/SyncValidateSchemaStringSchema.java index dec220cd0d..6183f759c6 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/SyncValidateSchemaStringSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservice/validateschema/SyncValidateSchemaStringSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/SyncCreateSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/SyncCreateSchema.java index a1b94d0d65..bacfa7ee89 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/SyncCreateSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaservicesettings/createschema/SyncCreateSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/SyncCreateTopic.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/SyncCreateTopic.java index db8765f7b8..b411874e44 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/SyncCreateTopic.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/stub/publisherstubsettings/createtopic/SyncCreateTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/SyncCreateSchema.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/SyncCreateSchema.java index ad8762e2ee..a66903e1d6 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/SyncCreateSchema.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/stub/schemaservicestubsettings/createschema/SyncCreateSchema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/SyncCreateSubscription.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/SyncCreateSubscription.java index 32686be6fe..e306396681 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/SyncCreateSubscription.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/stub/subscriberstubsettings/createsubscription/SyncCreateSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/AsyncAcknowledge.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/AsyncAcknowledge.java index afc2185027..45e815303b 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/AsyncAcknowledge.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/AsyncAcknowledge.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/SyncAcknowledge.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/SyncAcknowledge.java index 4cf4814539..816e0d51ae 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/SyncAcknowledge.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/SyncAcknowledge.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/SyncAcknowledgeStringListstring.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/SyncAcknowledgeStringListstring.java index 905fd383e0..fa14f4d0b5 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/SyncAcknowledgeStringListstring.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/SyncAcknowledgeStringListstring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/SyncAcknowledgeSubscriptionnameListstring.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/SyncAcknowledgeSubscriptionnameListstring.java index d7ead44b32..a62f33bada 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/SyncAcknowledgeSubscriptionnameListstring.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/acknowledge/SyncAcknowledgeSubscriptionnameListstring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/create/SyncCreateSetCredentialsProvider.java index f9173345ae..02704d0f5f 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/create/SyncCreateSetEndpoint.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/create/SyncCreateSetEndpoint.java index 2b39c0849f..45a7b4106b 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/AsyncCreateSnapshot.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/AsyncCreateSnapshot.java index b822689fd0..acfedb41db 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/AsyncCreateSnapshot.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/AsyncCreateSnapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshot.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshot.java index d87a3296c8..c2894c1f08 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshot.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotSnapshotnameString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotSnapshotnameString.java index 01b31674df..b35131a1ae 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotSnapshotnameString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotSnapshotnameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotSnapshotnameSubscriptionname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotSnapshotnameSubscriptionname.java index ed1a12c017..b7d3d32a36 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotSnapshotnameSubscriptionname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotSnapshotnameSubscriptionname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotStringString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotStringString.java index 99f1417c7e..47e78ce32c 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotStringString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotStringSubscriptionname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotStringSubscriptionname.java index adc1d5d5ab..0aa05a9e11 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotStringSubscriptionname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsnapshot/SyncCreateSnapshotStringSubscriptionname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/AsyncCreateSubscription.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/AsyncCreateSubscription.java index 21ebedb461..4d27734576 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/AsyncCreateSubscription.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/AsyncCreateSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscription.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscription.java index 1cf952c270..7122e4bccf 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscription.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionStringStringPushconfigInt.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionStringStringPushconfigInt.java index 4b7ed755fa..a5ec0fc4f2 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionStringStringPushconfigInt.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionStringStringPushconfigInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionStringTopicnamePushconfigInt.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionStringTopicnamePushconfigInt.java index 96611ef9f8..1b7b11d423 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionStringTopicnamePushconfigInt.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionStringTopicnamePushconfigInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionSubscriptionnameStringPushconfigInt.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionSubscriptionnameStringPushconfigInt.java index 64206efc3b..392c877e39 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionSubscriptionnameStringPushconfigInt.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionSubscriptionnameStringPushconfigInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionSubscriptionnameTopicnamePushconfigInt.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionSubscriptionnameTopicnamePushconfigInt.java index 54ab59547a..aa8cd64f80 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionSubscriptionnameTopicnamePushconfigInt.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/createsubscription/SyncCreateSubscriptionSubscriptionnameTopicnamePushconfigInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/AsyncDeleteSnapshot.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/AsyncDeleteSnapshot.java index 6705c11404..83420c7685 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/AsyncDeleteSnapshot.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/AsyncDeleteSnapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/SyncDeleteSnapshot.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/SyncDeleteSnapshot.java index 93306546bf..721f1164bc 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/SyncDeleteSnapshot.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/SyncDeleteSnapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/SyncDeleteSnapshotSnapshotname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/SyncDeleteSnapshotSnapshotname.java index 9304b9f93b..745d17e397 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/SyncDeleteSnapshotSnapshotname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/SyncDeleteSnapshotSnapshotname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/SyncDeleteSnapshotString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/SyncDeleteSnapshotString.java index 995f5e34d5..4d612b309e 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/SyncDeleteSnapshotString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesnapshot/SyncDeleteSnapshotString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/AsyncDeleteSubscription.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/AsyncDeleteSubscription.java index 6ea8a096ed..ca03cecf6e 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/AsyncDeleteSubscription.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/AsyncDeleteSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/SyncDeleteSubscription.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/SyncDeleteSubscription.java index 0e4e6a5efe..17c12eb98f 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/SyncDeleteSubscription.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/SyncDeleteSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/SyncDeleteSubscriptionString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/SyncDeleteSubscriptionString.java index 8f3d5cad5d..59987799fc 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/SyncDeleteSubscriptionString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/SyncDeleteSubscriptionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java index ad4a521ac4..c83f6263ce 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getiampolicy/AsyncGetIamPolicy.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getiampolicy/AsyncGetIamPolicy.java index 3bfb9e0374..da1bfa9029 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getiampolicy/AsyncGetIamPolicy.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getiampolicy/AsyncGetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getiampolicy/SyncGetIamPolicy.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getiampolicy/SyncGetIamPolicy.java index 9f76fce6d0..35e8d1bdc1 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getiampolicy/SyncGetIamPolicy.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getiampolicy/SyncGetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/AsyncGetSnapshot.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/AsyncGetSnapshot.java index 6c4fe7f9ec..f596203584 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/AsyncGetSnapshot.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/AsyncGetSnapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/SyncGetSnapshot.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/SyncGetSnapshot.java index a4cbf6140f..addfe99494 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/SyncGetSnapshot.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/SyncGetSnapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/SyncGetSnapshotSnapshotname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/SyncGetSnapshotSnapshotname.java index 6c6dec7a1d..50ff86d2fa 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/SyncGetSnapshotSnapshotname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/SyncGetSnapshotSnapshotname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/SyncGetSnapshotString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/SyncGetSnapshotString.java index 2f15ca9c2d..7547de5f30 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/SyncGetSnapshotString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsnapshot/SyncGetSnapshotString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/AsyncGetSubscription.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/AsyncGetSubscription.java index 1a92c97bbe..c89bedf62f 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/AsyncGetSubscription.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/AsyncGetSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/SyncGetSubscription.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/SyncGetSubscription.java index ddba2c0d06..8c3de62a12 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/SyncGetSubscription.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/SyncGetSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/SyncGetSubscriptionString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/SyncGetSubscriptionString.java index 80ec82e0df..0e2f2e2466 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/SyncGetSubscriptionString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/SyncGetSubscriptionString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/SyncGetSubscriptionSubscriptionname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/SyncGetSubscriptionSubscriptionname.java index 017b429433..393e273210 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/SyncGetSubscriptionSubscriptionname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/getsubscription/SyncGetSubscriptionSubscriptionname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/AsyncListSnapshots.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/AsyncListSnapshots.java index 5c44fa6f71..bdfe986063 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/AsyncListSnapshots.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/AsyncListSnapshots.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/AsyncListSnapshotsPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/AsyncListSnapshotsPaged.java index edf445202d..37fdcdf597 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/AsyncListSnapshotsPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/AsyncListSnapshotsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/SyncListSnapshots.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/SyncListSnapshots.java index c9f6e1531e..7d67332ab6 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/SyncListSnapshots.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/SyncListSnapshots.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/SyncListSnapshotsProjectname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/SyncListSnapshotsProjectname.java index e248dbe3ef..3c5082e7d5 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/SyncListSnapshotsProjectname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/SyncListSnapshotsProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/SyncListSnapshotsString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/SyncListSnapshotsString.java index 96b13421ac..1b884e765d 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/SyncListSnapshotsString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsnapshots/SyncListSnapshotsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/AsyncListSubscriptions.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/AsyncListSubscriptions.java index aeece2e7b9..c8d170c67e 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/AsyncListSubscriptions.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/AsyncListSubscriptions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/AsyncListSubscriptionsPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/AsyncListSubscriptionsPaged.java index c656c5be86..acb22ede04 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/AsyncListSubscriptionsPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/AsyncListSubscriptionsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/SyncListSubscriptions.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/SyncListSubscriptions.java index 41de90e79d..37705c0b40 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/SyncListSubscriptions.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/SyncListSubscriptions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/SyncListSubscriptionsProjectname.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/SyncListSubscriptionsProjectname.java index 00c6cdbff7..2f4e053cd6 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/SyncListSubscriptionsProjectname.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/SyncListSubscriptionsProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/SyncListSubscriptionsString.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/SyncListSubscriptionsString.java index 313d6cbd13..906edc5853 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/SyncListSubscriptionsString.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/listsubscriptions/SyncListSubscriptionsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/AsyncModifyAckDeadline.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/AsyncModifyAckDeadline.java index 1147d38004..cf927dd3ab 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/AsyncModifyAckDeadline.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/AsyncModifyAckDeadline.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/SyncModifyAckDeadline.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/SyncModifyAckDeadline.java index 76f6b11aaf..829da91fd3 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/SyncModifyAckDeadline.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/SyncModifyAckDeadline.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/SyncModifyAckDeadlineStringListstringInt.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/SyncModifyAckDeadlineStringListstringInt.java index 7f005da323..aa9518aa06 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/SyncModifyAckDeadlineStringListstringInt.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/SyncModifyAckDeadlineStringListstringInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/SyncModifyAckDeadlineSubscriptionnameListstringInt.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/SyncModifyAckDeadlineSubscriptionnameListstringInt.java index b7fc72f8de..4b4aca4243 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/SyncModifyAckDeadlineSubscriptionnameListstringInt.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifyackdeadline/SyncModifyAckDeadlineSubscriptionnameListstringInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/AsyncModifyPushConfig.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/AsyncModifyPushConfig.java index 3f31f55e28..a87187e4d1 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/AsyncModifyPushConfig.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/AsyncModifyPushConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/SyncModifyPushConfig.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/SyncModifyPushConfig.java index 4f7ad078f2..5762311e8b 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/SyncModifyPushConfig.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/SyncModifyPushConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/SyncModifyPushConfigStringPushconfig.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/SyncModifyPushConfigStringPushconfig.java index 3bf83659de..196287e8ff 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/SyncModifyPushConfigStringPushconfig.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/SyncModifyPushConfigStringPushconfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/SyncModifyPushConfigSubscriptionnamePushconfig.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/SyncModifyPushConfigSubscriptionnamePushconfig.java index 149e248bc1..5180e17d4b 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/SyncModifyPushConfigSubscriptionnamePushconfig.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/modifypushconfig/SyncModifyPushConfigSubscriptionnamePushconfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/AsyncPull.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/AsyncPull.java index 1541a2c09e..9293ed01d0 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/AsyncPull.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/AsyncPull.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPull.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPull.java index 5fcefcd7be..bc020c5e8a 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPull.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPull.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullStringBooleanInt.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullStringBooleanInt.java index a3e0434d40..5e56f9f75b 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullStringBooleanInt.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullStringBooleanInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullStringInt.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullStringInt.java index 3cab4570ad..36397a7bea 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullStringInt.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullStringInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullSubscriptionnameBooleanInt.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullSubscriptionnameBooleanInt.java index 31074f1659..407971b8ac 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullSubscriptionnameBooleanInt.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullSubscriptionnameBooleanInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullSubscriptionnameInt.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullSubscriptionnameInt.java index 70de9d3209..d0ec13347f 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullSubscriptionnameInt.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/pull/SyncPullSubscriptionnameInt.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/seek/AsyncSeek.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/seek/AsyncSeek.java index 98195f15a8..5f87e892f6 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/seek/AsyncSeek.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/seek/AsyncSeek.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/seek/SyncSeek.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/seek/SyncSeek.java index a3676ec147..eaa83cdb3f 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/seek/SyncSeek.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/seek/SyncSeek.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/setiampolicy/AsyncSetIamPolicy.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/setiampolicy/AsyncSetIamPolicy.java index b5af758bae..13c540d250 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/setiampolicy/AsyncSetIamPolicy.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/setiampolicy/AsyncSetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/setiampolicy/SyncSetIamPolicy.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/setiampolicy/SyncSetIamPolicy.java index 1da83a0a3f..f2ce85bda4 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/setiampolicy/SyncSetIamPolicy.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/setiampolicy/SyncSetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/streamingpull/AsyncStreamingPull.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/streamingpull/AsyncStreamingPull.java index f7903e7487..ff9645ddfd 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/streamingpull/AsyncStreamingPull.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/streamingpull/AsyncStreamingPull.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/testiampermissions/AsyncTestIamPermissions.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/testiampermissions/AsyncTestIamPermissions.java index 8603cc080a..87d878f10a 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/testiampermissions/AsyncTestIamPermissions.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/testiampermissions/AsyncTestIamPermissions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/testiampermissions/SyncTestIamPermissions.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/testiampermissions/SyncTestIamPermissions.java index ded1113f00..16a38e6f8c 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/testiampermissions/SyncTestIamPermissions.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/testiampermissions/SyncTestIamPermissions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesnapshot/AsyncUpdateSnapshot.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesnapshot/AsyncUpdateSnapshot.java index 40a9973bd9..533371fe79 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesnapshot/AsyncUpdateSnapshot.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesnapshot/AsyncUpdateSnapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesnapshot/SyncUpdateSnapshot.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesnapshot/SyncUpdateSnapshot.java index d7b9d5e195..32b9e52004 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesnapshot/SyncUpdateSnapshot.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesnapshot/SyncUpdateSnapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesubscription/AsyncUpdateSubscription.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesubscription/AsyncUpdateSubscription.java index 302cc8298f..4873f10109 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesubscription/AsyncUpdateSubscription.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesubscription/AsyncUpdateSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesubscription/SyncUpdateSubscription.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesubscription/SyncUpdateSubscription.java index 607fa6b924..99369f1b62 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesubscription/SyncUpdateSubscription.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriber/updatesubscription/SyncUpdateSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/SyncCreateSubscription.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/SyncCreateSubscription.java index 0c3b321aae..5d61561bc5 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/SyncCreateSubscription.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriptionadminsettings/createsubscription/SyncCreateSubscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/SyncCreateTopic.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/SyncCreateTopic.java index 22438e460d..d97e48cbb7 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/SyncCreateTopic.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminsettings/createtopic/SyncCreateTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockIAMPolicy.java index c17e00ad22..9b682f478e 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockIAMPolicy.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockIAMPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java index e18c2a7bcf..f65568ec0e 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockPublisher.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockPublisher.java index 2a26cd59aa..adb60419da 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockPublisher.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockPublisher.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockPublisherImpl.java index 47cf6f416f..75c254dc5d 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSchemaService.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSchemaService.java index 29559fa86e..2073458cc2 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSchemaService.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSchemaService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java index 8510e1b77c..f49e2cc456 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSubscriber.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSubscriber.java index 13b54dd7ad..33c80a1110 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSubscriber.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSubscriber.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index 389fc6561e..d2d8920316 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java index d8b3c6f84c..691e2fa77e 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java index 15129a8cd4..695ed5b6a5 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 4291e8b127..a2b8ef1461 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index f454b15c6c..a1d50b680e 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 204fd662cb..0989f656de 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index 076f00edf9..e9894a3bb8 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java index 28234b2ce8..c0016f8eb8 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 34e8237b10..30b9fd7003 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 00a84ec2f7..0221ba84dc 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/package-info.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/package-info.java index 5e73e3a64e..70eed8c36c 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/package-info.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index 60af801642..0ca66bdc8e 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 6a9446b178..ed318cc788 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java index b7ad8cab40..e2728094e8 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index 35929c01f6..4736f64fb7 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index 27f99f671a..8b12c81c0f 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index ba79536cb1..559986d57a 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 5b8ed6112a..011ad51e21 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 8df9f1452e..d3592189ab 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java index ab52003751..b36f779af7 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 20b2d7bb39..79d271fdfd 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index f04f4acd5d..94b56c5a1b 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index a6bb063f13..5c928fd7e8 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java index d04475ab05..64195e3fce 100644 --- a/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java +++ b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java index 2d8968ddf2..d4bb6fa5fb 100644 --- a/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java +++ b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java index 4642f23233..4e3ee08462 100644 --- a/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java +++ b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java index ad49b90ddd..a8731d5c94 100644 --- a/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java +++ b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java index 6fc356a2bb..abae4f0317 100644 --- a/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java +++ b/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetCredentialsProvider.java index fa82213f1a..c6318aae29 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetCredentialsProvider1.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetCredentialsProvider1.java index ac13c771ca..804389bf67 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetCredentialsProvider1.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetCredentialsProvider1.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetEndpoint.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetEndpoint.java index ad71ef35f0..7ae107ee87 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/AsyncCreateInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/AsyncCreateInstance.java index 8d25614699..050ca899a4 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/AsyncCreateInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/AsyncCreateInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/AsyncCreateInstanceLRO.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/AsyncCreateInstanceLRO.java index cd96708015..a1a430926a 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/AsyncCreateInstanceLRO.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/AsyncCreateInstanceLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/SyncCreateInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/SyncCreateInstance.java index e59e07e129..32e90079b4 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/SyncCreateInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/SyncCreateInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/SyncCreateInstanceLocationnameStringInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/SyncCreateInstanceLocationnameStringInstance.java index f243357b16..62946ec357 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/SyncCreateInstanceLocationnameStringInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/SyncCreateInstanceLocationnameStringInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/SyncCreateInstanceStringStringInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/SyncCreateInstanceStringStringInstance.java index 00b79dd83a..2a6f1d5ea5 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/SyncCreateInstanceStringStringInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/createinstance/SyncCreateInstanceStringStringInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/AsyncDeleteInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/AsyncDeleteInstance.java index 0589920b25..9d11d4f6db 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/AsyncDeleteInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/AsyncDeleteInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/AsyncDeleteInstanceLRO.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/AsyncDeleteInstanceLRO.java index df71875131..3237aefc3d 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/AsyncDeleteInstanceLRO.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/AsyncDeleteInstanceLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/SyncDeleteInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/SyncDeleteInstance.java index a7a4b75a57..1e7e458923 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/SyncDeleteInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/SyncDeleteInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/SyncDeleteInstanceInstancename.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/SyncDeleteInstanceInstancename.java index 3e0b93a8d5..7d9c9355d9 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/SyncDeleteInstanceInstancename.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/SyncDeleteInstanceInstancename.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/SyncDeleteInstanceString.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/SyncDeleteInstanceString.java index f06994b43c..8ed07e4d96 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/SyncDeleteInstanceString.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/deleteinstance/SyncDeleteInstanceString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/AsyncExportInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/AsyncExportInstance.java index 8dde2ed978..46c26f0b7e 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/AsyncExportInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/AsyncExportInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/AsyncExportInstanceLRO.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/AsyncExportInstanceLRO.java index b0c38c9f04..6ad5dd0b2f 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/AsyncExportInstanceLRO.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/AsyncExportInstanceLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/SyncExportInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/SyncExportInstance.java index 3fef0913df..7d2153c200 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/SyncExportInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/SyncExportInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/SyncExportInstanceStringOutputconfig.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/SyncExportInstanceStringOutputconfig.java index 9dba76254b..020ad71a09 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/SyncExportInstanceStringOutputconfig.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/exportinstance/SyncExportInstanceStringOutputconfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/AsyncFailoverInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/AsyncFailoverInstance.java index 24a3cea364..7678d0029f 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/AsyncFailoverInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/AsyncFailoverInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/AsyncFailoverInstanceLRO.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/AsyncFailoverInstanceLRO.java index 49e0b8bf71..879ee57cd8 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/AsyncFailoverInstanceLRO.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/AsyncFailoverInstanceLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/SyncFailoverInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/SyncFailoverInstance.java index 36704e4ce2..741d59a5ed 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/SyncFailoverInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/SyncFailoverInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java index 2dd7049ee1..18a200cb8f 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/SyncFailoverInstanceInstancenameFailoverinstancerequestdataprotectionmode.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java index 52b96060cf..ace9b3c156 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/failoverinstance/SyncFailoverInstanceStringFailoverinstancerequestdataprotectionmode.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/AsyncGetInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/AsyncGetInstance.java index 05d16e393b..85d7f80281 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/AsyncGetInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/AsyncGetInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/SyncGetInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/SyncGetInstance.java index 613d7d8223..cc8af42bc5 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/SyncGetInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/SyncGetInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/SyncGetInstanceInstancename.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/SyncGetInstanceInstancename.java index 8262137e84..6f9ea3f333 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/SyncGetInstanceInstancename.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/SyncGetInstanceInstancename.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/SyncGetInstanceString.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/SyncGetInstanceString.java index 8907ff613a..78e4e5a905 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/SyncGetInstanceString.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstance/SyncGetInstanceString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/AsyncGetInstanceAuthString.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/AsyncGetInstanceAuthString.java index adc5862ba1..4d38f5f74d 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/AsyncGetInstanceAuthString.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/AsyncGetInstanceAuthString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/SyncGetInstanceAuthString.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/SyncGetInstanceAuthString.java index 89e52d3cff..fc0841e774 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/SyncGetInstanceAuthString.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/SyncGetInstanceAuthString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java index b26ac57673..0f2a683076 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/SyncGetInstanceAuthStringInstancename.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/SyncGetInstanceAuthStringString.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/SyncGetInstanceAuthStringString.java index 4be717657d..f6458849a8 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/SyncGetInstanceAuthStringString.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/getinstanceauthstring/SyncGetInstanceAuthStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/AsyncImportInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/AsyncImportInstance.java index 2d6654778f..f5fc0897a4 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/AsyncImportInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/AsyncImportInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/AsyncImportInstanceLRO.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/AsyncImportInstanceLRO.java index b609d65788..0de796fe6f 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/AsyncImportInstanceLRO.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/AsyncImportInstanceLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/SyncImportInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/SyncImportInstance.java index 4d78057ce7..f0ed17ce8d 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/SyncImportInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/SyncImportInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/SyncImportInstanceStringInputconfig.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/SyncImportInstanceStringInputconfig.java index 310e4c5539..ed7de3cca8 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/SyncImportInstanceStringInputconfig.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/importinstance/SyncImportInstanceStringInputconfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/AsyncListInstances.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/AsyncListInstances.java index a01b8a72aa..41f5c1afea 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/AsyncListInstances.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/AsyncListInstances.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/AsyncListInstancesPaged.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/AsyncListInstancesPaged.java index b141b3e295..b7605d8ff2 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/AsyncListInstancesPaged.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/AsyncListInstancesPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/SyncListInstances.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/SyncListInstances.java index 3b5d52279b..3018cf0000 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/SyncListInstances.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/SyncListInstances.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/SyncListInstancesLocationname.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/SyncListInstancesLocationname.java index 975b11f492..9c64fe82d8 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/SyncListInstancesLocationname.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/SyncListInstancesLocationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/SyncListInstancesString.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/SyncListInstancesString.java index ab018f65d3..2e39e117cb 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/SyncListInstancesString.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/listinstances/SyncListInstancesString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/AsyncRescheduleMaintenance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/AsyncRescheduleMaintenance.java index fa1286a5ab..c9139245ce 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/AsyncRescheduleMaintenance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/AsyncRescheduleMaintenance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java index e6d0bb1a9f..018893fbc0 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/AsyncRescheduleMaintenanceLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/SyncRescheduleMaintenance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/SyncRescheduleMaintenance.java index 76adddf0ef..e426137c71 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/SyncRescheduleMaintenance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/SyncRescheduleMaintenance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java index f2ba5bfd9c..e65e57507f 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/SyncRescheduleMaintenanceInstancenameReschedulemaintenancerequestrescheduletypeTimestamp.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java index 006650f118..7e328ad314 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/reschedulemaintenance/SyncRescheduleMaintenanceStringReschedulemaintenancerequestrescheduletypeTimestamp.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/AsyncUpdateInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/AsyncUpdateInstance.java index cf09fbcc44..9f4c74d02e 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/AsyncUpdateInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/AsyncUpdateInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/AsyncUpdateInstanceLRO.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/AsyncUpdateInstanceLRO.java index 5d120682ba..a527ad55f1 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/AsyncUpdateInstanceLRO.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/AsyncUpdateInstanceLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/SyncUpdateInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/SyncUpdateInstance.java index dc834831b7..c5bb57cb51 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/SyncUpdateInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/SyncUpdateInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/SyncUpdateInstanceFieldmaskInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/SyncUpdateInstanceFieldmaskInstance.java index a4077b4fab..e4d9dca7c6 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/SyncUpdateInstanceFieldmaskInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/updateinstance/SyncUpdateInstanceFieldmaskInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/AsyncUpgradeInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/AsyncUpgradeInstance.java index 1b48fd4583..5a37d39af3 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/AsyncUpgradeInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/AsyncUpgradeInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/AsyncUpgradeInstanceLRO.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/AsyncUpgradeInstanceLRO.java index 29f22214d2..c6a16107e3 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/AsyncUpgradeInstanceLRO.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/AsyncUpgradeInstanceLRO.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/SyncUpgradeInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/SyncUpgradeInstance.java index 1baa73c65b..3da45e2e22 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/SyncUpgradeInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/SyncUpgradeInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/SyncUpgradeInstanceInstancenameString.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/SyncUpgradeInstanceInstancenameString.java index 9f564213a9..ae494e588b 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/SyncUpgradeInstanceInstancenameString.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/SyncUpgradeInstanceInstancenameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/SyncUpgradeInstanceStringString.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/SyncUpgradeInstanceStringString.java index 2ddd517282..594786ff42 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/SyncUpgradeInstanceStringString.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredis/upgradeinstance/SyncUpgradeInstanceStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java index 01d99fd7ed..e966df8411 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredissettings/getinstance/SyncGetInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java index 78b2fa196f..37c1590b58 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/stub/cloudredisstubsettings/getinstance/SyncGetInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java index 867d149642..ad567a4e86 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java index 630440aa5c..cd9cdc0a4b 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java index f13aa50954..e6333e18b6 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java index e431cc97bb..2841402813 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java index 149eaf7034..9a56eccd25 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java index f5ea57d727..2df091012b 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/MockCloudRedis.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/MockCloudRedis.java index 37b007ef0d..00490e9112 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/MockCloudRedis.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/MockCloudRedis.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java index 292ded4229..82a40750e1 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/MockCloudRedisImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/package-info.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/package-info.java index 35a4ae142d..b759887f04 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/package-info.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java index 810864c4ee..eea7dd49cc 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java index 41af6f4a48..582f9b76c6 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java index c5748ee31c..a285348f3f 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java index fb6ae5f82d..3596044791 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java index 2991b71def..62351e0986 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java index c000dd4523..641de72b1d 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/cancelresumablewrite/AsyncCancelResumableWrite.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/cancelresumablewrite/AsyncCancelResumableWrite.java index 429cfc794b..15db94a382 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/cancelresumablewrite/AsyncCancelResumableWrite.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/cancelresumablewrite/AsyncCancelResumableWrite.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/cancelresumablewrite/SyncCancelResumableWrite.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/cancelresumablewrite/SyncCancelResumableWrite.java index a90468e051..64e0541acf 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/cancelresumablewrite/SyncCancelResumableWrite.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/cancelresumablewrite/SyncCancelResumableWrite.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/cancelresumablewrite/SyncCancelResumableWriteString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/cancelresumablewrite/SyncCancelResumableWriteString.java index fe822519f7..8900b3cac5 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/cancelresumablewrite/SyncCancelResumableWriteString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/cancelresumablewrite/SyncCancelResumableWriteString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/composeobject/AsyncComposeObject.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/composeobject/AsyncComposeObject.java index d1ad7000f2..f9e39a8d39 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/composeobject/AsyncComposeObject.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/composeobject/AsyncComposeObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/composeobject/SyncComposeObject.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/composeobject/SyncComposeObject.java index 3f01d1a23e..0f03d1e082 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/composeobject/SyncComposeObject.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/composeobject/SyncComposeObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/create/SyncCreateSetCredentialsProvider.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/create/SyncCreateSetCredentialsProvider.java index 0c20ac55a2..6a24664169 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/create/SyncCreateSetCredentialsProvider.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/create/SyncCreateSetCredentialsProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/create/SyncCreateSetEndpoint.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/create/SyncCreateSetEndpoint.java index 456a4079ad..65ceb63414 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/create/SyncCreateSetEndpoint.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/create/SyncCreateSetEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/AsyncCreateBucket.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/AsyncCreateBucket.java index ec62f26830..6b1534780f 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/AsyncCreateBucket.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/AsyncCreateBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/SyncCreateBucket.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/SyncCreateBucket.java index f305628ced..99411d0322 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/SyncCreateBucket.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/SyncCreateBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/SyncCreateBucketProjectnameBucketString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/SyncCreateBucketProjectnameBucketString.java index dc973af2dc..a27823be21 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/SyncCreateBucketProjectnameBucketString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/SyncCreateBucketProjectnameBucketString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/SyncCreateBucketStringBucketString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/SyncCreateBucketStringBucketString.java index 153cf0d8fe..3ad4738b7e 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/SyncCreateBucketStringBucketString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createbucket/SyncCreateBucketStringBucketString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/AsyncCreateHmacKey.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/AsyncCreateHmacKey.java index 9ef862af34..9216e62f2d 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/AsyncCreateHmacKey.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/AsyncCreateHmacKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/SyncCreateHmacKey.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/SyncCreateHmacKey.java index 48fe222ed9..0d36df934b 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/SyncCreateHmacKey.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/SyncCreateHmacKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/SyncCreateHmacKeyProjectnameString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/SyncCreateHmacKeyProjectnameString.java index f612a3002c..055cfa4af2 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/SyncCreateHmacKeyProjectnameString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/SyncCreateHmacKeyProjectnameString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/SyncCreateHmacKeyStringString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/SyncCreateHmacKeyStringString.java index 44c8a5efb8..b8e7f20b6f 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/SyncCreateHmacKeyStringString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createhmackey/SyncCreateHmacKeyStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/AsyncCreateNotification.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/AsyncCreateNotification.java index 9cdab89c35..c6e3293c12 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/AsyncCreateNotification.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/AsyncCreateNotification.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/SyncCreateNotification.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/SyncCreateNotification.java index e9c869571e..649ff98302 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/SyncCreateNotification.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/SyncCreateNotification.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/SyncCreateNotificationProjectnameNotification.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/SyncCreateNotificationProjectnameNotification.java index e625a41f68..a858a628fe 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/SyncCreateNotificationProjectnameNotification.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/SyncCreateNotificationProjectnameNotification.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/SyncCreateNotificationStringNotification.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/SyncCreateNotificationStringNotification.java index d27c5d7efa..d38a59be39 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/SyncCreateNotificationStringNotification.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/createnotification/SyncCreateNotificationStringNotification.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/AsyncDeleteBucket.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/AsyncDeleteBucket.java index 90eccb52d5..ca87e641a6 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/AsyncDeleteBucket.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/AsyncDeleteBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/SyncDeleteBucket.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/SyncDeleteBucket.java index 3e93ba3c15..7cfdea8018 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/SyncDeleteBucket.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/SyncDeleteBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/SyncDeleteBucketBucketname.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/SyncDeleteBucketBucketname.java index c61c5cbe89..28a562d1a5 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/SyncDeleteBucketBucketname.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/SyncDeleteBucketBucketname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/SyncDeleteBucketString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/SyncDeleteBucketString.java index 2e5ae04d3b..fef7ee436d 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/SyncDeleteBucketString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletebucket/SyncDeleteBucketString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/AsyncDeleteHmacKey.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/AsyncDeleteHmacKey.java index 6dca55e083..6e426cef02 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/AsyncDeleteHmacKey.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/AsyncDeleteHmacKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/SyncDeleteHmacKey.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/SyncDeleteHmacKey.java index de183a87c8..69173ada02 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/SyncDeleteHmacKey.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/SyncDeleteHmacKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/SyncDeleteHmacKeyStringProjectname.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/SyncDeleteHmacKeyStringProjectname.java index ac8f48fd24..8dc0efad33 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/SyncDeleteHmacKeyStringProjectname.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/SyncDeleteHmacKeyStringProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/SyncDeleteHmacKeyStringString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/SyncDeleteHmacKeyStringString.java index dcbc49bbf4..8c0d998194 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/SyncDeleteHmacKeyStringString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletehmackey/SyncDeleteHmacKeyStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/AsyncDeleteNotification.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/AsyncDeleteNotification.java index fd68351238..8e147a715f 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/AsyncDeleteNotification.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/AsyncDeleteNotification.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/SyncDeleteNotification.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/SyncDeleteNotification.java index 4ef5a19fce..0e08e41f45 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/SyncDeleteNotification.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/SyncDeleteNotification.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/SyncDeleteNotificationNotificationname.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/SyncDeleteNotificationNotificationname.java index 053902f7fa..f96f6f2ac8 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/SyncDeleteNotificationNotificationname.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/SyncDeleteNotificationNotificationname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/SyncDeleteNotificationString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/SyncDeleteNotificationString.java index 841f388640..cdd199733e 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/SyncDeleteNotificationString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deletenotification/SyncDeleteNotificationString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/AsyncDeleteObject.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/AsyncDeleteObject.java index 982645ff19..c056da159b 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/AsyncDeleteObject.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/AsyncDeleteObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/SyncDeleteObject.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/SyncDeleteObject.java index 5c0b021e6b..b73e6b6ab2 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/SyncDeleteObject.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/SyncDeleteObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/SyncDeleteObjectStringString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/SyncDeleteObjectStringString.java index 08cc582e51..fd18480822 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/SyncDeleteObjectStringString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/SyncDeleteObjectStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/SyncDeleteObjectStringStringLong.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/SyncDeleteObjectStringStringLong.java index 4fda1861c3..b84f7d124e 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/SyncDeleteObjectStringStringLong.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/deleteobject/SyncDeleteObjectStringStringLong.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/AsyncGetBucket.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/AsyncGetBucket.java index 284b7ff8b1..1fec1b5024 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/AsyncGetBucket.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/AsyncGetBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/SyncGetBucket.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/SyncGetBucket.java index dd07573874..35e15ccee6 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/SyncGetBucket.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/SyncGetBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/SyncGetBucketBucketname.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/SyncGetBucketBucketname.java index 452916523b..698d642e35 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/SyncGetBucketBucketname.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/SyncGetBucketBucketname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/SyncGetBucketString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/SyncGetBucketString.java index 56b100a343..1de7c63a48 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/SyncGetBucketString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getbucket/SyncGetBucketString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/AsyncGetHmacKey.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/AsyncGetHmacKey.java index d49dbb9f06..0932817952 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/AsyncGetHmacKey.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/AsyncGetHmacKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/SyncGetHmacKey.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/SyncGetHmacKey.java index 50c77701ab..dccce69d55 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/SyncGetHmacKey.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/SyncGetHmacKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/SyncGetHmacKeyStringProjectname.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/SyncGetHmacKeyStringProjectname.java index e80e8d51b0..ff3d8fee8f 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/SyncGetHmacKeyStringProjectname.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/SyncGetHmacKeyStringProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/SyncGetHmacKeyStringString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/SyncGetHmacKeyStringString.java index f8e33fe85b..c5eb6e0542 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/SyncGetHmacKeyStringString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/gethmackey/SyncGetHmacKeyStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/AsyncGetIamPolicy.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/AsyncGetIamPolicy.java index ac68bbb756..c0d4f7e0f5 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/AsyncGetIamPolicy.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/AsyncGetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/SyncGetIamPolicy.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/SyncGetIamPolicy.java index 377fcf6d45..6f6e27c506 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/SyncGetIamPolicy.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/SyncGetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/SyncGetIamPolicyResourcename.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/SyncGetIamPolicyResourcename.java index 8d541e34d4..4f0c6b6e44 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/SyncGetIamPolicyResourcename.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/SyncGetIamPolicyResourcename.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/SyncGetIamPolicyString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/SyncGetIamPolicyString.java index 74d1004394..c857e5c3fa 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/SyncGetIamPolicyString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getiampolicy/SyncGetIamPolicyString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/AsyncGetNotification.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/AsyncGetNotification.java index 385265f566..de8a9968d9 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/AsyncGetNotification.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/AsyncGetNotification.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/SyncGetNotification.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/SyncGetNotification.java index 54b20b39a2..dff77a0af3 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/SyncGetNotification.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/SyncGetNotification.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/SyncGetNotificationBucketname.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/SyncGetNotificationBucketname.java index 08a2f369e6..fb81092a8d 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/SyncGetNotificationBucketname.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/SyncGetNotificationBucketname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/SyncGetNotificationString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/SyncGetNotificationString.java index 7b8be54147..3cec51069f 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/SyncGetNotificationString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getnotification/SyncGetNotificationString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/AsyncGetObject.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/AsyncGetObject.java index 6e8508073c..7ccae67558 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/AsyncGetObject.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/AsyncGetObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/SyncGetObject.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/SyncGetObject.java index 36a1019971..c9e02cc07d 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/SyncGetObject.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/SyncGetObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/SyncGetObjectStringString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/SyncGetObjectStringString.java index 9ca048f936..a2b0b52941 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/SyncGetObjectStringString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/SyncGetObjectStringString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/SyncGetObjectStringStringLong.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/SyncGetObjectStringStringLong.java index 2c1f5ccad1..604f4f66f2 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/SyncGetObjectStringStringLong.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getobject/SyncGetObjectStringStringLong.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/AsyncGetServiceAccount.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/AsyncGetServiceAccount.java index e47e08be1e..295c83abf5 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/AsyncGetServiceAccount.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/AsyncGetServiceAccount.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/SyncGetServiceAccount.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/SyncGetServiceAccount.java index 62a2e1bd4b..513c465090 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/SyncGetServiceAccount.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/SyncGetServiceAccount.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/SyncGetServiceAccountProjectname.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/SyncGetServiceAccountProjectname.java index 23b3c533a8..71b85242fd 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/SyncGetServiceAccountProjectname.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/SyncGetServiceAccountProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/SyncGetServiceAccountString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/SyncGetServiceAccountString.java index fa27e8233f..bf275347f6 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/SyncGetServiceAccountString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/getserviceaccount/SyncGetServiceAccountString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/AsyncListBuckets.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/AsyncListBuckets.java index c8ea9aea6e..df75dcf731 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/AsyncListBuckets.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/AsyncListBuckets.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/AsyncListBucketsPaged.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/AsyncListBucketsPaged.java index c012188d46..1d50aa65b6 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/AsyncListBucketsPaged.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/AsyncListBucketsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/SyncListBuckets.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/SyncListBuckets.java index 31c8aa60ee..2eaa867ff7 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/SyncListBuckets.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/SyncListBuckets.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/SyncListBucketsProjectname.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/SyncListBucketsProjectname.java index 2f302f4364..68e4067804 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/SyncListBucketsProjectname.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/SyncListBucketsProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/SyncListBucketsString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/SyncListBucketsString.java index 2dd6fb4285..1fc8d141ef 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/SyncListBucketsString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listbuckets/SyncListBucketsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/AsyncListHmacKeys.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/AsyncListHmacKeys.java index 48b987cc1a..04ae3575bb 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/AsyncListHmacKeys.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/AsyncListHmacKeys.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/AsyncListHmacKeysPaged.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/AsyncListHmacKeysPaged.java index 4b906b7ac7..cab5c6863d 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/AsyncListHmacKeysPaged.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/AsyncListHmacKeysPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/SyncListHmacKeys.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/SyncListHmacKeys.java index 7c582ea1db..6ea123226b 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/SyncListHmacKeys.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/SyncListHmacKeys.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/SyncListHmacKeysProjectname.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/SyncListHmacKeysProjectname.java index 52576f7b3c..67b7a69509 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/SyncListHmacKeysProjectname.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/SyncListHmacKeysProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/SyncListHmacKeysString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/SyncListHmacKeysString.java index 4760e2ff73..458c735751 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/SyncListHmacKeysString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listhmackeys/SyncListHmacKeysString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/AsyncListNotifications.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/AsyncListNotifications.java index 892a726f67..18ac672f74 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/AsyncListNotifications.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/AsyncListNotifications.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/AsyncListNotificationsPaged.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/AsyncListNotificationsPaged.java index 889dd391ee..c7bc513ce9 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/AsyncListNotificationsPaged.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/AsyncListNotificationsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/SyncListNotifications.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/SyncListNotifications.java index 67c6bbdfc4..02ff8c6d01 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/SyncListNotifications.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/SyncListNotifications.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/SyncListNotificationsProjectname.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/SyncListNotificationsProjectname.java index 71be81b67d..5342771a59 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/SyncListNotificationsProjectname.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/SyncListNotificationsProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/SyncListNotificationsString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/SyncListNotificationsString.java index 416c521b17..6c32ff70dd 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/SyncListNotificationsString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listnotifications/SyncListNotificationsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/AsyncListObjects.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/AsyncListObjects.java index f45d018630..5d26d3535a 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/AsyncListObjects.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/AsyncListObjects.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/AsyncListObjectsPaged.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/AsyncListObjectsPaged.java index d608f8d074..3bccde6842 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/AsyncListObjectsPaged.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/AsyncListObjectsPaged.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/SyncListObjects.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/SyncListObjects.java index b0b9b80170..dca8ee1981 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/SyncListObjects.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/SyncListObjects.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/SyncListObjectsProjectname.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/SyncListObjectsProjectname.java index 2736a1c356..2855bebd1e 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/SyncListObjectsProjectname.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/SyncListObjectsProjectname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/SyncListObjectsString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/SyncListObjectsString.java index e1e6dcc4c7..bb63bf2fee 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/SyncListObjectsString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/listobjects/SyncListObjectsString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/AsyncLockBucketRetentionPolicy.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/AsyncLockBucketRetentionPolicy.java index f65af21394..a66d183f14 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/AsyncLockBucketRetentionPolicy.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/AsyncLockBucketRetentionPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/SyncLockBucketRetentionPolicy.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/SyncLockBucketRetentionPolicy.java index 84aeffb457..376ae7c96d 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/SyncLockBucketRetentionPolicy.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/SyncLockBucketRetentionPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyBucketname.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyBucketname.java index 5fab95998c..f5d242aedf 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyBucketname.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyBucketname.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyString.java index dd751408c9..ad36293e34 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/lockbucketretentionpolicy/SyncLockBucketRetentionPolicyString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/querywritestatus/AsyncQueryWriteStatus.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/querywritestatus/AsyncQueryWriteStatus.java index d816988a1d..76b760e741 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/querywritestatus/AsyncQueryWriteStatus.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/querywritestatus/AsyncQueryWriteStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/querywritestatus/SyncQueryWriteStatus.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/querywritestatus/SyncQueryWriteStatus.java index 426a231bd9..a93377177b 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/querywritestatus/SyncQueryWriteStatus.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/querywritestatus/SyncQueryWriteStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/querywritestatus/SyncQueryWriteStatusString.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/querywritestatus/SyncQueryWriteStatusString.java index ef4b1e8b15..15da30154c 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/querywritestatus/SyncQueryWriteStatusString.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/querywritestatus/SyncQueryWriteStatusString.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/readobject/AsyncReadObject.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/readobject/AsyncReadObject.java index 2101f0a149..146e4b7684 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/readobject/AsyncReadObject.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/readobject/AsyncReadObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/rewriteobject/AsyncRewriteObject.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/rewriteobject/AsyncRewriteObject.java index b951877ecd..cba91d426f 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/rewriteobject/AsyncRewriteObject.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/rewriteobject/AsyncRewriteObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/rewriteobject/SyncRewriteObject.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/rewriteobject/SyncRewriteObject.java index 8d594feaf2..f9e5cb3d6e 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/rewriteobject/SyncRewriteObject.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/rewriteobject/SyncRewriteObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/AsyncSetIamPolicy.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/AsyncSetIamPolicy.java index 05c2e038dc..aacb4227cb 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/AsyncSetIamPolicy.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/AsyncSetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/SyncSetIamPolicy.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/SyncSetIamPolicy.java index 8f7facc7b6..53bfe8d866 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/SyncSetIamPolicy.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/SyncSetIamPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java index 1ab380af37..3d80e32732 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/SyncSetIamPolicyStringPolicy.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/SyncSetIamPolicyStringPolicy.java index 7b1a22c465..60987f8d0b 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/SyncSetIamPolicyStringPolicy.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/setiampolicy/SyncSetIamPolicyStringPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/startresumablewrite/AsyncStartResumableWrite.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/startresumablewrite/AsyncStartResumableWrite.java index 07488f1558..11f5a17a1a 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/startresumablewrite/AsyncStartResumableWrite.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/startresumablewrite/AsyncStartResumableWrite.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/startresumablewrite/SyncStartResumableWrite.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/startresumablewrite/SyncStartResumableWrite.java index 1e483c3bc6..d70b90cefc 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/startresumablewrite/SyncStartResumableWrite.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/startresumablewrite/SyncStartResumableWrite.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/AsyncTestIamPermissions.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/AsyncTestIamPermissions.java index fc314686a4..0a13dacd48 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/AsyncTestIamPermissions.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/AsyncTestIamPermissions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/SyncTestIamPermissions.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/SyncTestIamPermissions.java index 344dcf5eb2..574d7df4f1 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/SyncTestIamPermissions.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/SyncTestIamPermissions.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java index 071bf1abde..4ef9f68c24 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/SyncTestIamPermissionsStringListstring.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/SyncTestIamPermissionsStringListstring.java index b53b9bf633..7c0b25665a 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/SyncTestIamPermissionsStringListstring.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/testiampermissions/SyncTestIamPermissionsStringListstring.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatebucket/AsyncUpdateBucket.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatebucket/AsyncUpdateBucket.java index f5fb354c1e..6545e12672 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatebucket/AsyncUpdateBucket.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatebucket/AsyncUpdateBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatebucket/SyncUpdateBucket.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatebucket/SyncUpdateBucket.java index 136bb37f16..798e0b6176 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatebucket/SyncUpdateBucket.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatebucket/SyncUpdateBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatebucket/SyncUpdateBucketBucketFieldmask.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatebucket/SyncUpdateBucketBucketFieldmask.java index 6eea935ee9..648c66575b 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatebucket/SyncUpdateBucketBucketFieldmask.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatebucket/SyncUpdateBucketBucketFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatehmackey/AsyncUpdateHmacKey.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatehmackey/AsyncUpdateHmacKey.java index ac99f8b00b..15b50f49c9 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatehmackey/AsyncUpdateHmacKey.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatehmackey/AsyncUpdateHmacKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatehmackey/SyncUpdateHmacKey.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatehmackey/SyncUpdateHmacKey.java index 3169109c1d..8acf63140f 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatehmackey/SyncUpdateHmacKey.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatehmackey/SyncUpdateHmacKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatehmackey/SyncUpdateHmacKeyHmackeymetadataFieldmask.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatehmackey/SyncUpdateHmacKeyHmackeymetadataFieldmask.java index 60ce7675f1..3eca54a3bb 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatehmackey/SyncUpdateHmacKeyHmackeymetadataFieldmask.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updatehmackey/SyncUpdateHmacKeyHmackeymetadataFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updateobject/AsyncUpdateObject.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updateobject/AsyncUpdateObject.java index e1b800d144..d5544c1499 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updateobject/AsyncUpdateObject.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updateobject/AsyncUpdateObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updateobject/SyncUpdateObject.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updateobject/SyncUpdateObject.java index 00160bfd0b..82017d8951 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updateobject/SyncUpdateObject.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updateobject/SyncUpdateObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updateobject/SyncUpdateObjectObjectFieldmask.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updateobject/SyncUpdateObjectObjectFieldmask.java index 5043225978..36802432cd 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updateobject/SyncUpdateObjectObjectFieldmask.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/updateobject/SyncUpdateObjectObjectFieldmask.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/writeobject/AsyncWriteObject.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/writeobject/AsyncWriteObject.java index d10d1ed0ab..37dec3fe18 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/writeobject/AsyncWriteObject.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storage/writeobject/AsyncWriteObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storagesettings/deletebucket/SyncDeleteBucket.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storagesettings/deletebucket/SyncDeleteBucket.java index 9bf8de29e4..a0baacf0bc 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storagesettings/deletebucket/SyncDeleteBucket.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storagesettings/deletebucket/SyncDeleteBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/stub/storagestubsettings/deletebucket/SyncDeleteBucket.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/stub/storagestubsettings/deletebucket/SyncDeleteBucket.java index 0fdee9cfaa..fd497e5cec 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/stub/storagestubsettings/deletebucket/SyncDeleteBucket.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/stub/storagestubsettings/deletebucket/SyncDeleteBucket.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java b/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java index d2643c96d8..fec84c528e 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java b/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java index a9d2ffd79b..cc44f3f4f7 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/MockStorage.java b/test/integration/goldens/storage/src/com/google/storage/v2/MockStorage.java index 5f04f6e64c..3bee4c256c 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/MockStorage.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/MockStorage.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/MockStorageImpl.java b/test/integration/goldens/storage/src/com/google/storage/v2/MockStorageImpl.java index df7b1b65d1..b74658799f 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/MockStorageImpl.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/MockStorageImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java b/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java index 692837f59f..752221ee47 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java b/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java index b8d7aa7b69..1788c480b4 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java b/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java index 2285108b0e..aff27b6d54 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/StorageClientTest.java b/test/integration/goldens/storage/src/com/google/storage/v2/StorageClientTest.java index a86ee96beb..a17f5f5215 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/StorageClientTest.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/StorageClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java b/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java index f946fad71c..b390af0933 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/package-info.java b/test/integration/goldens/storage/src/com/google/storage/v2/package-info.java index 1afdc9d4b6..7237263b13 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/package-info.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageCallableFactory.java b/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageCallableFactory.java index 4f7f286480..553b1d504e 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageCallableFactory.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageStub.java b/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageStub.java index 47dcefc052..4be7cd3b29 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageStub.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStub.java b/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStub.java index c7ebb6687c..c11defe183 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStub.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java b/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java index 4010f7e96c..80b747d9d8 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 58d2cc3578b39cf2f5d4e8f14319d005f0c324d1 Mon Sep 17 00:00:00 2001 From: Mike Eltsufin Date: Tue, 6 Feb 2024 16:07:22 -0500 Subject: [PATCH 40/75] test: fix flakes in HttpJsonDirectServerStreamingCallableTest (#2432) The flakes seem to stem from parallel execution and the resulting race conditions around static member variables, particularly the `mockService`. Attempting to fix this by using a separate `mockService` for each test. Fixes: #1905. Fixes: #2107. Fixes: #1876. Fixes: #2083. Fixes: #1587. Fixes: #1684. --- ...JsonDirectServerStreamingCallableTest.java | 60 +++++++++---------- 1 file changed, 27 insertions(+), 33 deletions(-) diff --git a/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonDirectServerStreamingCallableTest.java b/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonDirectServerStreamingCallableTest.java index 3898b8e908..2ebbcffa5a 100644 --- a/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonDirectServerStreamingCallableTest.java +++ b/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonDirectServerStreamingCallableTest.java @@ -62,9 +62,8 @@ import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import org.junit.After; -import org.junit.AfterClass; import org.junit.Assert; -import org.junit.BeforeClass; +import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -107,9 +106,7 @@ public class HttpJsonDirectServerStreamingCallableTest { .setType(MethodType.SERVER_STREAMING) .build(); - private static final MockHttpService MOCK_SERVICE = - new MockHttpService( - Collections.singletonList(METHOD_SERVER_STREAMING_RECOGNIZE), "google.com:443"); + private MockHttpService mockService; private static final Color DEFAULT_REQUEST = Color.newBuilder().setRed(0.5f).build(); private static final Color ASYNC_REQUEST = DEFAULT_REQUEST.toBuilder().setGreen(1000).build(); @@ -120,22 +117,25 @@ public class HttpJsonDirectServerStreamingCallableTest { Money.newBuilder().setCurrencyCode("UAH").setUnits(255).build(); private static final int AWAIT_TERMINATION_SECONDS = 10; - private static ServerStreamingCallSettings streamingCallSettings; - private static ServerStreamingCallable streamingCallable; + private ServerStreamingCallSettings streamingCallSettings; + private ServerStreamingCallable streamingCallable; - private static ManagedHttpJsonChannel channel; - private static ClientContext clientContext; - private static ExecutorService executorService; + private ManagedHttpJsonChannel channel; + private ClientContext clientContext; + private ExecutorService executorService; - @BeforeClass - public static void initialize() throws IOException { + @Before + public void initialize() throws IOException { + mockService = + new MockHttpService( + Collections.singletonList(METHOD_SERVER_STREAMING_RECOGNIZE), "google.com:443"); executorService = Executors.newFixedThreadPool(2); channel = new ManagedHttpJsonInterceptorChannel( ManagedHttpJsonChannel.newBuilder() .setEndpoint("google.com:443") .setExecutor(executorService) - .setHttpTransport(MOCK_SERVICE) + .setHttpTransport(mockService) .build(), new HttpJsonHeaderInterceptor(Collections.singletonMap("header-key", "headerValue"))); EndpointContext endpointContext = Mockito.mock(EndpointContext.class); @@ -158,25 +158,23 @@ public static void initialize() throws IOException { HttpJsonCallSettings.create(METHOD_SERVER_STREAMING_RECOGNIZE), streamingCallSettings, clientContext); + + mockService.reset(); } - @AfterClass - public static void destroy() throws InterruptedException { + @After + public void destroy() throws InterruptedException { executorService.shutdown(); channel.shutdown(); executorService.awaitTermination(AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); channel.awaitTermination(AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); - } - - @After - public void tearDown() throws InterruptedException { - MOCK_SERVICE.reset(); + mockService.reset(); } @Test public void testBadContext() { - MOCK_SERVICE.addResponse(new Money[] {DEFAULT_RESPONSE}); + mockService.addResponse(new Money[] {DEFAULT_RESPONSE}); // Create a local callable with a bad context ServerStreamingCallable streamingCallable = HttpJsonCallableFactory.createServerStreamingCallable( @@ -202,22 +200,18 @@ public void testBadContext() { @Test public void testServerStreamingStart() throws InterruptedException { - MOCK_SERVICE.addResponse(new Money[] {DEFAULT_RESPONSE}); + mockService.addResponse(new Money[] {DEFAULT_RESPONSE}); CountDownLatch latch = new CountDownLatch(1); MoneyObserver moneyObserver = new MoneyObserver(true, latch); streamingCallable.call(DEFAULT_REQUEST, moneyObserver); Truth.assertThat(moneyObserver.controller).isNotNull(); - // wait for the task to complete, otherwise it may interfere with other tests, since they share - // the same MockService and unfinished request in this test may start reading messages - // designated for other tests. - Truth.assertThat(latch.await(2, TimeUnit.SECONDS)).isTrue(); } @Test public void testServerStreaming() throws InterruptedException { - MOCK_SERVICE.addResponse(new Money[] {DEFAULT_RESPONSE, DEFAULTER_RESPONSE}); + mockService.addResponse(new Money[] {DEFAULT_RESPONSE, DEFAULTER_RESPONSE}); CountDownLatch latch = new CountDownLatch(3); MoneyObserver moneyObserver = new MoneyObserver(true, latch); @@ -231,7 +225,7 @@ public void testServerStreaming() throws InterruptedException { @Test public void testManualFlowControl() throws Exception { - MOCK_SERVICE.addResponse(new Money[] {DEFAULT_RESPONSE}); + mockService.addResponse(new Money[] {DEFAULT_RESPONSE}); CountDownLatch latch = new CountDownLatch(2); MoneyObserver moneyObserver = new MoneyObserver(false, latch); @@ -251,7 +245,7 @@ public void testManualFlowControl() throws Exception { @Test public void testCancelClientCall() throws Exception { - MOCK_SERVICE.addResponse(new Money[] {DEFAULT_RESPONSE}); + mockService.addResponse(new Money[] {DEFAULT_RESPONSE}); CountDownLatch latch = new CountDownLatch(1); MoneyObserver moneyObserver = new MoneyObserver(false, latch); @@ -267,7 +261,7 @@ public void testCancelClientCall() throws Exception { @Test public void testOnResponseError() throws Throwable { - MOCK_SERVICE.addException(404, new RuntimeException("some error")); + mockService.addException(404, new RuntimeException("some error")); CountDownLatch latch = new CountDownLatch(1); MoneyObserver moneyObserver = new MoneyObserver(true, latch); @@ -292,7 +286,7 @@ public void testOnResponseError() throws Throwable { @Test public void testObserverErrorCancelsCall() throws Throwable { - MOCK_SERVICE.addResponse(new Money[] {DEFAULT_RESPONSE}); + mockService.addResponse(new Money[] {DEFAULT_RESPONSE}); final RuntimeException expectedCause = new RuntimeException("some error"); final SettableApiFuture actualErrorF = SettableApiFuture.create(); @@ -332,7 +326,7 @@ protected void onCompleteImpl() { @Test public void testBlockingServerStreaming() { - MOCK_SERVICE.addResponse(new Money[] {DEFAULT_RESPONSE}); + mockService.addResponse(new Money[] {DEFAULT_RESPONSE}); Color request = Color.newBuilder().setRed(0.5f).build(); ServerStream response = streamingCallable.call(request); List responseData = Lists.newArrayList(response); @@ -344,7 +338,7 @@ public void testBlockingServerStreaming() { // This test ensures that the server-side streaming does not exceed the timeout value @Test public void testDeadlineExceededServerStreaming() throws InterruptedException { - MOCK_SERVICE.addResponse( + mockService.addResponse( new Money[] {DEFAULT_RESPONSE, DEFAULTER_RESPONSE}, java.time.Duration.ofSeconds(5)); Color request = Color.newBuilder().setRed(0.5f).build(); CountDownLatch latch = new CountDownLatch(1); From 1a34a99ed905a7903db0b5a74d711fe67698e174 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Wed, 7 Feb 2024 18:07:04 +0000 Subject: [PATCH 41/75] chore: Update showcase protos (#2445) --- .../showcase/v1beta1/EchoOuterClass.java | 152 +++++----- .../showcase/v1beta1/IdentityOuterClass.java | 90 +++--- .../showcase/v1beta1/MessagingOuterClass.java | 269 +++++++++--------- .../showcase/v1beta1/SequenceOuterClass.java | 169 ++++++----- 4 files changed, 339 insertions(+), 341 deletions(-) diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java index 7cf4c098ff..ca6913c9ad 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/EchoOuterClass.java @@ -158,82 +158,82 @@ public static void registerAllExtensions( "ny\"x\n\rExpandRequest\022\017\n\007content\030\001 \001(\t\022!\n\005" + "error\030\002 \001(\0132\022.google.rpc.Status\0223\n\020strea" + "m_wait_time\030\003 \001(\0132\031.google.protobuf.Dura" + - "tion\"R\n\022PagedExpandRequest\022\025\n\007content\030\001 " + - "\001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + - "en\030\003 \001(\t\"Z\n\030PagedExpandLegacyRequest\022\025\n\007" + - "content\030\001 \001(\tB\004\342A\001\002\022\023\n\013max_results\030\002 \001(\005" + - "\022\022\n\npage_token\030\003 \001(\t\"h\n\023PagedExpandRespo" + - "nse\0228\n\tresponses\030\001 \003(\0132%.google.showcase" + - ".v1beta1.EchoResponse\022\027\n\017next_page_token" + - "\030\002 \001(\t\"(\n\027PagedExpandResponseList\022\r\n\005wor" + - "ds\030\001 \003(\t\"\203\002\n\037PagedExpandLegacyMappedResp" + - "onse\022`\n\014alphabetized\030\001 \003(\0132J.google.show" + - "case.v1beta1.PagedExpandLegacyMappedResp" + - "onse.AlphabetizedEntry\022\027\n\017next_page_toke" + - "n\030\002 \001(\t\032e\n\021AlphabetizedEntry\022\013\n\003key\030\001 \001(" + - "\t\022?\n\005value\030\002 \001(\01320.google.showcase.v1bet" + - "a1.PagedExpandResponseList:\0028\001\"\331\001\n\013WaitR" + - "equest\022.\n\010end_time\030\001 \001(\0132\032.google.protob" + - "uf.TimestampH\000\022(\n\003ttl\030\004 \001(\0132\031.google.pro" + - "tobuf.DurationH\000\022#\n\005error\030\002 \001(\0132\022.google" + - ".rpc.StatusH\001\0228\n\007success\030\003 \001(\0132%.google." + - "showcase.v1beta1.WaitResponseH\001B\005\n\003endB\n" + - "\n\010response\"\037\n\014WaitResponse\022\017\n\007content\030\001 " + - "\001(\t\"<\n\014WaitMetadata\022,\n\010end_time\030\001 \001(\0132\032." + - "google.protobuf.Timestamp\"\255\001\n\014BlockReque" + - "st\0221\n\016response_delay\030\001 \001(\0132\031.google.prot" + - "obuf.Duration\022#\n\005error\030\002 \001(\0132\022.google.rp" + - "c.StatusH\000\0229\n\007success\030\003 \001(\0132&.google.sho" + - "wcase.v1beta1.BlockResponseH\000B\n\n\010respons" + - "e\" \n\rBlockResponse\022\017\n\007content\030\001 \001(\t*D\n\010S" + - "everity\022\017\n\013UNNECESSARY\020\000\022\r\n\tNECESSARY\020\001\022" + - "\n\n\006URGENT\020\002\022\014\n\010CRITICAL\020\0032\241\r\n\004Echo\022\224\003\n\004E" + - "cho\022$.google.showcase.v1beta1.EchoReques" + - "t\032%.google.showcase.v1beta1.EchoResponse" + - "\"\276\002\202\323\344\223\002\027\"\022/v1beta1/echo:echo:\001*\212\323\344\223\002\232\002\022" + - "\010\n\006header\022\031\n\006header\022\017{routing_id=**}\022+\n\006" + - "header\022!{table_name=regions/*/zones/*/**" + - "}\022\"\n\006header\022\030{super_id=projects/*}/**\0220\n" + - "\006header\022&{table_name=projects/*/instance" + - "s/*/**}\0221\n\006header\022\'projects/*/{instance_" + - "id=instances/*}/**\022\030\n\014other_header\022\010{baz" + - "=**}\022#\n\014other_header\022\023{qux=projects/*}/*" + - "*\022\237\001\n\020EchoErrorDetails\0220.google.showcase" + - ".v1beta1.EchoErrorDetailsRequest\0321.googl" + - "e.showcase.v1beta1.EchoErrorDetailsRespo" + - "nse\"&\202\323\344\223\002 \"\033/v1beta1/echo:error-details" + - ":\001*\022\212\001\n\006Expand\022&.google.showcase.v1beta1" + - ".ExpandRequest\032%.google.showcase.v1beta1" + - ".EchoResponse\"/\332A\rcontent,error\202\323\344\223\002\031\"\024/" + - "v1beta1/echo:expand:\001*0\001\022z\n\007Collect\022$.go" + - "ogle.showcase.v1beta1.EchoRequest\032%.goog" + - "le.showcase.v1beta1.EchoResponse\" \202\323\344\223\002\032" + - "\"\025/v1beta1/echo:collect:\001*(\001\022W\n\004Chat\022$.g" + - "oogle.showcase.v1beta1.EchoRequest\032%.goo" + - "gle.showcase.v1beta1.EchoResponse(\0010\001\022\216\001" + - "\n\013PagedExpand\022+.google.showcase.v1beta1." + - "PagedExpandRequest\032,.google.showcase.v1b" + - "eta1.PagedExpandResponse\"$\202\323\344\223\002\036\"\031/v1bet" + - "a1/echo:pagedExpand:\001*\022\240\001\n\021PagedExpandLe" + - "gacy\0221.google.showcase.v1beta1.PagedExpa" + - "ndLegacyRequest\032,.google.showcase.v1beta" + - "1.PagedExpandResponse\"*\202\323\344\223\002$\"\037/v1beta1/" + - "echo:pagedExpandLegacy:\001*\022\262\001\n\027PagedExpan" + - "dLegacyMapped\022+.google.showcase.v1beta1." + - "PagedExpandRequest\0328.google.showcase.v1b" + - "eta1.PagedExpandLegacyMappedResponse\"0\202\323" + - "\344\223\002*\"%/v1beta1/echo:pagedExpandLegacyMap" + - "ped:\001*\022\211\001\n\004Wait\022$.google.showcase.v1beta" + - "1.WaitRequest\032\035.google.longrunning.Opera" + - "tion\"<\312A\034\n\014WaitResponse\022\014WaitMetadata\202\323\344" + - "\223\002\027\"\022/v1beta1/echo:wait:\001*\022v\n\005Block\022%.go" + - "ogle.showcase.v1beta1.BlockRequest\032&.goo" + - "gle.showcase.v1beta1.BlockResponse\"\036\202\323\344\223" + - "\002\030\"\023/v1beta1/echo:block:\001*\032\021\312A\016localhost" + - ":7469Bq\n\033com.google.showcase.v1beta1P\001Z4" + - "github.com/googleapis/gapic-showcase/ser" + - "ver/genproto\352\002\031Google::Showcase::V1beta1" + - "b\006proto3" + "tion\"Q\n\022PagedExpandRequest\022\024\n\007content\030\001 " + + "\001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"Y\n\030PagedExpandLegacyRequest\022\024\n\007c" + + "ontent\030\001 \001(\tB\003\340A\002\022\023\n\013max_results\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"h\n\023PagedExpandRespons" + + "e\0228\n\tresponses\030\001 \003(\0132%.google.showcase.v" + + "1beta1.EchoResponse\022\027\n\017next_page_token\030\002" + + " \001(\t\"(\n\027PagedExpandResponseList\022\r\n\005words" + + "\030\001 \003(\t\"\203\002\n\037PagedExpandLegacyMappedRespon" + + "se\022`\n\014alphabetized\030\001 \003(\0132J.google.showca" + + "se.v1beta1.PagedExpandLegacyMappedRespon" + + "se.AlphabetizedEntry\022\027\n\017next_page_token\030" + + "\002 \001(\t\032e\n\021AlphabetizedEntry\022\013\n\003key\030\001 \001(\t\022" + + "?\n\005value\030\002 \001(\01320.google.showcase.v1beta1" + + ".PagedExpandResponseList:\0028\001\"\331\001\n\013WaitReq" + + "uest\022.\n\010end_time\030\001 \001(\0132\032.google.protobuf" + + ".TimestampH\000\022(\n\003ttl\030\004 \001(\0132\031.google.proto" + + "buf.DurationH\000\022#\n\005error\030\002 \001(\0132\022.google.r" + + "pc.StatusH\001\0228\n\007success\030\003 \001(\0132%.google.sh" + + "owcase.v1beta1.WaitResponseH\001B\005\n\003endB\n\n\010" + + "response\"\037\n\014WaitResponse\022\017\n\007content\030\001 \001(" + + "\t\"<\n\014WaitMetadata\022,\n\010end_time\030\001 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\"\255\001\n\014BlockRequest" + + "\0221\n\016response_delay\030\001 \001(\0132\031.google.protob" + + "uf.Duration\022#\n\005error\030\002 \001(\0132\022.google.rpc." + + "StatusH\000\0229\n\007success\030\003 \001(\0132&.google.showc" + + "ase.v1beta1.BlockResponseH\000B\n\n\010response\"" + + " \n\rBlockResponse\022\017\n\007content\030\001 \001(\t*D\n\010Sev" + + "erity\022\017\n\013UNNECESSARY\020\000\022\r\n\tNECESSARY\020\001\022\n\n" + + "\006URGENT\020\002\022\014\n\010CRITICAL\020\0032\241\r\n\004Echo\022\224\003\n\004Ech" + + "o\022$.google.showcase.v1beta1.EchoRequest\032" + + "%.google.showcase.v1beta1.EchoResponse\"\276" + + "\002\202\323\344\223\002\027\"\022/v1beta1/echo:echo:\001*\212\323\344\223\002\232\002\022\010\n" + + "\006header\022\031\n\006header\022\017{routing_id=**}\022+\n\006he" + + "ader\022!{table_name=regions/*/zones/*/**}\022" + + "\"\n\006header\022\030{super_id=projects/*}/**\0220\n\006h" + + "eader\022&{table_name=projects/*/instances/" + + "*/**}\0221\n\006header\022\'projects/*/{instance_id" + + "=instances/*}/**\022\030\n\014other_header\022\010{baz=*" + + "*}\022#\n\014other_header\022\023{qux=projects/*}/**\022" + + "\237\001\n\020EchoErrorDetails\0220.google.showcase.v" + + "1beta1.EchoErrorDetailsRequest\0321.google." + + "showcase.v1beta1.EchoErrorDetailsRespons" + + "e\"&\202\323\344\223\002 \"\033/v1beta1/echo:error-details:\001" + + "*\022\212\001\n\006Expand\022&.google.showcase.v1beta1.E" + + "xpandRequest\032%.google.showcase.v1beta1.E" + + "choResponse\"/\332A\rcontent,error\202\323\344\223\002\031\"\024/v1" + + "beta1/echo:expand:\001*0\001\022z\n\007Collect\022$.goog" + + "le.showcase.v1beta1.EchoRequest\032%.google" + + ".showcase.v1beta1.EchoResponse\" \202\323\344\223\002\032\"\025" + + "/v1beta1/echo:collect:\001*(\001\022W\n\004Chat\022$.goo" + + "gle.showcase.v1beta1.EchoRequest\032%.googl" + + "e.showcase.v1beta1.EchoResponse(\0010\001\022\216\001\n\013" + + "PagedExpand\022+.google.showcase.v1beta1.Pa" + + "gedExpandRequest\032,.google.showcase.v1bet" + + "a1.PagedExpandResponse\"$\202\323\344\223\002\036\"\031/v1beta1" + + "/echo:pagedExpand:\001*\022\240\001\n\021PagedExpandLega" + + "cy\0221.google.showcase.v1beta1.PagedExpand" + + "LegacyRequest\032,.google.showcase.v1beta1." + + "PagedExpandResponse\"*\202\323\344\223\002$\"\037/v1beta1/ec" + + "ho:pagedExpandLegacy:\001*\022\262\001\n\027PagedExpandL" + + "egacyMapped\022+.google.showcase.v1beta1.Pa" + + "gedExpandRequest\0328.google.showcase.v1bet" + + "a1.PagedExpandLegacyMappedResponse\"0\202\323\344\223" + + "\002*\"%/v1beta1/echo:pagedExpandLegacyMappe" + + "d:\001*\022\211\001\n\004Wait\022$.google.showcase.v1beta1." + + "WaitRequest\032\035.google.longrunning.Operati" + + "on\"<\312A\034\n\014WaitResponse\022\014WaitMetadata\202\323\344\223\002" + + "\027\"\022/v1beta1/echo:wait:\001*\022v\n\005Block\022%.goog" + + "le.showcase.v1beta1.BlockRequest\032&.googl" + + "e.showcase.v1beta1.BlockResponse\"\036\202\323\344\223\002\030" + + "\"\023/v1beta1/echo:block:\001*\032\021\312A\016localhost:7" + + "469Bq\n\033com.google.showcase.v1beta1P\001Z4gi" + + "thub.com/googleapis/gapic-showcase/serve" + + "r/genproto\352\002\031Google::Showcase::V1beta1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java index 1077b34af6..78c5f3d4eb 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/IdentityOuterClass.java @@ -66,51 +66,51 @@ public static void registerAllExtensions( "\032\031google/api/resource.proto\032\033google/prot" + "obuf/empty.proto\032 google/protobuf/field_" + "mask.proto\032\037google/protobuf/timestamp.pr" + - "oto\"\210\003\n\004User\022\014\n\004name\030\001 \001(\t\022\032\n\014display_na" + - "me\030\002 \001(\tB\004\342A\001\002\022\023\n\005email\030\003 \001(\tB\004\342A\001\002\0225\n\013c" + - "reate_time\030\004 \001(\0132\032.google.protobuf.Times" + - "tampB\004\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032.google" + - ".protobuf.TimestampB\004\342A\001\003\022\020\n\003age\030\006 \001(\005H\000" + - "\210\001\001\022\030\n\013height_feet\030\007 \001(\001H\001\210\001\001\022\025\n\010nicknam" + - "e\030\010 \001(\tH\002\210\001\001\022!\n\024enable_notifications\030\t \001" + - "(\010H\003\210\001\001:/\352A,\n\034showcase.googleapis.com/Us" + - "er\022\014users/{user}B\006\n\004_ageB\016\n\014_height_feet" + - "B\013\n\t_nicknameB\027\n\025_enable_notifications\"@" + - "\n\021CreateUserRequest\022+\n\004user\030\001 \001(\0132\035.goog" + - "le.showcase.v1beta1.User\"E\n\016GetUserReque" + - "st\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034showcase.goog" + - "leapis.com/User\"q\n\021UpdateUserRequest\022+\n\004" + - "user\030\001 \001(\0132\035.google.showcase.v1beta1.Use" + - "r\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + - ".FieldMask\"H\n\021DeleteUserRequest\0223\n\004name\030" + - "\001 \001(\tB%\342A\001\002\372A\036\n\034showcase.googleapis.com/" + - "User\"9\n\020ListUsersRequest\022\021\n\tpage_size\030\001 " + - "\001(\005\022\022\n\npage_token\030\002 \001(\t\"Z\n\021ListUsersResp" + - "onse\022,\n\005users\030\001 \003(\0132\035.google.showcase.v1" + - "beta1.User\022\027\n\017next_page_token\030\002 \001(\t2\212\006\n\010" + - "Identity\022\363\001\n\nCreateUser\022*.google.showcas" + - "e.v1beta1.CreateUserRequest\032\035.google.sho" + - "wcase.v1beta1.User\"\231\001\332A\034user.display_nam" + - "e,user.email\332A^user.display_name,user.em" + - "ail,user.age,user.nickname,user.enable_n" + - "otifications,user.height_feet\202\323\344\223\002\023\"\016/v1" + - "beta1/users:\001*\022y\n\007GetUser\022\'.google.showc" + - "ase.v1beta1.GetUserRequest\032\035.google.show" + - "case.v1beta1.User\"&\332A\004name\202\323\344\223\002\031\022\027/v1bet" + - "a1/{name=users/*}\022\203\001\n\nUpdateUser\022*.googl" + - "e.showcase.v1beta1.UpdateUserRequest\032\035.g" + - "oogle.showcase.v1beta1.User\"*\202\323\344\223\002$2\034/v1" + - "beta1/{user.name=users/*}:\004user\022x\n\nDelet" + - "eUser\022*.google.showcase.v1beta1.DeleteUs" + - "erRequest\032\026.google.protobuf.Empty\"&\332A\004na" + - "me\202\323\344\223\002\031*\027/v1beta1/{name=users/*}\022z\n\tLis" + - "tUsers\022).google.showcase.v1beta1.ListUse" + - "rsRequest\032*.google.showcase.v1beta1.List" + - "UsersResponse\"\026\202\323\344\223\002\020\022\016/v1beta1/users\032\021\312" + - "A\016localhost:7469Bq\n\033com.google.showcase." + - "v1beta1P\001Z4github.com/googleapis/gapic-s" + - "howcase/server/genproto\352\002\031Google::Showca" + - "se::V1beta1b\006proto3" + "oto\"\204\003\n\004User\022\014\n\004name\030\001 \001(\t\022\031\n\014display_na" + + "me\030\002 \001(\tB\003\340A\002\022\022\n\005email\030\003 \001(\tB\003\340A\002\0224\n\013cre" + + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022\020\n\003age\030\006 \001(\005H\000\210\001\001\022" + + "\030\n\013height_feet\030\007 \001(\001H\001\210\001\001\022\025\n\010nickname\030\010 " + + "\001(\tH\002\210\001\001\022!\n\024enable_notifications\030\t \001(\010H\003" + + "\210\001\001:/\352A,\n\034showcase.googleapis.com/User\022\014" + + "users/{user}B\006\n\004_ageB\016\n\014_height_feetB\013\n\t" + + "_nicknameB\027\n\025_enable_notifications\"@\n\021Cr" + + "eateUserRequest\022+\n\004user\030\001 \001(\0132\035.google.s" + + "howcase.v1beta1.User\"D\n\016GetUserRequest\0222" + + "\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034showcase.googleapi" + + "s.com/User\"q\n\021UpdateUserRequest\022+\n\004user\030" + + "\001 \001(\0132\035.google.showcase.v1beta1.User\022/\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"G\n\021DeleteUserRequest\0222\n\004name\030\001 \001(\t" + + "B$\340A\002\372A\036\n\034showcase.googleapis.com/User\"9" + + "\n\020ListUsersRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n" + + "\npage_token\030\002 \001(\t\"Z\n\021ListUsersResponse\022," + + "\n\005users\030\001 \003(\0132\035.google.showcase.v1beta1." + + "User\022\027\n\017next_page_token\030\002 \001(\t2\212\006\n\010Identi" + + "ty\022\363\001\n\nCreateUser\022*.google.showcase.v1be" + + "ta1.CreateUserRequest\032\035.google.showcase." + + "v1beta1.User\"\231\001\332A\034user.display_name,user" + + ".email\332A^user.display_name,user.email,us" + + "er.age,user.nickname,user.enable_notific" + + "ations,user.height_feet\202\323\344\223\002\023\"\016/v1beta1/" + + "users:\001*\022y\n\007GetUser\022\'.google.showcase.v1" + + "beta1.GetUserRequest\032\035.google.showcase.v" + + "1beta1.User\"&\332A\004name\202\323\344\223\002\031\022\027/v1beta1/{na" + + "me=users/*}\022\203\001\n\nUpdateUser\022*.google.show" + + "case.v1beta1.UpdateUserRequest\032\035.google." + + "showcase.v1beta1.User\"*\202\323\344\223\002$2\034/v1beta1/" + + "{user.name=users/*}:\004user\022x\n\nDeleteUser\022" + + "*.google.showcase.v1beta1.DeleteUserRequ" + + "est\032\026.google.protobuf.Empty\"&\332A\004name\202\323\344\223" + + "\002\031*\027/v1beta1/{name=users/*}\022z\n\tListUsers" + + "\022).google.showcase.v1beta1.ListUsersRequ" + + "est\032*.google.showcase.v1beta1.ListUsersR" + + "esponse\"\026\202\323\344\223\002\020\022\016/v1beta1/users\032\021\312A\016loca" + + "lhost:7469Bq\n\033com.google.showcase.v1beta" + + "1P\001Z4github.com/googleapis/gapic-showcas" + + "e/server/genproto\352\002\031Google::Showcase::V1" + + "beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java index 835ce5df0e..c5fd2cdc66 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/MessagingOuterClass.java @@ -142,141 +142,140 @@ public static void registerAllExtensions( "grunning/operations.proto\032\033google/protob" + "uf/empty.proto\032 google/protobuf/field_ma" + "sk.proto\032\037google/protobuf/timestamp.prot" + - "o\032\036google/rpc/error_details.proto\"\344\001\n\004Ro" + - "om\022\014\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004" + - "\342A\001\002\022\023\n\013description\030\003 \001(\t\0225\n\013create_time" + - "\030\004 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + - "\0225\n\013update_time\030\005 \001(\0132\032.google.protobuf." + - "TimestampB\004\342A\001\003:/\352A,\n\034showcase.googleapi" + - "s.com/Room\022\014rooms/{room}\"@\n\021CreateRoomRe" + - "quest\022+\n\004room\030\001 \001(\0132\035.google.showcase.v1" + - "beta1.Room\"E\n\016GetRoomRequest\0223\n\004name\030\001 \001" + - "(\tB%\342A\001\002\372A\036\n\034showcase.googleapis.com/Roo" + - "m\"q\n\021UpdateRoomRequest\022+\n\004room\030\001 \001(\0132\035.g" + - "oogle.showcase.v1beta1.Room\022/\n\013update_ma" + - "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"H\n\021" + - "DeleteRoomRequest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036" + - "\n\034showcase.googleapis.com/Room\"9\n\020ListRo" + - "omsRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_to" + - "ken\030\002 \001(\t\"Z\n\021ListRoomsResponse\022,\n\005rooms\030" + - "\001 \003(\0132\035.google.showcase.v1beta1.Room\022\027\n\017" + - "next_page_token\030\002 \001(\t\"\371\003\n\005Blurb\022\014\n\004name\030" + - "\001 \001(\t\0223\n\004user\030\002 \001(\tB%\342A\001\002\372A\036\n\034showcase.g" + - "oogleapis.com/User\022\016\n\004text\030\003 \001(\tH\000\022\017\n\005im" + - "age\030\004 \001(\014H\000\0225\n\013create_time\030\005 \001(\0132\032.googl" + - "e.protobuf.TimestampB\004\342A\001\003\0225\n\013update_tim" + - "e\030\006 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" + - "\003\022\030\n\016legacy_room_id\030\007 \001(\tH\001\022\030\n\016legacy_us" + - "er_id\030\010 \001(\tH\001:\321\001\352A\315\001\n\035showcase.googleapi" + - "s.com/Blurb\0228users/{user}/profile/blurbs" + - "/legacy/{legacy_user}~{blurb}\022#users/{us" + - "er}/profile/blurbs/{blurb}\022\033rooms/{room}" + - "/blurbs/{blurb}\0220rooms/{room}/blurbs/leg" + - "acy/{legacy_room}.{blurb}B\t\n\007contentB\013\n\t" + - "legacy_id\"{\n\022CreateBlurbRequest\0226\n\006paren" + - "t\030\001 \001(\tB&\342A\001\002\372A\037\022\035showcase.googleapis.co" + - "m/Blurb\022-\n\005blurb\030\002 \001(\0132\036.google.showcase" + - ".v1beta1.Blurb\"G\n\017GetBlurbRequest\0224\n\004nam" + - "e\030\001 \001(\tB&\342A\001\002\372A\037\n\035showcase.googleapis.co" + - "m/Blurb\"t\n\022UpdateBlurbRequest\022-\n\005blurb\030\001" + - " \001(\0132\036.google.showcase.v1beta1.Blurb\022/\n\013" + - "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + - "dMask\"J\n\022DeleteBlurbRequest\0224\n\004name\030\001 \001(" + - "\tB&\342A\001\002\372A\037\n\035showcase.googleapis.com/Blur" + - "b\"r\n\021ListBlurbsRequest\0226\n\006parent\030\001 \001(\tB&" + - "\342A\001\002\372A\037\022\035showcase.googleapis.com/Blurb\022\021" + - "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"]\n" + - "\022ListBlurbsResponse\022.\n\006blurbs\030\001 \003(\0132\036.go" + - "ogle.showcase.v1beta1.Blurb\022\027\n\017next_page" + - "_token\030\002 \001(\t\"\205\001\n\023SearchBlurbsRequest\022\023\n\005" + - "query\030\001 \001(\tB\004\342A\001\002\0222\n\006parent\030\002 \001(\tB\"\372A\037\022\035" + - "showcase.googleapis.com/Blurb\022\021\n\tpage_si" + - "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"A\n\024SearchBl" + - "urbsMetadata\022)\n\nretry_info\030\001 \001(\0132\025.googl" + - "e.rpc.RetryInfo\"_\n\024SearchBlurbsResponse\022" + - ".\n\006blurbs\030\001 \003(\0132\036.google.showcase.v1beta" + - "1.Blurb\022\027\n\017next_page_token\030\002 \001(\t\"\202\001\n\023Str" + - "eamBlurbsRequest\0224\n\004name\030\001 \001(\tB&\342A\001\002\372A\037\022" + - "\035showcase.googleapis.com/Blurb\0225\n\013expire" + - "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + - "\004\342A\001\002\"\321\001\n\024StreamBlurbsResponse\022-\n\005blurb\030" + - "\001 \001(\0132\036.google.showcase.v1beta1.Blurb\022D\n" + - "\006action\030\002 \001(\01624.google.showcase.v1beta1." + - "StreamBlurbsResponse.Action\"D\n\006Action\022\026\n" + - "\022ACTION_UNSPECIFIED\020\000\022\n\n\006CREATE\020\001\022\n\n\006UPD" + - "ATE\020\002\022\n\n\006DELETE\020\003\"#\n\022SendBlurbsResponse\022" + - "\r\n\005names\030\001 \003(\t\"\332\001\n\016ConnectRequest\022G\n\006con" + - "fig\030\001 \001(\01325.google.showcase.v1beta1.Conn" + - "ectRequest.ConnectConfigH\000\022/\n\005blurb\030\002 \001(" + - "\0132\036.google.showcase.v1beta1.BlurbH\000\032C\n\rC" + - "onnectConfig\0222\n\006parent\030\001 \001(\tB\"\372A\037\022\035showc" + - "ase.googleapis.com/BlurbB\t\n\007request2\264\023\n\t" + - "Messaging\022\227\001\n\nCreateRoom\022*.google.showca" + - "se.v1beta1.CreateRoomRequest\032\035.google.sh" + - "owcase.v1beta1.Room\">\332A\"room.display_nam" + - "e,room.description\202\323\344\223\002\023\"\016/v1beta1/rooms" + - ":\001*\022y\n\007GetRoom\022\'.google.showcase.v1beta1" + - ".GetRoomRequest\032\035.google.showcase.v1beta" + - "1.Room\"&\332A\004name\202\323\344\223\002\031\022\027/v1beta1/{name=ro" + - "oms/*}\022\203\001\n\nUpdateRoom\022*.google.showcase." + - "v1beta1.UpdateRoomRequest\032\035.google.showc" + - "ase.v1beta1.Room\"*\202\323\344\223\002$2\034/v1beta1/{room" + - ".name=rooms/*}:\004room\022x\n\nDeleteRoom\022*.goo" + - "gle.showcase.v1beta1.DeleteRoomRequest\032\026" + - ".google.protobuf.Empty\"&\332A\004name\202\323\344\223\002\031*\027/" + - "v1beta1/{name=rooms/*}\022z\n\tListRooms\022).go" + - "ogle.showcase.v1beta1.ListRoomsRequest\032*" + - ".google.showcase.v1beta1.ListRoomsRespon" + - "se\"\026\202\323\344\223\002\020\022\016/v1beta1/rooms\022\366\001\n\013CreateBlu" + - "rb\022+.google.showcase.v1beta1.CreateBlurb" + - "Request\032\036.google.showcase.v1beta1.Blurb\"" + - "\231\001\332A\034parent,blurb.user,blurb.text\332A\035pare" + - "nt,blurb.user,blurb.image\202\323\344\223\002T\" /v1beta" + - "1/{parent=rooms/*}/blurbs:\001*Z-\"(/v1beta1" + - "/{parent=users/*/profile}/blurbs:\001*\022\261\001\n\010" + - "GetBlurb\022(.google.showcase.v1beta1.GetBl" + - "urbRequest\032\036.google.showcase.v1beta1.Blu" + - "rb\"[\332A\004name\202\323\344\223\002N\022 /v1beta1/{name=rooms/" + - "*/blurbs/*}Z*\022(/v1beta1/{name=users/*/pr" + - "ofile/blurbs/*}\022\312\001\n\013UpdateBlurb\022+.google" + - ".showcase.v1beta1.UpdateBlurbRequest\032\036.g" + - "oogle.showcase.v1beta1.Blurb\"n\202\323\344\223\002h2&/v" + - "1beta1/{blurb.name=rooms/*/blurbs/*}:\005bl" + - "urbZ72./v1beta1/{blurb.name=users/*/prof" + - "ile/blurbs/*}:\005blurb\022\257\001\n\013DeleteBlurb\022+.g" + - "oogle.showcase.v1beta1.DeleteBlurbReques" + - "t\032\026.google.protobuf.Empty\"[\332A\004name\202\323\344\223\002N" + - "* /v1beta1/{name=rooms/*/blurbs/*}Z**(/v" + - "1beta1/{name=users/*/profile/blurbs/*}\022\304" + - "\001\n\nListBlurbs\022*.google.showcase.v1beta1." + - "ListBlurbsRequest\032+.google.showcase.v1be" + - "ta1.ListBlurbsResponse\"]\332A\006parent\202\323\344\223\002N\022" + - " /v1beta1/{parent=rooms/*}/blurbsZ*\022(/v1" + - "beta1/{parent=users/*/profile}/blurbs\022\201\002" + - "\n\014SearchBlurbs\022,.google.showcase.v1beta1" + - ".SearchBlurbsRequest\032\035.google.longrunnin" + - "g.Operation\"\243\001\312A,\n\024SearchBlurbsResponse\022" + - "\024SearchBlurbsMetadata\332A\014parent,query\202\323\344\223" + - "\002_\"\'/v1beta1/{parent=rooms/*}/blurbs:sea" + - "rch:\001*Z1\"//v1beta1/{parent=users/*/profi" + - "le}/blurbs:search\022\323\001\n\014StreamBlurbs\022,.goo" + - "gle.showcase.v1beta1.StreamBlurbsRequest" + - "\032-.google.showcase.v1beta1.StreamBlurbsR" + - "esponse\"d\202\323\344\223\002^\"%/v1beta1/{name=rooms/*}" + - "/blurbs:stream:\001*Z2\"-/v1beta1/{name=user" + - "s/*/profile}/blurbs:stream:\001*0\001\022\316\001\n\nSend" + - "Blurbs\022+.google.showcase.v1beta1.CreateB" + - "lurbRequest\032+.google.showcase.v1beta1.Se" + - "ndBlurbsResponse\"d\202\323\344\223\002^\"%/v1beta1/{pare" + - "nt=rooms/*}/blurbs:send:\001*Z2\"-/v1beta1/{" + - "parent=users/*/profile}/blurbs:send:\001*(\001" + - "\022e\n\007Connect\022\'.google.showcase.v1beta1.Co" + - "nnectRequest\032-.google.showcase.v1beta1.S" + - "treamBlurbsResponse(\0010\001\032\021\312A\016localhost:74" + - "69Bq\n\033com.google.showcase.v1beta1P\001Z4git" + - "hub.com/googleapis/gapic-showcase/server" + - "/genproto\352\002\031Google::Showcase::V1beta1b\006p" + - "roto3" + "o\032\036google/rpc/error_details.proto\"\341\001\n\004Ro" + + "om\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003" + + "\340A\002\022\023\n\013description\030\003 \001(\t\0224\n\013create_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003:/\352A,\n\034showcase.googleapis.c" + + "om/Room\022\014rooms/{room}\"@\n\021CreateRoomReque" + + "st\022+\n\004room\030\001 \001(\0132\035.google.showcase.v1bet" + + "a1.Room\"D\n\016GetRoomRequest\0222\n\004name\030\001 \001(\tB" + + "$\340A\002\372A\036\n\034showcase.googleapis.com/Room\"q\n" + + "\021UpdateRoomRequest\022+\n\004room\030\001 \001(\0132\035.googl" + + "e.showcase.v1beta1.Room\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"G\n\021Dele" + + "teRoomRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034sho" + + "wcase.googleapis.com/Room\"9\n\020ListRoomsRe" + + "quest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002" + + " \001(\t\"Z\n\021ListRoomsResponse\022,\n\005rooms\030\001 \003(\013" + + "2\035.google.showcase.v1beta1.Room\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\366\003\n\005Blurb\022\014\n\004name\030\001 \001(\t" + + "\0222\n\004user\030\002 \001(\tB$\340A\002\372A\036\n\034showcase.googlea" + + "pis.com/User\022\016\n\004text\030\003 \001(\tH\000\022\017\n\005image\030\004 " + + "\001(\014H\000\0224\n\013create_time\030\005 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\030\n\016leg" + + "acy_room_id\030\007 \001(\tH\001\022\030\n\016legacy_user_id\030\010 " + + "\001(\tH\001:\321\001\352A\315\001\n\035showcase.googleapis.com/Bl" + + "urb\0228users/{user}/profile/blurbs/legacy/" + + "{legacy_user}~{blurb}\022#users/{user}/prof" + + "ile/blurbs/{blurb}\022\033rooms/{room}/blurbs/" + + "{blurb}\0220rooms/{room}/blurbs/legacy/{leg" + + "acy_room}.{blurb}B\t\n\007contentB\013\n\tlegacy_i" + + "d\"z\n\022CreateBlurbRequest\0225\n\006parent\030\001 \001(\tB" + + "%\340A\002\372A\037\022\035showcase.googleapis.com/Blurb\022-" + + "\n\005blurb\030\002 \001(\0132\036.google.showcase.v1beta1." + + "Blurb\"F\n\017GetBlurbRequest\0223\n\004name\030\001 \001(\tB%" + + "\340A\002\372A\037\n\035showcase.googleapis.com/Blurb\"t\n" + + "\022UpdateBlurbRequest\022-\n\005blurb\030\001 \001(\0132\036.goo" + + "gle.showcase.v1beta1.Blurb\022/\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"I\n\022D" + + "eleteBlurbRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035showcase.googleapis.com/Blurb\"q\n\021ListBl" + + "urbsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035sho" + + "wcase.googleapis.com/Blurb\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"]\n\022ListBlurbsR" + + "esponse\022.\n\006blurbs\030\001 \003(\0132\036.google.showcas" + + "e.v1beta1.Blurb\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\204\001\n\023SearchBlurbsRequest\022\022\n\005query\030\001 \001(\tB" + + "\003\340A\002\0222\n\006parent\030\002 \001(\tB\"\372A\037\022\035showcase.goog" + + "leapis.com/Blurb\022\021\n\tpage_size\030\003 \001(\005\022\022\n\np" + + "age_token\030\004 \001(\t\"A\n\024SearchBlurbsMetadata\022" + + ")\n\nretry_info\030\001 \001(\0132\025.google.rpc.RetryIn" + + "fo\"_\n\024SearchBlurbsResponse\022.\n\006blurbs\030\001 \003" + + "(\0132\036.google.showcase.v1beta1.Blurb\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\200\001\n\023StreamBlurbsRequ" + + "est\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\022\035showcase.goog" + + "leapis.com/Blurb\0224\n\013expire_time\030\002 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\002\"\321\001\n\024Strea" + + "mBlurbsResponse\022-\n\005blurb\030\001 \001(\0132\036.google." + + "showcase.v1beta1.Blurb\022D\n\006action\030\002 \001(\01624" + + ".google.showcase.v1beta1.StreamBlurbsRes" + + "ponse.Action\"D\n\006Action\022\026\n\022ACTION_UNSPECI" + + "FIED\020\000\022\n\n\006CREATE\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE" + + "\020\003\"#\n\022SendBlurbsResponse\022\r\n\005names\030\001 \003(\t\"" + + "\332\001\n\016ConnectRequest\022G\n\006config\030\001 \001(\01325.goo" + + "gle.showcase.v1beta1.ConnectRequest.Conn" + + "ectConfigH\000\022/\n\005blurb\030\002 \001(\0132\036.google.show" + + "case.v1beta1.BlurbH\000\032C\n\rConnectConfig\0222\n" + + "\006parent\030\001 \001(\tB\"\372A\037\022\035showcase.googleapis." + + "com/BlurbB\t\n\007request2\264\023\n\tMessaging\022\227\001\n\nC" + + "reateRoom\022*.google.showcase.v1beta1.Crea" + + "teRoomRequest\032\035.google.showcase.v1beta1." + + "Room\">\332A\"room.display_name,room.descript" + + "ion\202\323\344\223\002\023\"\016/v1beta1/rooms:\001*\022y\n\007GetRoom\022" + + "\'.google.showcase.v1beta1.GetRoomRequest" + + "\032\035.google.showcase.v1beta1.Room\"&\332A\004name" + + "\202\323\344\223\002\031\022\027/v1beta1/{name=rooms/*}\022\203\001\n\nUpda" + + "teRoom\022*.google.showcase.v1beta1.UpdateR" + + "oomRequest\032\035.google.showcase.v1beta1.Roo" + + "m\"*\202\323\344\223\002$2\034/v1beta1/{room.name=rooms/*}:" + + "\004room\022x\n\nDeleteRoom\022*.google.showcase.v1" + + "beta1.DeleteRoomRequest\032\026.google.protobu" + + "f.Empty\"&\332A\004name\202\323\344\223\002\031*\027/v1beta1/{name=r" + + "ooms/*}\022z\n\tListRooms\022).google.showcase.v" + + "1beta1.ListRoomsRequest\032*.google.showcas" + + "e.v1beta1.ListRoomsResponse\"\026\202\323\344\223\002\020\022\016/v1" + + "beta1/rooms\022\366\001\n\013CreateBlurb\022+.google.sho" + + "wcase.v1beta1.CreateBlurbRequest\032\036.googl" + + "e.showcase.v1beta1.Blurb\"\231\001\332A\034parent,blu" + + "rb.user,blurb.text\332A\035parent,blurb.user,b" + + "lurb.image\202\323\344\223\002T\" /v1beta1/{parent=rooms" + + "/*}/blurbs:\001*Z-\"(/v1beta1/{parent=users/" + + "*/profile}/blurbs:\001*\022\261\001\n\010GetBlurb\022(.goog" + + "le.showcase.v1beta1.GetBlurbRequest\032\036.go" + + "ogle.showcase.v1beta1.Blurb\"[\332A\004name\202\323\344\223" + + "\002N\022 /v1beta1/{name=rooms/*/blurbs/*}Z*\022(" + + "/v1beta1/{name=users/*/profile/blurbs/*}" + + "\022\312\001\n\013UpdateBlurb\022+.google.showcase.v1bet" + + "a1.UpdateBlurbRequest\032\036.google.showcase." + + "v1beta1.Blurb\"n\202\323\344\223\002h2&/v1beta1/{blurb.n" + + "ame=rooms/*/blurbs/*}:\005blurbZ72./v1beta1" + + "/{blurb.name=users/*/profile/blurbs/*}:\005" + + "blurb\022\257\001\n\013DeleteBlurb\022+.google.showcase." + + "v1beta1.DeleteBlurbRequest\032\026.google.prot" + + "obuf.Empty\"[\332A\004name\202\323\344\223\002N* /v1beta1/{nam" + + "e=rooms/*/blurbs/*}Z**(/v1beta1/{name=us" + + "ers/*/profile/blurbs/*}\022\304\001\n\nListBlurbs\022*" + + ".google.showcase.v1beta1.ListBlurbsReque" + + "st\032+.google.showcase.v1beta1.ListBlurbsR" + + "esponse\"]\332A\006parent\202\323\344\223\002N\022 /v1beta1/{pare" + + "nt=rooms/*}/blurbsZ*\022(/v1beta1/{parent=u" + + "sers/*/profile}/blurbs\022\201\002\n\014SearchBlurbs\022" + + ",.google.showcase.v1beta1.SearchBlurbsRe" + + "quest\032\035.google.longrunning.Operation\"\243\001\312" + + "A,\n\024SearchBlurbsResponse\022\024SearchBlurbsMe" + + "tadata\332A\014parent,query\202\323\344\223\002_\"\'/v1beta1/{p" + + "arent=rooms/*}/blurbs:search:\001*Z1\"//v1be" + + "ta1/{parent=users/*/profile}/blurbs:sear" + + "ch\022\323\001\n\014StreamBlurbs\022,.google.showcase.v1" + + "beta1.StreamBlurbsRequest\032-.google.showc" + + "ase.v1beta1.StreamBlurbsResponse\"d\202\323\344\223\002^" + + "\"%/v1beta1/{name=rooms/*}/blurbs:stream:" + + "\001*Z2\"-/v1beta1/{name=users/*/profile}/bl" + + "urbs:stream:\001*0\001\022\316\001\n\nSendBlurbs\022+.google" + + ".showcase.v1beta1.CreateBlurbRequest\032+.g" + + "oogle.showcase.v1beta1.SendBlurbsRespons" + + "e\"d\202\323\344\223\002^\"%/v1beta1/{parent=rooms/*}/blu" + + "rbs:send:\001*Z2\"-/v1beta1/{parent=users/*/" + + "profile}/blurbs:send:\001*(\001\022e\n\007Connect\022\'.g" + + "oogle.showcase.v1beta1.ConnectRequest\032-." + + "google.showcase.v1beta1.StreamBlurbsResp" + + "onse(\0010\001\032\021\312A\016localhost:7469Bq\n\033com.googl" + + "e.showcase.v1beta1P\001Z4github.com/googlea" + + "pis/gapic-showcase/server/genproto\352\002\031Goo" + + "gle::Showcase::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java index f54fb7a1ed..13ca249c6c 100644 --- a/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java +++ b/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceOuterClass.java @@ -106,92 +106,91 @@ public static void registerAllExtensions( "\032\031google/api/resource.proto\032\036google/prot" + "obuf/duration.proto\032\033google/protobuf/emp" + "ty.proto\032\037google/protobuf/timestamp.prot" + - "o\032\027google/rpc/status.proto\"\364\001\n\010Sequence\022" + - "\022\n\004name\030\001 \001(\tB\004\342A\001\003\022=\n\tresponses\030\002 \003(\0132*" + - ".google.showcase.v1beta1.Sequence.Respon" + - "se\032X\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google." + + "o\032\027google/rpc/status.proto\"\363\001\n\010Sequence\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022=\n\tresponses\030\002 \003(\0132*." + + "google.showcase.v1beta1.Sequence.Respons" + + "e\032X\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google.r" + + "pc.Status\022(\n\005delay\030\002 \001(\0132\031.google.protob" + + "uf.Duration:;\352A8\n showcase.googleapis.co" + + "m/Sequence\022\024sequences/{sequence}\"\312\002\n\021Str" + + "eamingSequence\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\017\n\007con" + + "tent\030\002 \001(\t\022F\n\tresponses\030\003 \003(\01323.google.s" + + "howcase.v1beta1.StreamingSequence.Respon" + + "se\032p\n\010Response\022\"\n\006status\030\001 \001(\0132\022.google." + "rpc.Status\022(\n\005delay\030\002 \001(\0132\031.google.proto" + - "buf.Duration:;\352A8\n showcase.googleapis.c" + - "om/Sequence\022\024sequences/{sequence}\"\313\002\n\021St" + - "reamingSequence\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\017\n\007c" + - "ontent\030\002 \001(\t\022F\n\tresponses\030\003 \003(\01323.google" + - ".showcase.v1beta1.StreamingSequence.Resp" + - "onse\032p\n\010Response\022\"\n\006status\030\001 \001(\0132\022.googl" + - "e.rpc.Status\022(\n\005delay\030\002 \001(\0132\031.google.pro" + - "tobuf.Duration\022\026\n\016response_index\030\003 \001(\005:W" + - "\352AT\n)showcase.googleapis.com/StreamingSe" + - "quence\022\'streamingSequences/{streaming_se" + - "quence}\"\323\003\n\027StreamingSequenceReport\022\022\n\004n" + - "ame\030\001 \001(\tB\004\342A\001\003\022J\n\010attempts\030\002 \003(\01328.goog" + - "le.showcase.v1beta1.StreamingSequenceRep" + - "ort.Attempt\032\340\001\n\007Attempt\022\026\n\016attempt_numbe" + - "r\030\001 \001(\005\0224\n\020attempt_deadline\030\002 \001(\0132\032.goog" + - "le.protobuf.Timestamp\0221\n\rresponse_time\030\003" + - " \001(\0132\032.google.protobuf.Timestamp\0220\n\ratte" + - "mpt_delay\030\004 \001(\0132\031.google.protobuf.Durati" + - "on\022\"\n\006status\030\005 \001(\0132\022.google.rpc.Status:u" + - "\352Ar\n/showcase.googleapis.com/StreamingSe" + - "quenceReport\022?streamingSequences/{stream" + - "ing_sequence}/streamingSequenceReport\"\234\003" + - "\n\016SequenceReport\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022A\n\010" + - "attempts\030\002 \003(\0132/.google.showcase.v1beta1" + - ".SequenceReport.Attempt\032\340\001\n\007Attempt\022\026\n\016a" + - "ttempt_number\030\001 \001(\005\0224\n\020attempt_deadline\030" + - "\002 \001(\0132\032.google.protobuf.Timestamp\0221\n\rres" + - "ponse_time\030\003 \001(\0132\032.google.protobuf.Times" + - "tamp\0220\n\rattempt_delay\030\004 \001(\0132\031.google.pro" + - "tobuf.Duration\022\"\n\006status\030\005 \001(\0132\022.google." + - "rpc.Status:P\352AM\n&showcase.googleapis.com" + - "/SequenceReport\022#sequences/{sequence}/se" + - "quenceReport\"L\n\025CreateSequenceRequest\0223\n" + - "\010sequence\030\001 \001(\0132!.google.showcase.v1beta" + - "1.Sequence\"h\n\036CreateStreamingSequenceReq" + - "uest\022F\n\022streaming_sequence\030\001 \001(\0132*.googl" + - "e.showcase.v1beta1.StreamingSequence\"Q\n\026" + - "AttemptSequenceRequest\0227\n\004name\030\001 \001(\tB)\342A" + - "\001\002\372A\"\n showcase.googleapis.com/Sequence\"" + - "\202\001\n\037AttemptStreamingSequenceRequest\022@\n\004n" + - "ame\030\001 \001(\tB2\342A\001\002\372A+\n)showcase.googleapis." + - "com/StreamingSequence\022\035\n\017last_fail_index" + - "\030\002 \001(\005B\004\342A\001\001\"3\n AttemptStreamingSequence" + - "Response\022\017\n\007content\030\001 \001(\t\"Y\n\030GetSequence" + - "ReportRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&sh" + - "owcase.googleapis.com/SequenceReport\"k\n!" + - "GetStreamingSequenceReportRequest\022F\n\004nam" + - "e\030\001 \001(\tB8\342A\001\002\372A1\n/showcase.googleapis.co" + - "m/StreamingSequenceReport2\360\010\n\017SequenceSe" + - "rvice\022\224\001\n\016CreateSequence\022..google.showca" + - "se.v1beta1.CreateSequenceRequest\032!.googl" + - "e.showcase.v1beta1.Sequence\"/\332A\010sequence" + - "\202\323\344\223\002\036\"\022/v1beta1/sequences:\010sequence\022\314\001\n" + - "\027CreateStreamingSequence\0227.google.showca" + - "se.v1beta1.CreateStreamingSequenceReques" + - "t\032*.google.showcase.v1beta1.StreamingSeq" + - "uence\"L\332A\022streaming_sequence\202\323\344\223\0021\"\033/v1b" + - "eta1/streamingSequences:\022streaming_seque" + - "nce\022\252\001\n\021GetSequenceReport\0221.google.showc" + - "ase.v1beta1.GetSequenceReportRequest\032\'.g" + - "oogle.showcase.v1beta1.SequenceReport\"9\332" + - "A\004name\202\323\344\223\002,\022*/v1beta1/{name=sequences/*" + - "/sequenceReport}\022\327\001\n\032GetStreamingSequenc" + - "eReport\022:.google.showcase.v1beta1.GetStr" + - "eamingSequenceReportRequest\0320.google.sho" + - "wcase.v1beta1.StreamingSequenceReport\"K\332" + - "A\004name\202\323\344\223\002>\022\022 Date: Wed, 7 Feb 2024 15:50:47 -0500 Subject: [PATCH 42/75] test: fix flaky HttpJsonDirectServerStreamingCallableTest.testOnResponseError (#2444) * increase timeout from 2s to 30s to reduce the chance of DEADLINE_EXCEEDED before the NOT_FOUND message is received * keep separate low timeout for the testDeadlineExceededServerStreaming test * remove mockService reset to speedup tests, as it's no longer necessary Fixes: #1842. --- ...JsonDirectServerStreamingCallableTest.java | 101 +++++++++--------- 1 file changed, 50 insertions(+), 51 deletions(-) diff --git a/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonDirectServerStreamingCallableTest.java b/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonDirectServerStreamingCallableTest.java index 2ebbcffa5a..3fc1724439 100644 --- a/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonDirectServerStreamingCallableTest.java +++ b/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonDirectServerStreamingCallableTest.java @@ -72,42 +72,6 @@ @RunWith(JUnit4.class) public class HttpJsonDirectServerStreamingCallableTest { - private static final ApiMethodDescriptor METHOD_SERVER_STREAMING_RECOGNIZE = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.v1.Fake/ServerStreamingRecognize") - .setHttpMethod("POST") - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/fake/v1/recognize/{blue}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "blue", request.getBlue()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "red", request.getRed()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "*", request.toBuilder().clearBlue().clearRed().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Money.getDefaultInstance()) - .build()) - .setType(MethodType.SERVER_STREAMING) - .build(); - - private MockHttpService mockService; - private static final Color DEFAULT_REQUEST = Color.newBuilder().setRed(0.5f).build(); private static final Color ASYNC_REQUEST = DEFAULT_REQUEST.toBuilder().setGreen(1000).build(); private static final Color ERROR_REQUEST = Color.newBuilder().setRed(-1).build(); @@ -115,7 +79,6 @@ public class HttpJsonDirectServerStreamingCallableTest { Money.newBuilder().setCurrencyCode("USD").setUnits(127).build(); private static final Money DEFAULTER_RESPONSE = Money.newBuilder().setCurrencyCode("UAH").setUnits(255).build(); - private static final int AWAIT_TERMINATION_SECONDS = 10; private ServerStreamingCallSettings streamingCallSettings; private ServerStreamingCallable streamingCallable; @@ -123,12 +86,51 @@ public class HttpJsonDirectServerStreamingCallableTest { private ManagedHttpJsonChannel channel; private ClientContext clientContext; private ExecutorService executorService; + private MockHttpService mockService; + ApiMethodDescriptor methodServerStreamingRecognize; @Before public void initialize() throws IOException { - mockService = + initialize(Duration.ofSeconds(30)); + } + + public void initialize(Duration timeout) throws IOException { + this.methodServerStreamingRecognize = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.v1.Fake/ServerStreamingRecognize") + .setHttpMethod("POST") + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/fake/v1/recognize/{blue}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "blue", request.getBlue()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "red", request.getRed()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", request.toBuilder().clearBlue().clearRed().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Money.getDefaultInstance()) + .build()) + .setType(MethodType.SERVER_STREAMING) + .build(); + this.mockService = new MockHttpService( - Collections.singletonList(METHOD_SERVER_STREAMING_RECOGNIZE), "google.com:443"); + Collections.singletonList(methodServerStreamingRecognize), "google.com:443"); executorService = Executors.newFixedThreadPool(2); channel = new ManagedHttpJsonInterceptorChannel( @@ -148,28 +150,22 @@ public void initialize() throws IOException { .setTransportChannel(HttpJsonTransportChannel.create(channel)) .setDefaultCallContext( HttpJsonCallContext.of(channel, HttpJsonCallOptions.DEFAULT) - .withTimeout(Duration.ofSeconds(3)) + .withTimeout(timeout) .withEndpointContext(endpointContext)) .build(); streamingCallSettings = ServerStreamingCallSettings.newBuilder().build(); streamingCallable = HttpJsonCallableFactory.createServerStreamingCallable( - HttpJsonCallSettings.create(METHOD_SERVER_STREAMING_RECOGNIZE), + HttpJsonCallSettings.create(methodServerStreamingRecognize), streamingCallSettings, clientContext); - - mockService.reset(); } @After public void destroy() throws InterruptedException { executorService.shutdown(); channel.shutdown(); - - executorService.awaitTermination(AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); - channel.awaitTermination(AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); - mockService.reset(); } @Test @@ -178,7 +174,7 @@ public void testBadContext() { // Create a local callable with a bad context ServerStreamingCallable streamingCallable = HttpJsonCallableFactory.createServerStreamingCallable( - HttpJsonCallSettings.create(METHOD_SERVER_STREAMING_RECOGNIZE), + HttpJsonCallSettings.create(this.methodServerStreamingRecognize), streamingCallSettings, clientContext .toBuilder() @@ -337,9 +333,12 @@ public void testBlockingServerStreaming() { // This test ensures that the server-side streaming does not exceed the timeout value @Test - public void testDeadlineExceededServerStreaming() throws InterruptedException { + public void testDeadlineExceededServerStreaming() throws InterruptedException, IOException { + // set a low timeout to trigger deadline-exceeded sooner + initialize(Duration.ofSeconds(1)); + mockService.addResponse( - new Money[] {DEFAULT_RESPONSE, DEFAULTER_RESPONSE}, java.time.Duration.ofSeconds(5)); + new Money[] {DEFAULT_RESPONSE, DEFAULTER_RESPONSE}, java.time.Duration.ofSeconds(30)); Color request = Color.newBuilder().setRed(0.5f).build(); CountDownLatch latch = new CountDownLatch(1); MoneyObserver moneyObserver = new MoneyObserver(false, latch); @@ -349,7 +348,7 @@ public void testDeadlineExceededServerStreaming() throws InterruptedException { moneyObserver.controller.request(2); // Set the latch's await time to above the context's timeout value to ensure that // the latch has been released. - Truth.assertThat(latch.await(5000, TimeUnit.MILLISECONDS)).isTrue(); + Truth.assertThat(latch.await(30, TimeUnit.SECONDS)).isTrue(); Truth.assertThat(moneyObserver.error).isInstanceOf(DeadlineExceededException.class); Truth.assertThat(moneyObserver.error).hasMessageThat().isEqualTo("Deadline exceeded"); From aae5f092ac1663916f3215fe359337a7259ab41b Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Wed, 7 Feb 2024 22:51:42 +0000 Subject: [PATCH 43/75] feat: add `generate_repo.py` (#2431) In this PR: - Add `generate_repo.py` to generate libraries defined in a configuration file. - Regenerate `.repo-metadata.json` - Generate `.OwlBot.yaml` and `owlbot.py` for new clients - Invoke `generate_composed_library.py` to generate multiple versions of a GAPIC library. - Apply repo-level post processing using python - Regenerate root `pom.xml` - Regenerate `gapic-libraries-bom/pom.xml` - Format python script using `black`. - Add unit tests for utility functions. - Add an integration test using python, replacing shell integration tests. - Add a python lint check in CI. This is [step 2](https://docs.google.com/document/d/1JiCcG3X7lnxaJErKe0ES_JkyU7ECb40nf2Xez3gWvuo/edit?pli=1&tab=t.0#bookmark=id.h3n0hcp3ch2m) of milestone 2 of hermetic build project. --- .../workflows/verify_library_generation.yaml | 49 +- .gitignore | 4 + library_generation/__init__.py | 0 .../generate_composed_library.py | 263 ++++---- library_generation/generate_repo.py | 111 ++++ library_generation/main.py | 77 --- library_generation/model/GapicConfig.py | 9 - library_generation/model/GenerationConfig.py | 91 --- library_generation/model/Library.py | 46 -- library_generation/model/LibraryConfig.py | 46 -- library_generation/model/bom_config.py | 45 ++ library_generation/model/gapic_config.py | 24 + .../{ClientInputs.py => gapic_inputs.py} | 65 +- library_generation/model/generation_config.py | 112 ++++ library_generation/model/library_config.py | 65 ++ library_generation/model/repo_config.py | 38 ++ .../get_generator_version_from_workspace.sh | 2 - library_generation/new_client/new-client.py | 424 ------------- library_generation/new_client/requirements.in | 8 - .../new_client/requirements.txt | 232 ------- library_generation/new_client/templates.py | 33 - library_generation/owlbot/bin/entrypoint.sh | 2 +- library_generation/postprocess_library.sh | 20 +- .../generate_gapic_bom.sh | 60 -- .../generate_root_pom.sh | 13 - .../templates/gapic-libraries-bom.xml.j2 | 37 ++ .../{new_client => }/templates/owlbot.py.j2 | 0 .../templates/owlbot.yaml.monorepo.j2 | 2 +- library_generation/templates/root-pom.xml.j2 | 88 +++ library_generation/test/compare_poms.py | 185 +++--- .../test/generate_library_integration_test.sh | 152 ----- library_generation/test/integration_tests.py | 148 +++++ .../resources/goldens/.OwlBot-golden.yaml | 35 ++ .../goldens/.repo-metadata-golden.json | 18 + .../test/resources/goldens/owlbot-golden.py | 36 ++ .../google-cloud-java/generation_config.yaml | 104 +--- .../java-bigtable/generation_config.yaml | 12 +- ...BUILD_service_config_relative_target.bazel | 3 + .../BUILD_service_yaml_absolute_target.bazel | 3 + .../misc/{testversions.txt => versions.txt} | 0 .../gapic-libraries-bom/pom-golden.xml | 45 ++ .../java-dns/pom.xml | 9 + .../google-cloud-service-control-bom/pom.xml | 8 + .../java-tasks/google-cloud-tasks-bom/pom.xml | 8 + .../pom-golden.xml | 88 +++ .../test_repo_level_postprocess/versions.txt | 4 + library_generation/test/unit_tests.py | 535 ++++++++++------ library_generation/utilities.py | 569 ++++++++++++++---- library_generation/utilities.sh | 2 +- 49 files changed, 2085 insertions(+), 1845 deletions(-) create mode 100644 library_generation/__init__.py create mode 100644 library_generation/generate_repo.py delete mode 100644 library_generation/main.py delete mode 100644 library_generation/model/GapicConfig.py delete mode 100644 library_generation/model/GenerationConfig.py delete mode 100644 library_generation/model/Library.py delete mode 100644 library_generation/model/LibraryConfig.py create mode 100644 library_generation/model/bom_config.py create mode 100644 library_generation/model/gapic_config.py rename library_generation/model/{ClientInputs.py => gapic_inputs.py} (78%) create mode 100644 library_generation/model/generation_config.py create mode 100644 library_generation/model/library_config.py create mode 100644 library_generation/model/repo_config.py delete mode 100755 library_generation/new_client/get_generator_version_from_workspace.sh delete mode 100644 library_generation/new_client/new-client.py delete mode 100644 library_generation/new_client/requirements.in delete mode 100644 library_generation/new_client/requirements.txt delete mode 100644 library_generation/new_client/templates.py delete mode 100755 library_generation/repo-level-postprocess/generate_gapic_bom.sh delete mode 100755 library_generation/repo-level-postprocess/generate_root_pom.sh create mode 100644 library_generation/templates/gapic-libraries-bom.xml.j2 rename library_generation/{new_client => }/templates/owlbot.py.j2 (100%) rename library_generation/{new_client => }/templates/owlbot.yaml.monorepo.j2 (99%) create mode 100644 library_generation/templates/root-pom.xml.j2 delete mode 100755 library_generation/test/generate_library_integration_test.sh create mode 100644 library_generation/test/integration_tests.py create mode 100644 library_generation/test/resources/goldens/.OwlBot-golden.yaml create mode 100644 library_generation/test/resources/goldens/.repo-metadata-golden.json create mode 100644 library_generation/test/resources/goldens/owlbot-golden.py create mode 100644 library_generation/test/resources/misc/BUILD_service_config_relative_target.bazel create mode 100644 library_generation/test/resources/misc/BUILD_service_yaml_absolute_target.bazel rename library_generation/test/resources/misc/{testversions.txt => versions.txt} (100%) create mode 100644 library_generation/test/resources/test_repo_level_postprocess/gapic-libraries-bom/pom-golden.xml create mode 100644 library_generation/test/resources/test_repo_level_postprocess/java-dns/pom.xml create mode 100644 library_generation/test/resources/test_repo_level_postprocess/java-service-control/google-cloud-service-control-bom/pom.xml create mode 100644 library_generation/test/resources/test_repo_level_postprocess/java-tasks/google-cloud-tasks-bom/pom.xml create mode 100644 library_generation/test/resources/test_repo_level_postprocess/pom-golden.xml create mode 100644 library_generation/test/resources/test_repo_level_postprocess/versions.txt diff --git a/.github/workflows/verify_library_generation.yaml b/.github/workflows/verify_library_generation.yaml index 0b4ae1b8ed..f3dc825c85 100644 --- a/.github/workflows/verify_library_generation.yaml +++ b/.github/workflows/verify_library_generation.yaml @@ -13,9 +13,7 @@ jobs: strategy: matrix: java: [ 11 ] - os: [ ubuntu-22.04, macos-12 ] - post_processing: [ 'true', 'false' ] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 @@ -45,35 +43,13 @@ jobs: pushd library_generation pip install -r requirements.in popd - - - name: install utils (macos) - if: matrix.os == 'macos-12' - shell: bash - run: | - brew update --preinstall - # we need the `realpath` command to be available - brew install coreutils - - name: install docker (ubuntu) - if: matrix.os == 'ubuntu-22.04' - shell: bash - run: | - set -x - # install docker - sudo apt install containerd -y - sudo apt install -y docker.io docker-compose - - # launch docker - sudo systemctl start docker - name: Run integration tests - # we don't run ITs with postprocessing on macos because one of its dependencies "synthtool" is designed to run on linux only - if: matrix.os == 'ubuntu-22.04' || matrix.post_processing == 'false' shell: bash run: | + set -x git config --global user.email "github-workflow@github.com" git config --global user.name "Github Workflow" - library_generation/test/generate_library_integration_test.sh \ - --googleapis_gen_url https://cloud-java-bot:${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }}@github.com/googleapis/googleapis-gen.git \ - --enable_postprocessing "${{ matrix.post_processing }}" + python -m unittest library_generation/test/integration_tests.py unit_tests: strategy: matrix: @@ -106,7 +82,7 @@ jobs: run: | set -x python -m unittest library_generation/test/unit_tests.py - lint: + lint-shell: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 @@ -116,3 +92,20 @@ jobs: scandir: 'library_generation' format: tty severity: error + lint-python: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: install python dependencies + shell: bash + run: | + set -ex + pushd library_generation + pip install -r requirements.in + popd + - name: Lint + shell: bash + run: | + # exclude generated golden files + # exclude owlbot until further refaction + black --check library_generation --exclude "(library_generation/owlbot)|(library_generation/test/resources/goldens)" diff --git a/.gitignore b/.gitignore index 3da2d8a7d2..a9b6f36914 100644 --- a/.gitignore +++ b/.gitignore @@ -19,8 +19,12 @@ target/ # Python **/__pycache__/ +.venv # library generation output/ library_generation/output/ +library_generation/test/output +library_generation/test/googleapis +library_generation/test/resources/integration/golden showcase/scripts/output/ diff --git a/library_generation/__init__.py b/library_generation/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/library_generation/generate_composed_library.py b/library_generation/generate_composed_library.py index d5beec733b..6f8216f511 100755 --- a/library_generation/generate_composed_library.py +++ b/library_generation/generate_composed_library.py @@ -1,3 +1,18 @@ +#!/usr/bin/env python3 +# Copyright 2024 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. + """ This script allows generation of libraries that are composed of more than one service version. It is achieved by calling `generate_library.sh` without @@ -12,130 +27,146 @@ - A "grafeas" folder found in the googleapis/googleapis repository Note: googleapis repo is found in https://github.com/googleapis/googleapis. """ - -import click -import utilities as util import os -import sys -import subprocess -import json -from model.GenerationConfig import GenerationConfig -from model.LibraryConfig import LibraryConfig -from model.ClientInputs import parse as parse_build_file +from pathlib import Path +from typing import List +import library_generation.utilities as util +from library_generation.model.generation_config import GenerationConfig +from library_generation.model.gapic_config import GapicConfig +from library_generation.model.gapic_inputs import GapicInputs +from library_generation.model.library_config import LibraryConfig +from library_generation.model.gapic_inputs import parse as parse_build_file script_dir = os.path.dirname(os.path.realpath(__file__)) -""" -Main function in charge of generating libraries composed of more than one -service or service version. -Arguments - - config: a GenerationConfig object representing a parsed configuration - yaml - - library: a LibraryConfig object contained inside config, passed here for - convenience and to prevent all libraries to be processed - - enable_postprocessing: true if postprocessing should be done on the generated - libraries - - repository_path: path to the repository where the generated files will be - sent. If not specified, it will default to the one defined in the configuration yaml - and will be downloaded. The versions file will be inferred from this folder -""" + def generate_composed_library( config: GenerationConfig, + library_path: str, library: LibraryConfig, - repository_path: str, - enable_postprocessing: bool = True, + output_folder: str, + versions_file: str, ) -> None: - output_folder = util.sh_util('get_output_folder') - - print(f'output_folder: {output_folder}') - print('library: ', library) - os.makedirs(output_folder, exist_ok=True) - - googleapis_commitish = config.googleapis_commitish - if library.googleapis_commitish is not None: - googleapis_commitish = library.googleapis_commitish - print('using library-specific googleapis commitish: ' + googleapis_commitish) - else: - print('using common googleapis_commitish') - - print('removing old googleapis folders and files') - util.delete_if_exists(f'{output_folder}/google') - util.delete_if_exists(f'{output_folder}/grafeas') - - print('downloading googleapis') - util.sh_util(f'download_googleapis_files_and_folders "{output_folder}" "{googleapis_commitish}"') - - is_monorepo = len(config.libraries) > 1 + """ + Generate libraries composed of more than one service or service version + :param config: a GenerationConfig object representing a parsed configuration + yaml + :param library_path: the path to which the generated file goes + :param library: a LibraryConfig object contained inside config, passed here + for convenience and to prevent all libraries to be processed + :param output_folder: + :param versions_file: + :return None + """ + util.pull_api_definition( + config=config, library=library, output_folder=output_folder + ) + + is_monorepo = util.check_monorepo(config=config) + base_arguments = __construct_tooling_arg(config=config) + owlbot_cli_source_folder = util.sh_util("mktemp -d") + os.makedirs(f"{library_path}", exist_ok=True) + for gapic in library.gapic_configs: + build_file_folder = Path(f"{output_folder}/{gapic.proto_path}").resolve() + print(f"build_file_folder: {build_file_folder}") + gapic_inputs = parse_build_file(build_file_folder, gapic.proto_path) + # generate prerequisite files (.repo-metadata.json, .OwlBot.yaml, + # owlbot.py) here because transport is parsed from BUILD.bazel, + # which lives in a versioned proto_path. + util.generate_prerequisite_files( + library=library, + proto_path=util.remove_version_from(gapic.proto_path), + transport=gapic_inputs.transport, + library_path=library_path, + ) + service_version = gapic.proto_path.split("/")[-1] + temp_destination_path = f"java-{library.api_shortname}-{service_version}" + effective_arguments = __construct_effective_arg( + base_arguments=base_arguments, + gapic=gapic, + gapic_inputs=gapic_inputs, + temp_destination_path=temp_destination_path, + ) + print("arguments: ") + print(effective_arguments) + print(f"Generating library from {gapic.proto_path} to {library_path}") + util.run_process_and_print_output( + ["bash", f"{script_dir}/generate_library.sh", *effective_arguments], + "Library generation", + ) + + util.sh_util( + f'build_owlbot_cli_source_folder "{library_path}"' + + f' "{owlbot_cli_source_folder}" "{output_folder}/{temp_destination_path}"' + + f' "{gapic.proto_path}"', + cwd=output_folder, + ) - base_arguments = [] - base_arguments += util.create_argument('gapic_generator_version', config) - base_arguments += util.create_argument('grpc_version', config) - base_arguments += util.create_argument('protobuf_version', config) - - library_name = f'java-{library.api_shortname}' - library_path = None - - versions_file = '' - if is_monorepo: - print('this is a monorepo library') - destination_path = config.destination_path + '/' + library_name - library_folder = destination_path.split('/')[-1] - if repository_path is None: - print(f'sparse_cloning monorepo with {library_name}') - repository_path = f'{output_folder}/{config.destination_path}' - clone_out = util.sh_util(f'sparse_clone "https://github.com/googleapis/{MONOREPO_NAME}.git" "{library_folder} google-cloud-pom-parent google-cloud-jar-parent versions.txt .github"', cwd=output_folder) - print(clone_out) - library_path = f'{repository_path}/{library_name}' - versions_file = f'{repository_path}/versions.txt' - else: - print('this is a HW library') - destination_path = library_name - if repository_path is None: - repository_path = f'{output_folder}/{destination_path}' - util.delete_if_exists(f'{output_folder}/{destination_path}') - clone_out = util.sh_util(f'git clone "https://github.com/googleapis/{destination_path}.git"', cwd=output_folder) - print(clone_out) - library_path = f'{repository_path}' - versions_file = f'{repository_path}/versions.txt' - - owlbot_cli_source_folder = util.sh_util('mktemp -d') - for gapic in library.gapic_configs: - - effective_arguments = list(base_arguments) - effective_arguments += util.create_argument('proto_path', gapic) - - build_file_folder = f'{output_folder}/{gapic.proto_path}' - print(f'build_file_folder: {build_file_folder}') - client_inputs = parse_build_file(build_file_folder, gapic.proto_path) - effective_arguments += [ - '--proto_only', client_inputs.proto_only, - '--gapic_additional_protos', client_inputs.additional_protos, - '--transport', client_inputs.transport, - '--rest_numeric_enums', client_inputs.rest_numeric_enum, - '--gapic_yaml', client_inputs.gapic_yaml, - '--service_config', client_inputs.service_config, - '--service_yaml', client_inputs.service_yaml, - '--include_samples', client_inputs.include_samples, - ] - service_version = gapic.proto_path.split('/')[-1] - temp_destination_path = f'java-{library.api_shortname}-{service_version}' - effective_arguments += [ '--destination_path', temp_destination_path ] - print('arguments: ') - print(effective_arguments) - print(f'Generating library from {gapic.proto_path} to {destination_path}...') - util.run_process_and_print_output(['bash', '-x', f'{script_dir}/generate_library.sh', - *effective_arguments], 'Library generation') - - - if enable_postprocessing: - util.sh_util(f'build_owlbot_cli_source_folder "{library_path}"' - + f' "{owlbot_cli_source_folder}" "{output_folder}/{temp_destination_path}"' - + f' "{gapic.proto_path}"', - cwd=output_folder) - - if enable_postprocessing: # call postprocess library - util.run_process_and_print_output([f'{script_dir}/postprocess_library.sh', - f'{library_path}', '', versions_file, owlbot_cli_source_folder, - config.owlbot_cli_image, config.synthtool_commitish, str(is_monorepo).lower()], 'Library postprocessing') + util.run_process_and_print_output( + [ + f"{script_dir}/postprocess_library.sh", + f"{library_path}", + "", + versions_file, + owlbot_cli_source_folder, + config.owlbot_cli_image, + config.synthtool_commitish, + str(is_monorepo).lower(), + ], + "Library postprocessing", + ) + + +def __construct_tooling_arg(config: GenerationConfig) -> List[str]: + """ + Construct arguments of tooling versions used in generate_library.sh + :param config: the generation config + :return: arguments containing tooling versions + """ + arguments = [] + arguments += util.create_argument("gapic_generator_version", config) + arguments += util.create_argument("grpc_version", config) + arguments += util.create_argument("protobuf_version", config) + + return arguments + + +def __construct_effective_arg( + base_arguments: List[str], + gapic: GapicConfig, + gapic_inputs: GapicInputs, + temp_destination_path: str, +) -> List[str]: + """ + Construct arguments consist attributes of a GAPIC library which used in + generate_library.sh + :param base_arguments: arguments consist of tooling versions + :param gapic: an object of GapicConfig + :param gapic_inputs: an object of GapicInput + :param temp_destination_path: the path to which the generated library goes + :return: arguments containing attributes to generate a GAPIC library + """ + arguments = list(base_arguments) + arguments += util.create_argument("proto_path", gapic) + arguments += [ + "--proto_only", + gapic_inputs.proto_only, + "--gapic_additional_protos", + gapic_inputs.additional_protos, + "--transport", + gapic_inputs.transport, + "--rest_numeric_enums", + gapic_inputs.rest_numeric_enum, + "--gapic_yaml", + gapic_inputs.gapic_yaml, + "--service_config", + gapic_inputs.service_config, + "--service_yaml", + gapic_inputs.service_yaml, + "--include_samples", + gapic_inputs.include_samples, + ] + arguments += ["--destination_path", temp_destination_path] + return arguments diff --git a/library_generation/generate_repo.py b/library_generation/generate_repo.py new file mode 100644 index 0000000000..85c10c029f --- /dev/null +++ b/library_generation/generate_repo.py @@ -0,0 +1,111 @@ +#!/usr/bin/env python3 +# Copyright 2024 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. + +import click +import library_generation.utilities as util +from library_generation.generate_composed_library import generate_composed_library +from library_generation.model.generation_config import from_yaml + + +@click.group(invoke_without_command=False) +@click.pass_context +@click.version_option(message="%(version)s") +def main(ctx): + pass + + +@main.command() +@click.option( + "--generation-config-yaml", + required=True, + type=str, + help=""" + Path to generation_config.yaml that contains the metadata about + library generation + """, +) +@click.option( + "--target-library-api-shortname", + required=False, + type=str, + help=""" + If specified, only the `library` whose api_shortname equals to + target-library-api-shortname will be generated. + If not specified, all libraries in the configuration yaml will be generated. + """, +) +@click.option( + "--repository-path", + required=False, + default=".", + type=str, + help=""" + If specified, the generated files will be sent to this location. + If not specified, the repository will be generated to the current working + directory. + """, +) +def generate( + generation_config_yaml: str, + target_library_api_shortname: str, + repository_path: str, +): + generate_from_yaml( + generation_config_yaml=generation_config_yaml, + repository_path=repository_path, + target_library_api_shortname=target_library_api_shortname, + ) + + +def generate_from_yaml( + generation_config_yaml: str, + repository_path: str, + target_library_api_shortname: str = None, +) -> None: + """ + Parses a config yaml and generates libraries via + generate_composed_library.py + """ + config = from_yaml(generation_config_yaml) + target_libraries = config.libraries + if target_library_api_shortname is not None: + target_libraries = [ + library + for library in config.libraries + if library.api_shortname == target_library_api_shortname + ] + + repo_config = util.prepare_repo( + gen_config=config, library_config=target_libraries, repo_path=repository_path + ) + + for library_path, library in repo_config.libraries.items(): + print(f"generating library {library.api_shortname}") + + generate_composed_library( + config=config, + library_path=library_path, + library=library, + output_folder=repo_config.output_folder, + versions_file=repo_config.versions_file, + ) + + util.repo_level_post_process( + repository_path=repository_path, versions_file=repo_config.versions_file + ) + + +if __name__ == "__main__": + main() diff --git a/library_generation/main.py b/library_generation/main.py deleted file mode 100644 index 282e0283fd..0000000000 --- a/library_generation/main.py +++ /dev/null @@ -1,77 +0,0 @@ -""" -Parses a config yaml and generates libraries via generate_composed_library.py -""" - -import click -from generate_composed_library import generate_composed_library -from typing import Dict -from model.GenerationConfig import GenerationConfig -from collections.abc import Sequence -from absl import app - -@click.group(invoke_without_command=False) -@click.pass_context -@click.version_option(message="%(version)s") -def main(ctx): - pass - -@main.command() -@click.option( - "--generation-config-yaml", - required=True, - type=str, - help=""" - Path to generation_config.yaml that contains the metadata about library generation - """ -) -@click.option( - "--enable-postprocessing", - required=False, - default=True, - type=bool, - help=""" - Path to repository where generated files will be merged into, via owlbot copy-code. - Specifying this option enables postprocessing - """ -) -@click.option( - "--target-library-api-shortname", - required=False, - type=str, - help=""" - If specified, only the `library` with api_shortname = target-library-api-shortname will - be generated. If not specified, all libraries in the configuration yaml will be generated - """ -) -@click.option( - "--repository-path", - required=False, - type=str, - help=""" - If specified, the generated files will be sent to this location. If not specified, the - repository will be pulled into output_folder and move the generated files there - """ -) -def generate_from_yaml( - generation_config_yaml: str, - enable_postprocessing: bool, - target_library_api_shortname: str, - repository_path: str -) -> None: - config = GenerationConfig.from_yaml(generation_config_yaml) - target_libraries = config.libraries - if target_library_api_shortname is not None: - target_libraries = [library for library in config.libraries - if library.api_shortname == target_library_api_shortname] - for library in target_libraries: - print(f'generating library {library.api_shortname}') - generate_composed_library( - config, library, repository_path, enable_postprocessing - ) - - - - - -if __name__ == "__main__": - main() diff --git a/library_generation/model/GapicConfig.py b/library_generation/model/GapicConfig.py deleted file mode 100644 index be99b0a35f..0000000000 --- a/library_generation/model/GapicConfig.py +++ /dev/null @@ -1,9 +0,0 @@ -""" -Class that represents a GAPICs single entry, inside a `LibraryConfig` in a generation_config.yaml -""" -class GapicConfig: - def __init__( - self, - proto_path: str, - ): - self.proto_path = proto_path diff --git a/library_generation/model/GenerationConfig.py b/library_generation/model/GenerationConfig.py deleted file mode 100644 index 77273b10eb..0000000000 --- a/library_generation/model/GenerationConfig.py +++ /dev/null @@ -1,91 +0,0 @@ -""" -Class that represents the root of a generation_config.yaml -""" -import yaml -from typing import List, Optional, Dict -from .LibraryConfig import LibraryConfig -from .GapicConfig import GapicConfig - - -class GenerationConfig: - def __init__( - self, - gapic_generator_version: str, - grpc_version: Optional[str], - protobuf_version: Optional[str], - googleapis_commitish: str, - owlbot_cli_image: str, - synthtool_commitish: str, - destination_path: Optional[str], - libraries: List[LibraryConfig], - ): - self.gapic_generator_version = gapic_generator_version - self.grpc_version = grpc_version - self.protobuf_version = protobuf_version - self.googleapis_commitish = googleapis_commitish - self.owlbot_cli_image = owlbot_cli_image - self.synthtool_commitish = synthtool_commitish - self.destination_path = destination_path - self.libraries = libraries - - """ - Parses a yaml located in path_to_yaml. Returns the parsed configuration represented - by the "model" classes - """ - @staticmethod - def from_yaml(path_to_yaml: str): - config = None - with open(path_to_yaml, 'r') as file_stream: - config = yaml.load(file_stream, yaml.Loader) - - libraries = _required(config, 'libraries') - - parsed_libraries = list() - for library in libraries: - gapics = _required(library, 'GAPICs') - - parsed_gapics = list() - for gapic in gapics: - proto_path = _required(gapic, 'proto_path') - new_gapic = GapicConfig(proto_path) - parsed_gapics.append(new_gapic) - - new_library = LibraryConfig( - _required(library, 'api_shortname'), - _optional(library, 'name_pretty', None), - _required(library, 'library_type'), - _optional(library, 'artifact_id', None), - _optional(library, 'api_description', None), - _optional(library, 'product_documentation', None), - _optional(library, 'client_documentation', None), - _optional(library, 'rest_documentation', None), - _optional(library, 'rpc_documentation', None), - parsed_gapics, - _optional(library, 'googleapis_commitish', None), - _optional(library, 'group_id', 'com.google.cloud'), - _optional(library, 'requires_billing', None), - ) - parsed_libraries.append(new_library) - - parsed_config = GenerationConfig( - _required(config, 'gapic_generator_version'), - _optional(config, 'grpc_version', None), - _optional(config, 'protobuf_version', None), - _required(config, 'googleapis_commitish'), - _required(config, 'owlbot_cli_image'), - _required(config, 'synthtool_commitish'), - _optional(config, 'destination_path', None), - parsed_libraries - ) - - return parsed_config - -def _required(config: Dict, key: str): - if key not in config: - raise ValueError(f'required key {key} not found in yaml') - return config[key] - -def _optional(config: Dict, key: str, default: any): - if key not in config: - return default - return config[key] diff --git a/library_generation/model/Library.py b/library_generation/model/Library.py deleted file mode 100644 index e1449443ba..0000000000 --- a/library_generation/model/Library.py +++ /dev/null @@ -1,46 +0,0 @@ -""" -Class that represents a library in a generation_config.yaml file -""" -from typing import Dict, List, Optional -from enum import Enum -from .GapicConfig import GapicConfig - -""" -Two possible library types: - - GAPIC_AUTO: pure generated library - - GAPIC_COMBO: generated library with a handwritten layer -""" -class _LibraryType(Enum): - GAPIC_AUTO = 1 - GAPIC_COMBO = 2 - -class LibraryConfig: - def __init__( - self, - api_shortname: str, - name_pretty: Optional[str], - library_type: _LibraryType, - artifact_id: Optional[str], - api_description: Optional[str], - product_documentation: Optional[str], - client_documentation: Optional[str], - rest_documentation: Optional[str], - rpc_documentation: Optional[str], - gapicConfigs: List[GapicConfig], - googleapis_commitish: Optional[str], - group_id: Optional[str] = 'com.google.cloud', - requires_billing: Optional[bool] = True, - ): - self.api_shortname = api_shortname - self.name_pretty = name_pretty - self.library_type = library_type - self.artifact_id = artifact_id - self.requires_billing = requires_billing - self.api_description = api_description - self.product_documentation = product_documentation - self.client_documentation = client_documentation - self.rest_documentation = rest_documentation - self.rpc_documentation = rpc_documentation - self.group_id = group_id - self.gapicConfigs = gapicConfigs - self.googleapis_commitish = googleapis_commitish diff --git a/library_generation/model/LibraryConfig.py b/library_generation/model/LibraryConfig.py deleted file mode 100644 index a0d09351ed..0000000000 --- a/library_generation/model/LibraryConfig.py +++ /dev/null @@ -1,46 +0,0 @@ -""" -Class that represents a library in a generation_config.yaml file -""" -from typing import Dict, List, Optional -from enum import Enum -from .GapicConfig import GapicConfig - -""" -Two possible library types: - - GAPIC_AUTO: pure generated library - - GAPIC_COMBO: generated library with a handwritten layer -""" -class _LibraryType(Enum): - GAPIC_AUTO = 1 - GAPIC_COMBO = 2 - -class LibraryConfig: - def __init__( - self, - api_shortname: str, - name_pretty: Optional[str], - library_type: _LibraryType, - artifact_id: Optional[str], - api_description: Optional[str], - product_documentation: Optional[str], - client_documentation: Optional[str], - rest_documentation: Optional[str], - rpc_documentation: Optional[str], - gapic_configs: List[GapicConfig], - googleapis_commitish: Optional[str], - group_id: Optional[str] = 'com.google.cloud', - requires_billing: Optional[bool] = True, - ): - self.api_shortname = api_shortname - self.name_pretty = name_pretty - self.library_type = library_type - self.artifact_id = artifact_id - self.requires_billing = requires_billing - self.api_description = api_description - self.product_documentation = product_documentation - self.client_documentation = client_documentation - self.rest_documentation = rest_documentation - self.rpc_documentation = rpc_documentation - self.group_id = group_id - self.gapic_configs = gapic_configs - self.googleapis_commitish = googleapis_commitish diff --git a/library_generation/model/bom_config.py b/library_generation/model/bom_config.py new file mode 100644 index 0000000000..b562407eb7 --- /dev/null +++ b/library_generation/model/bom_config.py @@ -0,0 +1,45 @@ +#!/usr/bin/env python3 +# Copyright 2024 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. + + +class BomConfig: + """ + Class that represents an entry in dependencyManagement section. + """ + + def __init__( + self, + group_id: str, + artifact_id: str, + version: str, + version_annotation: str, + is_import: bool = True, + ): + self.group_id = group_id + self.artifact_id = artifact_id + self.version = version + self.version_annotation = version_annotation + self.is_import = is_import + + def __lt__(self, another): + return self.group_id < another.group_id or ( + self.group_id == another.group_id and self.artifact_id < another.artifact_id + ) + + def __eq__(self, another): + return ( + self.group_id == another.group_id + and self.artifact_id == another.artifact_id + ) diff --git a/library_generation/model/gapic_config.py b/library_generation/model/gapic_config.py new file mode 100644 index 0000000000..bec1645823 --- /dev/null +++ b/library_generation/model/gapic_config.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python3 +# Copyright 2024 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. + + +class GapicConfig: + """ + Class that represents a GAPICs single entry, inside a `LibraryConfig` in + a generation_config.yaml + """ + + def __init__(self, proto_path: str): + self.proto_path = proto_path diff --git a/library_generation/model/ClientInputs.py b/library_generation/model/gapic_inputs.py similarity index 78% rename from library_generation/model/ClientInputs.py rename to library_generation/model/gapic_inputs.py index 38acdb316f..b6500a6f3d 100644 --- a/library_generation/model/ClientInputs.py +++ b/library_generation/model/gapic_inputs.py @@ -42,11 +42,12 @@ include_samples_pattern = r"include_samples = True" -class ClientInput: +class GapicInputs: """ A data class containing inputs to invoke generate_library.sh to generate a GAPIC library. """ + def __init__( self, proto_only="true", @@ -69,16 +70,15 @@ def __init__( def parse( - build_path: Path, - versioned_path: str, - build_file_name: str = 'BUILD.bazel' -) -> ClientInput: + build_path: Path, versioned_path: str, build_file_name: str = "BUILD.bazel" +) -> GapicInputs: """ Utility function to parse inputs of generate_library.sh from BUILD.bazel. :param build_path: the file path of BUILD.bazel :param versioned_path: a versioned path in googleapis repository, e.g., google/cloud/asset/v1. - :return: an ClientInput object. + :param build_file_name: the name of the build file. + :return: an GapicInputs object. """ with open(f"{build_path}/{build_file_name}") as build: content = build.read() @@ -86,20 +86,18 @@ def parse( proto_library_target = re.compile( proto_library_pattern, re.DOTALL | re.VERBOSE ).findall(content) - additional_protos = '' + additional_protos = "" if len(proto_library_target) > 0: - additional_protos = __parse_additional_protos(proto_library_target[0]) - gapic_target = re.compile(gapic_pattern, re.DOTALL | re.VERBOSE)\ - .findall(content) - assembly_target = re.compile(assembly_pattern, re.DOTALL | re.VERBOSE)\ - .findall(content) - include_samples = 'false' + additional_protos = __parse_additional_protos(proto_library_target[0]) + gapic_target = re.compile(gapic_pattern, re.DOTALL | re.VERBOSE).findall(content) + assembly_target = re.compile(assembly_pattern, re.DOTALL | re.VERBOSE).findall( + content + ) + include_samples = "false" if len(assembly_target) > 0: - include_samples = __parse_include_samples(assembly_target[0]) + include_samples = __parse_include_samples(assembly_target[0]) if len(gapic_target) == 0: - return ClientInput( - include_samples=include_samples - ) + return GapicInputs(include_samples=include_samples) transport = __parse_transport(gapic_target[0]) rest_numeric_enum = __parse_rest_numeric_enums(gapic_target[0]) @@ -107,15 +105,15 @@ def parse( service_config = __parse_service_config(gapic_target[0], versioned_path) service_yaml = __parse_service_yaml(gapic_target[0], versioned_path) - return ClientInput( - proto_only="false", - additional_protos=additional_protos, - transport=transport, - rest_numeric_enum=rest_numeric_enum, - gapic_yaml=gapic_yaml, - service_config=service_config, - service_yaml=service_yaml, - include_samples=include_samples, + return GapicInputs( + proto_only="false", + additional_protos=additional_protos, + transport=transport, + rest_numeric_enum=rest_numeric_enum, + gapic_yaml=gapic_yaml, + service_config=service_config, + service_yaml=service_yaml, + include_samples=include_samples, ) @@ -147,14 +145,23 @@ def __parse_gapic_yaml(gapic_target: str, versioned_path: str) -> str: def __parse_service_config(gapic_target: str, versioned_path: str) -> str: service_config = re.findall(service_config_pattern, gapic_target) - return f"{versioned_path}/{service_config[0]}".replace(':','') if len(service_config) != 0 \ + return ( + f"{versioned_path}/{service_config[0]}".replace(":", "") + if len(service_config) != 0 else "" + ) def __parse_service_yaml(gapic_target: str, versioned_path: str) -> str: service_yaml = re.findall(service_yaml_pattern, gapic_target) - return f"{versioned_path}/{service_yaml[0]}" if len(service_yaml) != 0 \ - else "" + if len(service_yaml) == 0: + return "" + res = str(service_yaml[0]) + if res.startswith("//"): + # special case if the service config starts with "//", is a Bazel + # target with an absolute path. + return res.replace("//", "").replace(":", "/") + return f"{versioned_path}/{res}" def __parse_include_samples(assembly_target: str) -> str: diff --git a/library_generation/model/generation_config.py b/library_generation/model/generation_config.py new file mode 100644 index 0000000000..1c3c62d1fb --- /dev/null +++ b/library_generation/model/generation_config.py @@ -0,0 +1,112 @@ +#!/usr/bin/env python3 +# Copyright 2024 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. + + +import yaml +from typing import List, Optional, Dict +from library_generation.model.library_config import LibraryConfig +from library_generation.model.gapic_config import GapicConfig + + +class GenerationConfig: + """ + Class that represents the root of a generation_config.yaml + """ + + def __init__( + self, + gapic_generator_version: str, + googleapis_commitish: str, + owlbot_cli_image: str, + synthtool_commitish: str, + libraries: List[LibraryConfig], + grpc_version: Optional[str] = None, + protobuf_version: Optional[str] = None, + ): + self.gapic_generator_version = gapic_generator_version + self.googleapis_commitish = googleapis_commitish + self.owlbot_cli_image = owlbot_cli_image + self.synthtool_commitish = synthtool_commitish + self.libraries = libraries + self.grpc_version = grpc_version + self.protobuf_version = protobuf_version + + +def from_yaml(path_to_yaml: str): + """ + Parses a yaml located in path_to_yaml. Returns the parsed configuration + represented by the "model" classes + """ + with open(path_to_yaml, "r") as file_stream: + config = yaml.safe_load(file_stream) + + libraries = __required(config, "libraries") + + parsed_libraries = list() + for library in libraries: + gapics = __required(library, "GAPICs") + + parsed_gapics = list() + for gapic in gapics: + proto_path = __required(gapic, "proto_path") + new_gapic = GapicConfig(proto_path) + parsed_gapics.append(new_gapic) + + new_library = LibraryConfig( + api_shortname=__required(library, "api_shortname"), + api_description=__required(library, "api_description"), + name_pretty=__required(library, "name_pretty"), + product_documentation=__required(library, "product_documentation"), + gapic_configs=parsed_gapics, + library_type=__optional(library, "library_type", "GAPIC_AUTO"), + release_level=__optional(library, "release_level", "preview"), + api_id=__optional(library, "api_id", None), + api_reference=__optional(library, "api_reference", None), + client_documentation=__optional(library, "client_documentation", None), + distribution_name=__optional(library, "distribution_name", None), + googleapis_commitish=__optional(library, "googleapis_commitish", None), + group_id=__optional(library, "group_id", "com.google.cloud"), + issue_tracker=__optional(library, "issue_tracker", None), + library_name=__optional(library, "library_name", None), + rest_documentation=__optional(library, "rest_documentation", None), + rpc_documentation=__optional(library, "rpc_documentation", None), + cloud_api=__optional(library, "cloud_api", True), + requires_billing=__optional(library, "requires_billing", True), + ) + parsed_libraries.append(new_library) + + parsed_config = GenerationConfig( + gapic_generator_version=__required(config, "gapic_generator_version"), + grpc_version=__optional(config, "grpc_version", None), + protobuf_version=__optional(config, "protobuf_version", None), + googleapis_commitish=__required(config, "googleapis_commitish"), + owlbot_cli_image=__required(config, "owlbot_cli_image"), + synthtool_commitish=__required(config, "synthtool_commitish"), + libraries=parsed_libraries, + ) + + return parsed_config + + +def __required(config: Dict, key: str): + if key not in config: + raise ValueError(f"required key {key} not found in yaml") + return config[key] + + +def __optional(config: Dict, key: str, default: any): + if key not in config: + return default + return config[key] diff --git a/library_generation/model/library_config.py b/library_generation/model/library_config.py new file mode 100644 index 0000000000..9e3f9c9c61 --- /dev/null +++ b/library_generation/model/library_config.py @@ -0,0 +1,65 @@ +#!/usr/bin/env python3 +# Copyright 2024 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. + +from typing import List, Optional +from library_generation.model.gapic_config import GapicConfig + + +class LibraryConfig: + """ + Class that represents a library in a generation_config.yaml file + """ + + def __init__( + self, + api_shortname: str, + api_description: str, + name_pretty: str, + product_documentation: str, + gapic_configs: List[GapicConfig], + library_type: Optional[str] = None, + release_level: Optional[str] = None, + api_id: Optional[str] = None, + api_reference: Optional[str] = None, + client_documentation: Optional[str] = None, + distribution_name: Optional[str] = None, + googleapis_commitish: Optional[str] = None, + group_id: Optional[str] = "com.google.cloud", + issue_tracker: Optional[str] = None, + library_name: Optional[str] = None, + rest_documentation: Optional[str] = None, + rpc_documentation: Optional[str] = None, + cloud_api: Optional[bool] = True, + requires_billing: Optional[bool] = True, + ): + self.api_shortname = api_shortname + self.api_description = api_description + self.name_pretty = name_pretty + self.product_documentation = product_documentation + self.gapic_configs = gapic_configs + self.library_type = library_type if library_type else "GAPIC_AUTO" + self.release_level = release_level if release_level else "preview" + self.api_id = api_id + self.api_reference = api_reference + self.client_documentation = client_documentation + self.distribution_name = distribution_name + self.googleapis_commitish = googleapis_commitish + self.group_id = group_id + self.issue_tracker = issue_tracker + self.library_name = library_name + self.rest_documentation = rest_documentation + self.rpc_documentation = rpc_documentation + self.cloud_api = cloud_api + self.requires_billing = requires_billing diff --git a/library_generation/model/repo_config.py b/library_generation/model/repo_config.py new file mode 100644 index 0000000000..7f42720fe3 --- /dev/null +++ b/library_generation/model/repo_config.py @@ -0,0 +1,38 @@ +#!/usr/bin/env python3 +# Copyright 2024 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. +from typing import Dict +from library_generation.model.library_config import LibraryConfig + + +class RepoConfig: + """ + Class that represents a generated repository + """ + + def __init__( + self, + output_folder: str, + libraries: Dict[str, LibraryConfig], + versions_file: str, + ): + """ + Init a RepoConfig object + :param output_folder: the path to which the generated repo goes + :param libraries: a mapping from library_path to LibraryConfig object + :param versions_file: the path of versions.txt used in post-processing + """ + self.output_folder = output_folder + self.libraries = libraries + self.versions_file = versions_file diff --git a/library_generation/new_client/get_generator_version_from_workspace.sh b/library_generation/new_client/get_generator_version_from_workspace.sh deleted file mode 100755 index 0d8cac1f25..0000000000 --- a/library_generation/new_client/get_generator_version_from_workspace.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -curl --silent 'https://raw.githubusercontent.com/googleapis/googleapis/master/WORKSPACE' | perl -nle 'print $1 if m/_gapic_generator_java_version\s+=\s+\"(.+)\"/' \ No newline at end of file diff --git a/library_generation/new_client/new-client.py b/library_generation/new_client/new-client.py deleted file mode 100644 index 26d0afb7f3..0000000000 --- a/library_generation/new_client/new-client.py +++ /dev/null @@ -1,424 +0,0 @@ -# Copyright 2024 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import json -import os -from pathlib import Path -import re -import subprocess -import sys -import click -import templates -from git import Repo -import shutil -current_dir = os.path.dirname(os.path.realpath(__file__)) -parent_dir = os.path.dirname(current_dir) -sys.path.append(parent_dir) -from model.ClientInputs import parse - - -@click.group(invoke_without_command=False) -@click.pass_context -@click.version_option(message="%(version)s") -def main(ctx): - pass - - -@main.command() -@click.option( - "--api_shortname", - required=True, - type=str, - prompt="Service name? (e.g. automl)", - help="Name for the new directory name and (default) artifact name" -) -@click.option( - "--name-pretty", - required=True, - type=str, - prompt="Pretty name? (e.g. 'Cloud AutoML')", - help="The human-friendly name that appears in README.md" -) -@click.option( - "--product-docs", - required=True, - type=str, - prompt="Product Documentation URL", - help="Documentation URL that appears in README.md" -) -@click.option( - "--api-description", - required=True, - type=str, - prompt="Description for README. The first sentence is prefixed by the " - "pretty name", - help="Description that appears in README.md" -) -@click.option( - "--release-level", - type=click.Choice(["stable", "preview"]), - default="preview", - show_default=True, - help="A label that appears in repo-metadata.json. The first library " - "generation is always 'preview'." -) -@click.option( - "--transport", - type=click.Choice(["grpc", "http", "both"]), - default="grpc", - show_default=True, - help="A label that appears in repo-metadata.json" -) -@click.option("--language", type=str, default="java", show_default=True) -@click.option( - "--distribution-name", - type=str, - help="Maven coordinates of the generated library. By default it's " - "com.google.cloud:google-cloud-" -) -@click.option( - "--api-id", - type=str, - help="The value of the apiid parameter used in README.md It has link to " - "https://console.cloud.google.com/flows/enableapi?apiid=" -) -@click.option( - "--requires-billing", - type=bool, - default=True, - show_default=True, - help="Based on this value, README.md explains whether billing setup is " - "needed or not." -) -@click.option( - "--destination-name", - type=str, - default=None, - help="The directory name of the new library. By default it's " - "java-" -) -@click.option( - "--proto-path", - required=True, - type=str, - default=None, - help="Path to proto file from the root of the googleapis repository to the" - "directory that contains the proto files (without the version)." - "For example, to generate the library for 'google/maps/routing/v2', " - "then you specify this value as 'google/maps/routing'" -) -@click.option( - "--cloud-api", - type=bool, - default=True, - show_default=True, - help="If true, the artifact ID of the library is 'google-cloud-'; " - "otherwise 'google-'" -) -@click.option( - "--group-id", - type=str, - default="com.google.cloud", - show_default=True, - help="The group ID of the artifact when distribution name is not set" -) -@click.option( - "--library-type", - type=str, - default="GAPIC_AUTO", - show_default=True, - help="A label that appear in repo-metadata.json to tell how the library is " - "maintained or generated" -) -@click.option( - "--googleapis-url", - type=str, - default="https://github.com/googleapis/googleapis.git", - show_default=True, - help="The URL of the repository that has proto service definition" -) -@click.option( - "--rest-docs", - type=str, - help="If it exists, link to the REST Documentation for a service" -) -@click.option( - "--rpc-docs", - type=str, - help="If it exists, link to the RPC Documentation for a service" -) -@click.option( - "--split-repo", - type=bool, - default=False, - help="Whether generating a library into a split repository" -) -def generate( - api_shortname, - name_pretty, - product_docs, - api_description, - release_level, - distribution_name, - api_id, - requires_billing, - transport, - language, - destination_name, - proto_path, - cloud_api, - group_id, - library_type, - googleapis_url, - rest_docs, - rpc_docs, - split_repo, -): - cloud_prefix = "cloud-" if cloud_api else "" - - output_name = destination_name if destination_name else api_shortname - if distribution_name is None: - distribution_name = f"{group_id}:google-{cloud_prefix}{output_name}" - - distribution_name_short = re.split(r"[:\/]", distribution_name)[-1] - - if api_id is None: - api_id = f"{api_shortname}.googleapis.com" - - if not product_docs.startswith("https"): - sys.exit("product_docs must starts with 'https://'") - - client_documentation = ( - f"https://cloud.google.com/{language}/docs/reference/{distribution_name_short}/latest/overview" - ) - - if api_shortname == "": - sys.exit("api_shortname is empty") - - repo = "googleapis/google-cloud-java" - if split_repo: - repo = f"{language}-{output_name}" - - repo_metadata = { - "api_shortname": api_shortname, - "name_pretty": name_pretty, - "product_documentation": product_docs, - "api_description": api_description, - "client_documentation": client_documentation, - "release_level": release_level, - "transport": transport, - "language": language, - "repo": f"{repo}", - "repo_short": f"{language}-{output_name}", - "distribution_name": distribution_name, - "api_id": api_id, - "library_type": library_type, - } - if requires_billing: - repo_metadata["requires_billing"] = True - - if rest_docs: - repo_metadata["rest_documentation"] = rest_docs - - if rpc_docs: - repo_metadata["rpc_documentation"] = rpc_docs - # Initialize workdir - workdir = Path(f"{sys.path[0]}/../../output/java-{output_name}").resolve() - if os.path.isdir(workdir): - sys.exit( - "Couldn't create the module because " - f"the module {workdir} already exists. In Java client library " - "generation, a new API version of an existing module does not " - "require new-client.py invocation. " - "See go/yoshi-java-new-client#adding-a-new-service-version-by-owlbot." - ) - print(f"Creating a new module {workdir}") - os.makedirs(workdir, exist_ok=False) - # write .repo-metadata.json file - with open(workdir / ".repo-metadata.json", "w") as fp: - json.dump(repo_metadata, fp, indent=2) - - template_excludes = [ - ".github/*", - ".kokoro/*", - "samples/*", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "java.header", - "license-checks.xml", - "renovate.json", - ".gitignore" - ] - # create owlbot.py - templates.render( - template_name="owlbot.py.j2", - output_name=str(workdir / "owlbot.py"), - should_include_templates=True, - template_excludes=template_excludes, - ) - - # In monorepo, .OwlBot.yaml needs to be in the directory of the module. - owlbot_yaml_location_from_module = ".OwlBot.yaml" - # create owlbot config - templates.render( - template_name="owlbot.yaml.monorepo.j2", - output_name=str(workdir / owlbot_yaml_location_from_module), - artifact_name=distribution_name_short, - proto_path=proto_path, - module_name=f"java-{output_name}", - api_shortname=api_shortname - ) - - print(f"Pulling proto from {googleapis_url}") - output_dir = Path(f"{sys.path[0]}/../../output").resolve() - __sparse_clone( - remote_url=googleapis_url, - dest=output_dir, - ) - # Find a versioned directory within proto_path - # We only need to generate one version of the library as OwlBot - # will copy other versions from googleapis-gen. - version = __find_version( - Path(f"{sys.path[0]}/../../output/{proto_path}").resolve() - ) - versioned_proto_path = f"{proto_path}/{version}" - print(f"Generating from {versioned_proto_path}") - # parse BUILD.bazel in proto_path - client_input = parse( - build_path=Path(f"{sys.path[0]}/../../output/{versioned_proto_path}") - .resolve(), - versioned_path=versioned_proto_path, - ) - repo_root_dir = Path(f"{sys.path[0]}/../../").resolve() - generator_version = subprocess.check_output( - ["library_generation/new_client/get_generator_version_from_workspace.sh"], - cwd=repo_root_dir - ).strip() - print(f"Generator version: {generator_version}") - # run generate_library.sh - subprocess.check_call([ - "library_generation/generate_library.sh", - "-p", - versioned_proto_path, - "-d", - f"java-{output_name}", - "--gapic_generator_version", - generator_version, - "--protobuf_version", - "23.2", - "--proto_only", - client_input.proto_only, - "--gapic_additional_protos", - client_input.additional_protos, - "--transport", - client_input.transport, - "--rest_numeric_enums", - client_input.rest_numeric_enum, - "--gapic_yaml", - client_input.gapic_yaml, - "--service_config", - client_input.service_config, - "--service_yaml", - client_input.service_yaml, - "--include_samples", - client_input.include_samples, - "--versions_file", - f"{repo_root_dir}/versions.txt"], - cwd=repo_root_dir - ) - - # Move generated module to repo root. - __move_modules( - source=output_dir, - dest=repo_root_dir, - name_prefix="java-" - ) - - # Repo level post process - script_dir = "library_generation/repo-level-postprocess" - - print("Regenerating root pom.xml") - subprocess.check_call( - [ - f"{script_dir}/generate_root_pom.sh", - f"{output_dir}" - ], - cwd=repo_root_dir, - ) - - if not split_repo: - print("Regenerating the GAPIC BOM") - subprocess.check_call( - [ - f"{script_dir}/generate_gapic_bom.sh", - f"{output_dir}" - ], - cwd=repo_root_dir, - ) - - print("Deleting temp files") - subprocess.check_call( - [ - "rm", - "-rf", - f"{output_dir}" - ], - cwd=repo_root_dir - ) - - print(f"Prepared new library in {workdir}") - print(f"Please create a pull request:\n" - f" $ git checkout -b new_module_java-{output_name}\n" - f" $ git add .\n" - f" $ git commit -m 'feat: [{api_shortname}] new module for {api_shortname}'\n" - f" $ gh pr create --title 'feat: [{api_shortname}] new module for {api_shortname}'") - - -def __sparse_clone( - remote_url: str, - dest: Path, - commit_hash: str = "master", -): - local_repo = Repo.init(dest) - origin = local_repo.create_remote( - name="origin", - url=remote_url - ) - - origin.fetch() - git = local_repo.git() - git.checkout(f"origin/{commit_hash}", "--", "google", "grafeas") - - -def __find_version(proto_path: Path) -> str: - for child in proto_path.iterdir(): - if child.is_dir() and re.search(r"v[1-9]", child.name) is not None: - return child.name - return "" - - -def __move_modules( - source: Path, - dest: Path, - name_prefix: str -) -> None: - for folder in source.iterdir(): - if folder.is_dir() and folder.name.startswith(name_prefix): - shutil.move(folder, dest) - - -if __name__ == "__main__": - main() diff --git a/library_generation/new_client/requirements.in b/library_generation/new_client/requirements.in deleted file mode 100644 index 2ff144604c..0000000000 --- a/library_generation/new_client/requirements.in +++ /dev/null @@ -1,8 +0,0 @@ -attr -attrs -black -click -jinja2 -lxml -typing -GitPython diff --git a/library_generation/new_client/requirements.txt b/library_generation/new_client/requirements.txt deleted file mode 100644 index 1012323e89..0000000000 --- a/library_generation/new_client/requirements.txt +++ /dev/null @@ -1,232 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile --generate-hashes library_generation/new_client/requirements.in -# -attr==0.3.2 \ - --hash=sha256:1ceebca768181cdcce9827611b1d728e592be5d293911539ea3d0b0bfa1146f4 \ - --hash=sha256:4f4bffeea8c27387bde446675a7ac24f3b8fea1075f12d849b5f5c5181fc8336 - # via -r library_generation/new_client/requirements.in -attrs==23.2.0 \ - --hash=sha256:935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30 \ - --hash=sha256:99b87a485a5820b23b879f04c2305b44b951b502fd64be915879d77a7e8fc6f1 - # via -r library_generation/new_client/requirements.in -black==23.12.1 \ - --hash=sha256:0808494f2b2df923ffc5723ed3c7b096bd76341f6213989759287611e9837d50 \ - --hash=sha256:1fa88a0f74e50e4487477bc0bb900c6781dbddfdfa32691e780bf854c3b4a47f \ - --hash=sha256:25e57fd232a6d6ff3f4478a6fd0580838e47c93c83eaf1ccc92d4faf27112c4e \ - --hash=sha256:2d9e13db441c509a3763a7a3d9a49ccc1b4e974a47be4e08ade2a228876500ec \ - --hash=sha256:3e1b38b3135fd4c025c28c55ddfc236b05af657828a8a6abe5deec419a0b7055 \ - --hash=sha256:3fa4be75ef2a6b96ea8d92b1587dd8cb3a35c7e3d51f0738ced0781c3aa3a5a3 \ - --hash=sha256:4ce3ef14ebe8d9509188014d96af1c456a910d5b5cbf434a09fef7e024b3d0d5 \ - --hash=sha256:4f0031eaa7b921db76decd73636ef3a12c942ed367d8c3841a0739412b260a54 \ - --hash=sha256:602cfb1196dc692424c70b6507593a2b29aac0547c1be9a1d1365f0d964c353b \ - --hash=sha256:6d1bd9c210f8b109b1762ec9fd36592fdd528485aadb3f5849b2740ef17e674e \ - --hash=sha256:78baad24af0f033958cad29731e27363183e140962595def56423e626f4bee3e \ - --hash=sha256:8d4df77958a622f9b5a4c96edb4b8c0034f8434032ab11077ec6c56ae9f384ba \ - --hash=sha256:97e56155c6b737854e60a9ab1c598ff2533d57e7506d97af5481141671abf3ea \ - --hash=sha256:9c4352800f14be5b4864016882cdba10755bd50805c95f728011bcb47a4afd59 \ - --hash=sha256:a4d6a9668e45ad99d2f8ec70d5c8c04ef4f32f648ef39048d010b0689832ec6d \ - --hash=sha256:a920b569dc6b3472513ba6ddea21f440d4b4c699494d2e972a1753cdc25df7b0 \ - --hash=sha256:ae76c22bde5cbb6bfd211ec343ded2163bba7883c7bc77f6b756a1049436fbb9 \ - --hash=sha256:b18fb2ae6c4bb63eebe5be6bd869ba2f14fd0259bda7d18a46b764d8fb86298a \ - --hash=sha256:c04b6d9d20e9c13f43eee8ea87d44156b8505ca8a3c878773f68b4e4812a421e \ - --hash=sha256:c88b3711d12905b74206227109272673edce0cb29f27e1385f33b0163c414bba \ - --hash=sha256:dd15245c8b68fe2b6bd0f32c1556509d11bb33aec9b5d0866dd8e2ed3dba09c2 \ - --hash=sha256:e0aaf6041986767a5e0ce663c7a2f0e9eaf21e6ff87a5f95cbf3675bfd4c41d2 - # via -r library_generation/new_client/requirements.in -click==8.1.7 \ - --hash=sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28 \ - --hash=sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de - # via - # -r library_generation/new_client/requirements.in - # black -gitdb==4.0.11 \ - --hash=sha256:81a3407ddd2ee8df444cbacea00e2d038e40150acfa3001696fe0dcf1d3adfa4 \ - --hash=sha256:bf5421126136d6d0af55bc1e7c1af1c397a34f5b7bd79e776cd3e89785c2b04b - # via gitpython -gitpython==3.1.40 \ - --hash=sha256:22b126e9ffb671fdd0c129796343a02bf67bf2994b35449ffc9321aa755e18a4 \ - --hash=sha256:cf14627d5a8049ffbf49915732e5eddbe8134c3bdb9d476e6182b676fc573f8a - # via -r library_generation/new_client/requirements.in -jinja2==3.1.2 \ - --hash=sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852 \ - --hash=sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61 - # via -r library_generation/new_client/requirements.in -lxml==5.0.0 \ - --hash=sha256:016de3b29a262655fc3d2075dc1b2611f84f4c3d97a71d579c883d45e201eee4 \ - --hash=sha256:0326e9b8176ea77269fb39e7af4010906e73e9496a9f8eaf06d253b1b1231ceb \ - --hash=sha256:03290e2f714f2e7431c8430c08b48167f657da7bc689c6248e828ff3c66d5b1b \ - --hash=sha256:049fef98d02513c34f5babd07569fc1cf1ed14c0f2fbff18fe72597f977ef3c2 \ - --hash=sha256:07a900735bad9af7be3085480bf384f68ed5580ba465b39a098e6a882c060d6b \ - --hash=sha256:0d277d4717756fe8816f0beeff229cb72f9dd02a43b70e1d3f07c8efadfb9fe1 \ - --hash=sha256:173bcead3af5d87c7bca9a030675073ddaad8e0a9f0b04be07cd9390453e7226 \ - --hash=sha256:1ef0793e1e2dd221fce7c142177008725680f7b9e4a184ab108d90d5d3ab69b7 \ - --hash=sha256:21af2c3862db6f4f486cddf73ec1157b40d5828876c47cd880edcbad8240ea1b \ - --hash=sha256:2219cbf790e701acf9a21a31ead75f983e73daf0eceb9da6990212e4d20ebefe \ - --hash=sha256:2992591e2294bb07faf7f5f6d5cb60710c046404f4bfce09fb488b85d2a8f58f \ - --hash=sha256:3663542aee845129a981889c19b366beab0b1dadcf5ca164696aabfe1aa51667 \ - --hash=sha256:3e6cbb68bf70081f036bfc018649cf4b46c4e7eaf7860a277cae92dee2a57f69 \ - --hash=sha256:3f908afd0477cace17f941d1b9cfa10b769fe1464770abe4cfb3d9f35378d0f8 \ - --hash=sha256:3ffa066db40b0347e48334bd4465de768e295a3525b9a59831228b5f4f93162d \ - --hash=sha256:405e3760f83a8ba3bdb6e622ec79595cdc20db916ce37377bbcb95b5711fa4ca \ - --hash=sha256:44fa9afd632210f1eeda51cf284ed8dbab0c7ec8b008dd39ba02818e0e114e69 \ - --hash=sha256:4786b0af7511ea614fd86407a52a7bc161aa5772d311d97df2591ed2351de768 \ - --hash=sha256:4a45a278518e4308865c1e9dbb2c42ce84fb154efb03adeb16fdae3c1687c7c9 \ - --hash=sha256:4b9d5b01900a760eb3acf6cef50aead4ef2fa79e7ddb927084244e41dfe37b65 \ - --hash=sha256:4e69c36c8618707a90ed3fb6f48a6cc9254ffcdbf7b259e439a5ae5fbf9c5206 \ - --hash=sha256:52a9ab31853d3808e7cf0183b3a5f7e8ffd622ea4aee1deb5252dbeaefd5b40d \ - --hash=sha256:52c0acc2f29b0a204efc11a5ed911a74f50a25eb7d7d5069c2b1fd3b3346ce11 \ - --hash=sha256:5382612ba2424cea5d2c89e2c29077023d8de88f8d60d5ceff5f76334516df9e \ - --hash=sha256:581a78f299a9f5448b2c3aea904bfcd17c59bf83016d221d7f93f83633bb2ab2 \ - --hash=sha256:583c0e15ae06adc81035346ae2abb2e748f0b5197e7740d8af31222db41bbf7b \ - --hash=sha256:59cea9ba1c675fbd6867ca1078fc717a113e7f5b7644943b74137b7cc55abebf \ - --hash=sha256:5b39f63edbe7e018c2ac1cf0259ee0dd2355274e8a3003d404699b040782e55e \ - --hash=sha256:5eff173f0ff408bfa578cbdafd35a7e0ca94d1a9ffe09a8a48e0572d0904d486 \ - --hash=sha256:5fb988e15378d6e905ca8f60813950a0c56da9469d0e8e5d8fe785b282684ec5 \ - --hash=sha256:6507c58431dbd95b50654b3313c5ad54f90e54e5f2cdacf733de61eae478eec5 \ - --hash=sha256:6a2de85deabf939b0af89e2e1ea46bfb1239545e2da6f8ac96522755a388025f \ - --hash=sha256:6a5501438dd521bb7e0dde5008c40c7bfcfaafaf86eccb3f9bd27509abb793da \ - --hash=sha256:6bba06d8982be0f0f6432d289a8d104417a0ab9ed04114446c4ceb6d4a40c65d \ - --hash=sha256:70ab4e02f7aa5fb4131c8b222a111ce7676f3767e36084fba3a4e7338dc82dcd \ - --hash=sha256:7188495c1bf71bfda87d78ed50601e72d252119ce11710d6e71ff36e35fea5a0 \ - --hash=sha256:71a7cee869578bc17b18050532bb2f0bc682a7b97dda77041741a1bd2febe6c7 \ - --hash=sha256:73bfab795d354aaf2f4eb7a5b0db513031734fd371047342d5803834ce19ec18 \ - --hash=sha256:766868f729f3ab84125350f1a0ea2594d8b1628a608a574542a5aff7355b9941 \ - --hash=sha256:77b73952534967a4497d9e4f26fbeebfba19950cbc66b7cc3a706214429d8106 \ - --hash=sha256:78d6d8e5b54ed89dc0f0901eaaa579c384ad8d59fa43cc7fb06e9bb89115f8f4 \ - --hash=sha256:793be9b4945c2dfd69828fb5948d7d9569b78e0599e4a2e88d92affeb0ff3aa3 \ - --hash=sha256:7ba26a7dc929a1b3487d51bbcb0099afed2fc06e891b82845c8f37a2d7d7fbbd \ - --hash=sha256:7df433d08d4587dc3932f7fcfc3194519a6824824104854e76441fd3bc000d29 \ - --hash=sha256:80209b31dd3908bc5b014f540fd192c97ea52ab179713a730456c5baf7ce80c1 \ - --hash=sha256:8134d5441d1ed6a682e3de3d7a98717a328dce619ee9c4c8b3b91f0cb0eb3e28 \ - --hash=sha256:81509dffd8aba3bdb43e90cbd218c9c068a1f4047d97bc9546b3ac9e3a4ae81d \ - --hash=sha256:88f559f8beb6b90e41a7faae4aca4c8173a4819874a9bf8e74c8d7c1d51f3162 \ - --hash=sha256:894c5f71186b410679aaab5774543fcb9cbabe8893f0b31d11cf28a0740e80be \ - --hash=sha256:8cc0a951e5616ac626f7036309c41fb9774adcd4aa7db0886463da1ce5b65edb \ - --hash=sha256:8ce8b468ab50f9e944719d1134709ec11fe0d2840891a6cae369e22141b1094c \ - --hash=sha256:904d36165848b59c4e04ae5b969072e602bd987485076fca8ec42c6cd7a7aedc \ - --hash=sha256:96095bfc0c02072fc89afa67626013a253596ea5118b8a7f4daaae049dafa096 \ - --hash=sha256:980ba47c8db4b9d870014c7040edb230825b79017a6a27aa54cdb6fcc02d8cc0 \ - --hash=sha256:992029258ed719f130d5a9c443d142c32843046f1263f2c492862b2a853be570 \ - --hash=sha256:99cad5c912f359e59e921689c04e54662cdd80835d80eeaa931e22612f515df7 \ - --hash=sha256:9b59c429e1a2246da86ae237ffc3565efcdc71c281cd38ca8b44d5fb6a3b993a \ - --hash=sha256:9ca498f8554a09fbc3a2f8fc4b23261e07bc27bef99b3df98e2570688033f6fc \ - --hash=sha256:9cd3d6c2c67d4fdcd795e4945e2ba5434909c96640b4cc09453bd0dc7e8e1bac \ - --hash=sha256:a85136d0ee18a41c91cc3e2844c683be0e72e6dda4cb58da9e15fcaef3726af7 \ - --hash=sha256:ac21aace6712472e77ea9dfc38329f53830c4259ece54c786107105ebb069053 \ - --hash=sha256:aebd8fd378e074b22e79cad329dcccd243c40ff1cafaa512d19276c5bb9554e1 \ - --hash=sha256:affdd833f82334fdb10fc9a1c7b35cdb5a86d0b672b4e14dd542e1fe7bcea894 \ - --hash=sha256:b6d4e148edee59c2ad38af15810dbcb8b5d7b13e5de3509d8cf3edfe74c0adca \ - --hash=sha256:bb58e8f4b2cfe012cd312239b8d5139995fe8f5945c7c26d5fbbbb1ddb9acd47 \ - --hash=sha256:bfdc4668ac56687a89ca3eca44231144a2e9d02ba3b877558db74ba20e2bd9fa \ - --hash=sha256:c1249aa4eaced30b59ecf8b8cae0b1ccede04583c74ca7d10b6f8bbead908b2c \ - --hash=sha256:c7cfb6af73602c8d288581df8a225989d7e9d5aab0a174be0e19fcfa800b6797 \ - --hash=sha256:c7fe19abb3d3c55a9e65d289b12ad73b3a31a3f0bda3c539a890329ae9973bd6 \ - --hash=sha256:c8954da15403db1acfc0544b3c3f963a6ef4e428283ab6555e3e298bbbff1cf6 \ - --hash=sha256:c90c593aa8dd57d5dab0ef6d7d64af894008971d98e6a41b320fdd75258fbc6e \ - --hash=sha256:cb564bbe55ff0897d9cf1225041a44576d7ae87f06fd60163544c91de2623d3f \ - --hash=sha256:cfa8a4cdc3765574b7fd0c7cfa5fbd1e2108014c9dfd299c679e5152bea9a55e \ - --hash=sha256:d1bb64646480c36a4aa1b6a44a5b6e33d0fcbeab9f53f1b39072cd3bb2c6243a \ - --hash=sha256:dac2733fe4e159b0aae0439db6813b7b1d23ff96d0b34c0107b87faf79208c4e \ - --hash=sha256:db40e85cffd22f7d65dcce30e85af565a66401a6ed22fc0c56ed342cfa4ffc43 \ - --hash=sha256:dd39ef87fd1f7bb5c4aa53454936e6135cbfe03fe3744e8218be193f9e4fef16 \ - --hash=sha256:de1a8b54170024cf1c0c2718c82412bca42cd82e390556e3d8031af9541b416f \ - --hash=sha256:e675a4b95208e74c34ac0751cc4bab9170e7728b61601fb0f4746892c2bb7e0b \ - --hash=sha256:e6bb39d91bf932e7520cb5718ae3c2f498052aca53294d5d59fdd9068fe1a7f2 \ - --hash=sha256:e8c63f5c7d87e7044880b01851ac4e863c3349e6f6b6ab456fe218d9346e816d \ - --hash=sha256:ea56825c1e23c9c8ea385a191dac75f9160477057285b88c88736d9305e6118f \ - --hash=sha256:ee60f33456ff34b2dd1d048a740a2572798356208e4c494301c931de3a0ab3a2 \ - --hash=sha256:f15844a1b93dcaa09c2b22e22a73384f3ae4502347c3881cfdd674e14ac04e21 \ - --hash=sha256:f298ac9149037d6a3d5c74991bded39ac46292520b9c7c182cb102486cc87677 \ - --hash=sha256:f30e697b6215e759d0824768b2c5b0618d2dc19abe6c67eeed2b0460f52470d1 \ - --hash=sha256:f92d73faa0b1a76d1932429d684b7ce95829e93c3eef3715ec9b98ab192c9d31 \ - --hash=sha256:fef10f27d6318d2d7c88680e113511ddecf09ee4f9559b3623b73ee89fa8f6cc - # via -r library_generation/new_client/requirements.in -markupsafe==2.1.3 \ - --hash=sha256:05fb21170423db021895e1ea1e1f3ab3adb85d1c2333cbc2310f2a26bc77272e \ - --hash=sha256:0a4e4a1aff6c7ac4cd55792abf96c915634c2b97e3cc1c7129578aa68ebd754e \ - --hash=sha256:10bbfe99883db80bdbaff2dcf681dfc6533a614f700da1287707e8a5d78a8431 \ - --hash=sha256:134da1eca9ec0ae528110ccc9e48041e0828d79f24121a1a146161103c76e686 \ - --hash=sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c \ - --hash=sha256:1577735524cdad32f9f694208aa75e422adba74f1baee7551620e43a3141f559 \ - --hash=sha256:1b40069d487e7edb2676d3fbdb2b0829ffa2cd63a2ec26c4938b2d34391b4ecc \ - --hash=sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb \ - --hash=sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939 \ - --hash=sha256:282c2cb35b5b673bbcadb33a585408104df04f14b2d9b01d4c345a3b92861c2c \ - --hash=sha256:2c1b19b3aaacc6e57b7e25710ff571c24d6c3613a45e905b1fde04d691b98ee0 \ - --hash=sha256:2ef12179d3a291be237280175b542c07a36e7f60718296278d8593d21ca937d4 \ - --hash=sha256:338ae27d6b8745585f87218a3f23f1512dbf52c26c28e322dbe54bcede54ccb9 \ - --hash=sha256:3c0fae6c3be832a0a0473ac912810b2877c8cb9d76ca48de1ed31e1c68386575 \ - --hash=sha256:3fd4abcb888d15a94f32b75d8fd18ee162ca0c064f35b11134be77050296d6ba \ - --hash=sha256:42de32b22b6b804f42c5d98be4f7e5e977ecdd9ee9b660fda1a3edf03b11792d \ - --hash=sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd \ - --hash=sha256:504b320cd4b7eff6f968eddf81127112db685e81f7e36e75f9f84f0df46041c3 \ - --hash=sha256:525808b8019e36eb524b8c68acdd63a37e75714eac50e988180b169d64480a00 \ - --hash=sha256:56d9f2ecac662ca1611d183feb03a3fa4406469dafe241673d521dd5ae92a155 \ - --hash=sha256:5bbe06f8eeafd38e5d0a4894ffec89378b6c6a625ff57e3028921f8ff59318ac \ - --hash=sha256:65c1a9bcdadc6c28eecee2c119465aebff8f7a584dd719facdd9e825ec61ab52 \ - --hash=sha256:68e78619a61ecf91e76aa3e6e8e33fc4894a2bebe93410754bd28fce0a8a4f9f \ - --hash=sha256:69c0f17e9f5a7afdf2cc9fb2d1ce6aabdb3bafb7f38017c0b77862bcec2bbad8 \ - --hash=sha256:6b2b56950d93e41f33b4223ead100ea0fe11f8e6ee5f641eb753ce4b77a7042b \ - --hash=sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007 \ - --hash=sha256:787003c0ddb00500e49a10f2844fac87aa6ce977b90b0feaaf9de23c22508b24 \ - --hash=sha256:7ef3cb2ebbf91e330e3bb937efada0edd9003683db6b57bb108c4001f37a02ea \ - --hash=sha256:8023faf4e01efadfa183e863fefde0046de576c6f14659e8782065bcece22198 \ - --hash=sha256:8758846a7e80910096950b67071243da3e5a20ed2546e6392603c096778d48e0 \ - --hash=sha256:8afafd99945ead6e075b973fefa56379c5b5c53fd8937dad92c662da5d8fd5ee \ - --hash=sha256:8c41976a29d078bb235fea9b2ecd3da465df42a562910f9022f1a03107bd02be \ - --hash=sha256:8e254ae696c88d98da6555f5ace2279cf7cd5b3f52be2b5cf97feafe883b58d2 \ - --hash=sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1 \ - --hash=sha256:9402b03f1a1b4dc4c19845e5c749e3ab82d5078d16a2a4c2cd2df62d57bb0707 \ - --hash=sha256:962f82a3086483f5e5f64dbad880d31038b698494799b097bc59c2edf392fce6 \ - --hash=sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c \ - --hash=sha256:9dcdfd0eaf283af041973bff14a2e143b8bd64e069f4c383416ecd79a81aab58 \ - --hash=sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823 \ - --hash=sha256:aa7bd130efab1c280bed0f45501b7c8795f9fdbeb02e965371bbef3523627779 \ - --hash=sha256:ab4a0df41e7c16a1392727727e7998a467472d0ad65f3ad5e6e765015df08636 \ - --hash=sha256:ad9e82fb8f09ade1c3e1b996a6337afac2b8b9e365f926f5a61aacc71adc5b3c \ - --hash=sha256:af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad \ - --hash=sha256:b076b6226fb84157e3f7c971a47ff3a679d837cf338547532ab866c57930dbee \ - --hash=sha256:b7ff0f54cb4ff66dd38bebd335a38e2c22c41a8ee45aa608efc890ac3e3931bc \ - --hash=sha256:bfce63a9e7834b12b87c64d6b155fdd9b3b96191b6bd334bf37db7ff1fe457f2 \ - --hash=sha256:c011a4149cfbcf9f03994ec2edffcb8b1dc2d2aede7ca243746df97a5d41ce48 \ - --hash=sha256:c9c804664ebe8f83a211cace637506669e7890fec1b4195b505c214e50dd4eb7 \ - --hash=sha256:ca379055a47383d02a5400cb0d110cef0a776fc644cda797db0c5696cfd7e18e \ - --hash=sha256:cb0932dc158471523c9637e807d9bfb93e06a95cbf010f1a38b98623b929ef2b \ - --hash=sha256:cd0f502fe016460680cd20aaa5a76d241d6f35a1c3350c474bac1273803893fa \ - --hash=sha256:ceb01949af7121f9fc39f7d27f91be8546f3fb112c608bc4029aef0bab86a2a5 \ - --hash=sha256:d080e0a5eb2529460b30190fcfcc4199bd7f827663f858a226a81bc27beaa97e \ - --hash=sha256:dd15ff04ffd7e05ffcb7fe79f1b98041b8ea30ae9234aed2a9168b5797c3effb \ - --hash=sha256:df0be2b576a7abbf737b1575f048c23fb1d769f267ec4358296f31c2479db8f9 \ - --hash=sha256:e09031c87a1e51556fdcb46e5bd4f59dfb743061cf93c4d6831bf894f125eb57 \ - --hash=sha256:e4dd52d80b8c83fdce44e12478ad2e85c64ea965e75d66dbeafb0a3e77308fcc \ - --hash=sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc \ - --hash=sha256:fec21693218efe39aa7f8599346e90c705afa52c5b31ae019b2e57e8f6542bb2 \ - --hash=sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11 - # via jinja2 -mypy-extensions==1.0.0 \ - --hash=sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d \ - --hash=sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782 - # via black -packaging==23.2 \ - --hash=sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5 \ - --hash=sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7 - # via black -pathspec==0.12.1 \ - --hash=sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08 \ - --hash=sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712 - # via black -platformdirs==4.1.0 \ - --hash=sha256:11c8f37bcca40db96d8144522d925583bdb7a31f7b0e37e3ed4318400a8e2380 \ - --hash=sha256:906d548203468492d432bcb294d4bc2fff751bf84971fbb2c10918cc206ee420 - # via black -smmap==5.0.1 \ - --hash=sha256:dceeb6c0028fdb6734471eb07c0cd2aae706ccaecab45965ee83f11c8d3b1f62 \ - --hash=sha256:e6d8668fa5f93e706934a62d7b4db19c8d9eb8cf2adbb75ef1b675aa332b69da - # via gitdb -typing==3.7.4.3 \ - --hash=sha256:1187fb9c82fd670d10aa07bbb6cfcfe4bdda42d6fab8d5134f04e8c4d0b71cc9 \ - --hash=sha256:283d868f5071ab9ad873e5e52268d611e851c870a2ba354193026f2dfb29d8b5 - # via -r library_generation/new_client/requirements.in diff --git a/library_generation/new_client/templates.py b/library_generation/new_client/templates.py deleted file mode 100644 index 5b0282ce03..0000000000 --- a/library_generation/new_client/templates.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python3 -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -from jinja2 import Environment, FileSystemLoader -import os -import pathlib - -root_directory = pathlib.Path( - os.path.realpath(os.path.dirname(os.path.realpath(__file__))) -) -print(root_directory) -jinja_env = Environment(loader=FileSystemLoader(str(root_directory / "templates"))) - - -def render(template_name: str, output_name: str, **kwargs): - template = jinja_env.get_template(template_name) - t = template.stream(kwargs) - directory = os.path.dirname(output_name) - if not os.path.isdir(directory): - os.makedirs(directory) - t.dump(str(output_name)) diff --git a/library_generation/owlbot/bin/entrypoint.sh b/library_generation/owlbot/bin/entrypoint.sh index 26ed707591..a26eaec996 100755 --- a/library_generation/owlbot/bin/entrypoint.sh +++ b/library_generation/owlbot/bin/entrypoint.sh @@ -61,7 +61,7 @@ function processModule() { # ensure formatting on all .java files in the repository echo "Reformatting source..." - mvn fmt:format + mvn fmt:format -q echo "...done" } diff --git a/library_generation/postprocess_library.sh b/library_generation/postprocess_library.sh index f7035ec6c8..d46a9c890c 100755 --- a/library_generation/postprocess_library.sh +++ b/library_generation/postprocess_library.sh @@ -20,7 +20,7 @@ # provided # 7 - is_monorepo: whether this library is a monorepo, which implies slightly # different logic -set -xeo pipefail +set -eo pipefail scripts_root=$(dirname "$(readlink -f "$0")") postprocessing_target=$1 @@ -50,22 +50,6 @@ do fi done - -# ensure pyenv scripts are available -eval "$(pyenv init --path)" -eval "$(pyenv init -)" -eval "$(pyenv virtualenv-init -)" - -# create and activate the python virtualenv -python_version=$(cat "${scripts_root}/configuration/python-version") -if [ $(pyenv versions | grep "${python_version}" | wc -l) -eq 0 ]; then - pyenv install "${python_version}" -fi -if [ $(pyenv virtualenvs | grep "${python_version}" | grep "postprocessing" | wc -l) -eq 0 ];then - pyenv virtualenv "${python_version}" "postprocessing" -fi -pyenv activate "postprocessing" - if [[ -z "${owlbot_cli_source_folder}" ]]; then owlbot_cli_source_folder=$(mktemp -d) build_owlbot_cli_source_folder "${postprocessing_target}" "${owlbot_cli_source_folder}" "${preprocessed_sources_path}" @@ -81,7 +65,7 @@ else fi docker run --rm \ - --user $(id -u):$(id -g) \ + --user "$(id -u)":"$(id -g)" \ -v "${postprocessing_target}:/repo" \ -v "${owlbot_cli_source_folder}:/pre-processed-libraries" \ -w /repo \ diff --git a/library_generation/repo-level-postprocess/generate_gapic_bom.sh b/library_generation/repo-level-postprocess/generate_gapic_bom.sh deleted file mode 100755 index ad37553d58..0000000000 --- a/library_generation/repo-level-postprocess/generate_gapic_bom.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash - -set -e - -# Generate BOM of the artifacts in this repository -GENERATION_DIR=$1 -bom_lines="" -# For modules that produce BOMs -for bom_directory in $(find . -maxdepth 3 -name 'google-*-bom' | sort --dictionary-order); do - if [[ "${bom_directory}" = *gapic-libraries-bom ]] || [[ "${bom_directory}" = *google-cloud-core* ]]; then - continue - fi - pom_file="${bom_directory}/pom.xml" - groupId_line=$(grep --max-count=1 'groupId' "${pom_file}") - artifactId_line=$(grep --max-count=1 'artifactId' "${pom_file}") - version_line=$(grep --max-count=1 'x-version-update' "${pom_file}") - - if [[ "$groupId_line" == *"com.google.cloud"* - || "$groupId_line" == *"com.google.analytic"* - || "$groupId_line" == *"com.google.area120"* - || "$groupId_line" == *"io.grafeas"* ]]; then - # The gapic bom mainly includes cloud libraries and ones that have been included already. - # Let's avoid adding com.google.maps and com.google.shopping for now. We may decide to - # add them later. It's more difficult to remove them later without impacting users. - bom_lines+=" \n\ - ${groupId_line}\n\ - ${artifactId_line}\n\ - ${version_line}\n\ - pom\n\ - import\n\ - \n" - fi -done - -# For originally-handwritten modules that do not produce a BOM -for module in $(find . -mindepth 2 -maxdepth 2 -name pom.xml |sort --dictionary-order | xargs dirname); do - if ls "${module}"/*-bom 1> /dev/null 2>&1; then - continue - fi - if ! test -f "${module}/.repo-metadata.json"; then - continue - fi - - pom_file="${module}/pom.xml" - groupId_line=$(grep --max-count=1 'groupId' "${pom_file}") - artifactId_line=$(grep --max-count=1 'artifactId' "${pom_file}") - version_line=$(grep --max-count=1 'x-version-update' "${pom_file}") - bom_lines+=" \n\ - ${groupId_line}\n\ - ${artifactId_line}\n\ - ${version_line}\n\ - \n" -done - -mkdir -p gapic-libraries-bom - -perl -0pe 's/.*<\/dependencies>/\nBOM_ARTIFACT_LIST\n <\/dependencies>/s' "${GENERATION_DIR}/../gapic-libraries-bom/pom.xml" > "${GENERATION_DIR}/bom.pom.xml" -awk -v "dependencyManagements=${bom_lines}" '{gsub(/BOM_ARTIFACT_LIST/,dependencyManagements)}1' \ - "${GENERATION_DIR}/bom.pom.xml" > gapic-libraries-bom/pom.xml -rm "${GENERATION_DIR}/bom.pom.xml" \ No newline at end of file diff --git a/library_generation/repo-level-postprocess/generate_root_pom.sh b/library_generation/repo-level-postprocess/generate_root_pom.sh deleted file mode 100755 index 2cac682c94..0000000000 --- a/library_generation/repo-level-postprocess/generate_root_pom.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -set -e - -GENERATION_DIR=$1; - -# Find all Maven modules (a directory that contains pom.xml) -find . -mindepth 2 -maxdepth 2 -name pom.xml |sort --dictionary-order | xargs dirname \ - |sed -e 's|./||' | xargs -I '{}' echo " {}" > /tmp/repo-modules.txt - -perl -0pe 's/.*<\/modules>/\n <\/modules>/s' ${GENERATION_DIR}/../pom.xml > ${GENERATION_DIR}/parent.pom.xml -awk -v MODULES="`awk -v ORS='\\\\n' '1' /tmp/repo-modules.txt`" '1;//{print MODULES}' ${GENERATION_DIR}/parent.pom.xml > pom.xml -rm ${GENERATION_DIR}/parent.pom.xml \ No newline at end of file diff --git a/library_generation/templates/gapic-libraries-bom.xml.j2 b/library_generation/templates/gapic-libraries-bom.xml.j2 new file mode 100644 index 0000000000..45dbdf42ce --- /dev/null +++ b/library_generation/templates/gapic-libraries-bom.xml.j2 @@ -0,0 +1,37 @@ + + + 4.0.0 + com.google.cloud + gapic-libraries-bom + pom + {{ monorepo_version }} + Google Cloud Java BOM + + BOM for the libraries in google-cloud-java repository. Users should not + depend on this artifact explicitly because this BOM is an implementation + detail of the Libraries BOM. + + + + google-cloud-pom-parent + com.google.cloud + {{ monorepo_version }} + ../google-cloud-pom-parent/pom.xml + + + + + {%- for bom_config in bom_configs %} + + {{ bom_config.group_id }} + {{ bom_config.artifact_id }} + {{ bom_config.version }} + {%- if bom_config.is_import %} + pom + import + {%- endif %} + + {%- endfor %} + + + diff --git a/library_generation/new_client/templates/owlbot.py.j2 b/library_generation/templates/owlbot.py.j2 similarity index 100% rename from library_generation/new_client/templates/owlbot.py.j2 rename to library_generation/templates/owlbot.py.j2 diff --git a/library_generation/new_client/templates/owlbot.yaml.monorepo.j2 b/library_generation/templates/owlbot.yaml.monorepo.j2 similarity index 99% rename from library_generation/new_client/templates/owlbot.yaml.monorepo.j2 rename to library_generation/templates/owlbot.yaml.monorepo.j2 index 3cfcc46aaf..5267a6f8a3 100644 --- a/library_generation/new_client/templates/owlbot.yaml.monorepo.j2 +++ b/library_generation/templates/owlbot.yaml.monorepo.j2 @@ -31,6 +31,6 @@ deep-copy-regex: dest: "/owl-bot-staging/{{ module_name }}/$1/{{ artifact_name }}/src" - source: "/{{ proto_path }}/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/{{ module_name }}/$1/samples/snippets/generated" -{% endif %} +{%- endif %} api-name: {{ api_shortname }} diff --git a/library_generation/templates/root-pom.xml.j2 b/library_generation/templates/root-pom.xml.j2 new file mode 100644 index 0000000000..c48e8b71ef --- /dev/null +++ b/library_generation/templates/root-pom.xml.j2 @@ -0,0 +1,88 @@ + + + 4.0.0 + google-cloud-java + com.google.cloud + 0.201.0 + pom + + + true + + + + gapic-libraries-bom + google-cloud-jar-parent + google-cloud-pom-parent + {%- for module in modules %} + {{ module }} + {%- endfor %} + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 3.1.1 + + true + + + + + + + + release-staging-repository + + + + !gpg.executable + + + + + sonatype-nexus-snapshots + https://google.oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://google.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + release-non-google-oss-sonatype + + + + org.sonatype.plugins + nexus-staging-maven-plugin + + ossrh + https://oss.sonatype.org/ + + + + + + + diff --git a/library_generation/test/compare_poms.py b/library_generation/test/compare_poms.py index 94c94ae128..f58953505d 100644 --- a/library_generation/test/compare_poms.py +++ b/library_generation/test/compare_poms.py @@ -4,112 +4,117 @@ The only comparison points are: element path (e.g. project/dependencies) and element text There is a special case for `dependency`, where the maven coordinates are prepared as well """ -import xml.etree.ElementTree as ET +from library_generation.utilities import eprint +import xml.etree.ElementTree as et from collections import Counter import sys import os + current = os.path.dirname(os.path.realpath(__file__)) parent = os.path.dirname(current) sys.path.append(parent) -from utilities import eprint -""" -Convenience method to access a node's child elements via path and get its text -""" def get_text_from_element(node, element_name, namespace): - child = node.find(namespace + element_name) - return child.text if child is not None else '' + """ + Convenience method to access a node's child elements via path and get + its text. + """ + child = node.find(namespace + element_name) + return child.text if child is not None else "" + -""" -Convenience method to pretty print the contents of a Counter (or dict) -""" def print_counter(counter): - for key, value in counter.items(): - eprint(f'{key}: {value}') + """ + Convenience method to pretty print the contents of a Counter (or dict) + """ + for key, value in counter.items(): + eprint(f"{key}: {value}") + -""" -Recursively traverses a node tree and appends element text to a given -`elements` array. If the element tag is `dependency` -then the maven coordinates for its children will be computed as well -""" def append_to_element_list(node, path, elements): - namespace_start, namespace_end, tag_name = node.tag.rpartition('}') - namespace = namespace_start + namespace_end - if tag_name == 'dependency': - group_id = get_text_from_element(node, 'groupId', namespace) - artifact_id = get_text_from_element(node, 'artifactId', namespace) - artifact_str = '' - artifact_str += group_id - artifact_str += ':' + artifact_id - elements.append(path + '/' + tag_name + '=' + artifact_str) - if node.text and len(node.text.strip()) > 0: - elements.append(path + '/' + tag_name + '=' + node.text) - - if tag_name == 'version': - # versions may be yet to be processed, we disregard them - return elements + """ + Recursively traverses a node tree and appends element text to a given + `elements` array. If the element tag is `dependency` + then the maven coordinates for its children will be computed as well + """ + namespace_start, namespace_end, tag_name = node.tag.rpartition("}") + namespace = namespace_start + namespace_end + if tag_name == "dependency": + group_id = get_text_from_element(node, "groupId", namespace) + artifact_id = get_text_from_element(node, "artifactId", namespace) + artifact_str = "" + artifact_str += group_id + artifact_str += ":" + artifact_id + elements.append(path + "/" + tag_name + "=" + artifact_str) + if node.text and len(node.text.strip()) > 0: + elements.append(path + "/" + tag_name + "=" + node.text) + + if tag_name == "version": + # versions may be yet to be processed, we disregard them + return elements + + for child in node: + child_path = path + "/" + tag_name + append_to_element_list(child, child_path, elements) - for child in node: - child_path = path + '/' + tag_name - append_to_element_list(child, child_path, elements) + return elements - return elements -""" -compares two XMLs for content differences -the argument print_whole_trees determines if both trees should be printed -""" -def compare_xml(file1, file2, print_whole_trees): - try: - tree1 = ET.parse(file1) - tree2 = ET.parse(file2) - except ET.ParseError as e: - eprint(f'Error parsing XML') - raise e - except FileNotFoundError as e: - eprint(f'Error reading file') - raise e - - tree1_elements = [] - tree2_elements = [] - - append_to_element_list(tree1.getroot(), '/', tree1_elements) - append_to_element_list(tree2.getroot(), '/', tree2_elements) - - tree1_counter = Counter(tree1_elements) - tree2_counter = Counter(tree2_elements) - intersection = tree1_counter & tree2_counter - only_in_tree1 = tree1_counter - intersection - only_in_tree2 = tree2_counter - intersection - if print_whole_trees == 'true': - eprint('tree1') - print_counter(tree2_counter) - eprint('tree2') - print_counter(tree1_counter) - if len(only_in_tree1) > 0 or len(only_in_tree2) > 0: - eprint('only in ' + file1) - print_counter(only_in_tree1) - eprint('only in ' + file2) - print_counter(only_in_tree2) - return True - return False +def compare_xml(expected, actual, print_trees): + """ + compares two XMLs for content differences + the argument print_whole_trees determines if both trees should be printed + """ + try: + expected_tree = et.parse(expected) + actual_tree = et.parse(actual) + except et.ParseError as e: + eprint(f"Error parsing XML") + raise e + except FileNotFoundError as e: + eprint(f"Error reading file") + raise e + + expected_elements = [] + actual_elements = [] + + append_to_element_list(expected_tree.getroot(), "/", expected_elements) + append_to_element_list(actual_tree.getroot(), "/", actual_elements) + + expected_counter = Counter(expected_elements) + actual_counter = Counter(actual_elements) + intersection = expected_counter & actual_counter + only_in_expected = expected_counter - intersection + only_in_actual = actual_counter - intersection + if print_trees: + eprint("expected") + print_counter(actual_counter) + eprint("actual") + print_counter(expected_counter) + if len(only_in_expected) > 0 or len(only_in_actual) > 0: + eprint("only in " + expected) + print_counter(only_in_expected) + eprint("only in " + actual) + print_counter(only_in_actual) + return True + return False if __name__ == "__main__": - if len(sys.argv) != 4: - eprint("Usage: python compare_xml.py ") - sys.exit(1) - - file1 = sys.argv[1] - file2 = sys.argv[2] - print_whole_trees = sys.argv[3] - has_diff = compare_xml(file1, file2, print_whole_trees) - - if has_diff: - eprint(f'The poms are different') - sys.exit(1) - eprint('The XML files are the same.') - sys.exit(0) - - + if len(sys.argv) != 4: + eprint( + "Usage: python compare_xml.py " + ) + sys.exit(1) + + file1 = sys.argv[1] + file2 = sys.argv[2] + print_whole_trees = sys.argv[3] + has_diff = compare_xml(file1, file2, print_whole_trees) + + if has_diff: + eprint(f"The poms are different") + sys.exit(1) + eprint("The XML files are the same.") + sys.exit(0) diff --git a/library_generation/test/generate_library_integration_test.sh b/library_generation/test/generate_library_integration_test.sh deleted file mode 100755 index 9b46304da3..0000000000 --- a/library_generation/test/generate_library_integration_test.sh +++ /dev/null @@ -1,152 +0,0 @@ -#!/usr/bin/env bash - -set -xeo pipefail - -# This script is used to test the result of `generate_library.sh` against generated -# source code in the specified repository. -# Specifically, this script will do -# 1. take a configuration yaml describing the structure of the libraries to -# generate -# 2. For each api_shortname, call generate_composed_library.py to generate the groups of libraries -# 3. After the generation is done, compare the resulting library with the -# corresponding cloned repository - -# defaults -googleapis_gen_url="git@github.com:googleapis/googleapis-gen.git" -enable_postprocessing="true" - -script_dir=$(dirname "$(readlink -f "$0")") -proto_path_list="${script_dir}/resources/proto_path_list.txt" -library_generation_dir="${script_dir}"/.. -source "${script_dir}/test_utilities.sh" -source "${script_dir}/../utilities.sh" -output_folder="$(pwd)/output" - - -while [[ $# -gt 0 ]]; do -key="$1" -case $key in - -p|--proto_path_list) - proto_path_list="$2" - shift - ;; - -e|--enable_postprocessing) - enable_postprocessing="$2" - shift - ;; - -g|--googleapis_gen_url) - googleapis_gen_url="$2" - shift - ;; - *) - echo "Invalid option: [$1]" - exit 1 - ;; -esac -shift # past argument or value -done - -mkdir -p "${output_folder}" - -if [ -f "${output_folder}/generation_times" ];then - rm "${output_folder}/generation_times" -fi - -declare -a configuration_yamls=( - "${script_dir}/resources/integration/java-bigtable/generation_config.yaml" - "${script_dir}/resources/integration/google-cloud-java/generation_config.yaml" -) - - -for configuration_yaml in "${configuration_yamls[@]}"; do - library_api_shortnames=$(py_util "get_configuration_yaml_library_api_shortnames" "${configuration_yaml}") - destination_path=$(py_util "get_configuration_yaml_destination_path" "${configuration_yaml}") - pushd "${output_folder}" - if [[ "${destination_path}" == *google-cloud-java* ]]; then - git clone "https://github.com/googleapis/google-cloud-java" - repository_path="${output_folder}/google-cloud-java" - else - git clone "https://github.com/googleapis/${destination_path}" - repository_path="${output_folder}/${destination_path}" - fi - popd - - for api_shortname in ${library_api_shortnames}; do - pushd "${output_folder}" - - echo "Generating library ${api_shortname}..." - generation_start=$(date "+%s") - python3 "${library_generation_dir}"/main.py generate-from-yaml \ - --generation-config-yaml "${configuration_yaml}" \ - --enable-postprocessing "${enable_postprocessing}" \ - --target-library-api-shortname "${api_shortname}" \ - --repository-path "${repository_path}" - generation_end=$(date "+%s") - - # some generations are less than 1 second (0 produces exit code 1 in `expr`) - generation_duration_seconds=$(expr "${generation_end}" - "${generation_start}" || true) - echo "Generation time for ${api_shortname} was ${generation_duration_seconds} seconds." - pushd "${output_folder}" - echo "${proto_path} ${generation_duration_seconds}" >> generation_times - - echo "Generate library finished." - echo "Compare generation result..." - if [ ${enable_postprocessing} == "true" ]; then - echo "Checking out repository..." - if [[ "${destination_path}" == *google-cloud-java* ]]; then - target_folder="${output_folder}/google-cloud-java/java-${api_shortname}" - else - target_folder="${output_folder}/java-${api_shortname}" - fi - - pushd "${target_folder}" - source_diff_result=0 - git diff \ - --ignore-space-at-eol \ - -r \ - --exit-code \ - -- \ - . \ - ':!*pom.xml' \ - ':!*README.md' \ - ':!*gapic_metadata.json' \ - ':!*reflect-config.json' \ - ':!*package-info.java' \ - || source_diff_result=$? - - pom_diff_result=$(compare_poms "${target_folder}") - popd # target_folder - if [[ ${source_diff_result} == 0 ]] && [[ ${pom_diff_result} == 0 ]] ; then - echo "SUCCESS: Comparison finished, no difference is found." - elif [ ${source_diff_result} != 0 ]; then - echo "FAILURE: Differences found in proto path: java-${api_shortname}." - exit "${source_diff_result}" - elif [ ${pom_diff_result} != 0 ]; then - echo "FAILURE: Differences found in generated java-${api_shortname}'s poms" - exit "${pom_diff_result}" - fi - elif [ "${enable_postprocessing}" == "false" ]; then - for proto_path in "${proto_paths[@]}"; do - destination_path=$(compute_destination_path "${proto_path}" "${output_folder}") - # include gapic_metadata.json and package-info.java after - # resolving https://github.com/googleapis/sdk-platform-java/issues/1986 - source_diff_result=0 - diff --strip-trailing-cr -r "googleapis-gen/${proto_path}/${destination_path}" "${output_folder}/${destination_path}" \ - -x "*gradle*" \ - -x "gapic_metadata.json" \ - -x "package-info.java" || source_diff_result=$? - if [ ${source_diff_result} == 0 ] ; then - echo "SUCCESS: Comparison finished, no difference is found." - else - echo "FAILURE: Differences found in proto path: ${proto_path}." - exit "${source_diff_result}" - fi - done - fi - - popd # output_folder - done -done -echo "ALL TESTS SUCCEEDED" -echo "generation times in seconds (does not consider repo checkout):" -cat "${output_folder}/generation_times" diff --git a/library_generation/test/integration_tests.py b/library_generation/test/integration_tests.py new file mode 100644 index 0000000000..8f0cb4a1ef --- /dev/null +++ b/library_generation/test/integration_tests.py @@ -0,0 +1,148 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +import json +import os +import shutil +import unittest +from distutils.dir_util import copy_tree +from distutils.file_util import copy_file +from filecmp import dircmp + +from git import Repo +from pathlib import Path +from typing import List +from typing import Dict +from library_generation.generate_repo import generate_from_yaml +from library_generation.model.generation_config import from_yaml +from library_generation.test.compare_poms import compare_xml +from library_generation.utilities import get_library_name + +config_name = "generation_config.yaml" +script_dir = os.path.dirname(os.path.realpath(__file__)) +# for simplicity, the configuration files should be in a relative directory +# within config_dir named {repo}/generation_config.yaml, where repo is +# the name of the repository the target libraries live. +config_dir = f"{script_dir}/resources/integration" +golden_dir = f"{config_dir}/golden" +repo_prefix = "https://github.com/googleapis" +committish_list = ["chore/test-hermetic-build"] # google-cloud-java + + +class IntegrationTest(unittest.TestCase): + def test_generate_repo(self): + shutil.rmtree(f"{golden_dir}", ignore_errors=True) + os.makedirs(f"{golden_dir}", exist_ok=True) + config_files = self.__get_config_files(config_dir) + i = 0 + for repo, config_file in config_files.items(): + repo_dest = f"{golden_dir}/{repo}" + self.__pull_repo_to(Path(repo_dest), repo, committish_list[i]) + library_names = self.__get_library_names_from_config(config_file) + # prepare golden files + for library_name in library_names: + copy_tree(f"{repo_dest}/{library_name}", f"{golden_dir}/{library_name}") + copy_tree( + f"{repo_dest}/gapic-libraries-bom", f"{golden_dir}/gapic-libraries-bom" + ) + copy_file(f"{repo_dest}/pom.xml", golden_dir) + generate_from_yaml( + generation_config_yaml=config_file, repository_path=repo_dest + ) + # compare result + for library_name in library_names: + print( + f"Compare generation result: " + f"expected library in {golden_dir}/{library_name}, " + f"actual library in {repo_dest}/{library_name}." + ) + compare_result = dircmp( + f"{golden_dir}/{library_name}", + f"{repo_dest}/{library_name}", + ignore=[".repo-metadata.json"], + ) + # compare source code + self.assertEqual([], compare_result.left_only) + self.assertEqual([], compare_result.right_only) + self.assertEqual([], compare_result.diff_files) + print("Source code comparison succeed.") + # compare .repo-metadata.json + self.assertTrue( + self.__compare_json_files( + f"{golden_dir}/{library_name}/.repo-metadata.json", + f"{repo_dest}/{library_name}/.repo-metadata.json", + ), + msg=f"The generated {library_name}/.repo-metadata.json is different from golden.", + ) + print(".repo-metadata.json comparison succeed.") + # compare gapic-libraries-bom/pom.xml and pom.xml + self.assertFalse( + compare_xml( + f"{golden_dir}/gapic-libraries-bom/pom.xml", + f"{repo_dest}/gapic-libraries-bom/pom.xml", + False, + ) + ) + print("gapic-libraries-bom/pom.xml comparison succeed.") + self.assertFalse( + compare_xml( + f"{golden_dir}/pom.xml", + f"{repo_dest}/pom.xml", + False, + ) + ) + print("pom.xml comparison succeed.") + # remove google-cloud-java + i += 1 + + @classmethod + def __pull_repo_to(cls, dest: Path, repo: str, committish: str): + repo_url = f"{repo_prefix}/{repo}" + repo = Repo.clone_from(repo_url, dest) + repo.git.checkout(committish) + + @classmethod + def __get_library_names_from_config(cls, config_path: str) -> List[str]: + config = from_yaml(config_path) + library_names = [] + for library in config.libraries: + library_names.append(f"java-{get_library_name(library)}") + + return library_names + + @classmethod + def __get_config_files(cls, path: str) -> Dict[str, str]: + config_files = {} + for sub_dir in Path(path).resolve().iterdir(): + repo = sub_dir.name + # skip the split repo. + if repo == "golden" or repo == "java-bigtable": + continue + config = f"{sub_dir}/{config_name}" + config_files[repo] = config + + return config_files + + @classmethod + def __compare_json_files(cls, expected: str, actual: str) -> bool: + return cls.__load_json_to_sorted_list( + expected + ) == cls.__load_json_to_sorted_list(actual) + + @classmethod + def __load_json_to_sorted_list(cls, path: str) -> List[tuple]: + with open(path) as f: + data = json.load(f) + res = [(key, value) for key, value in data.items()] + + return sorted(res, key=lambda x: x[0]) diff --git a/library_generation/test/resources/goldens/.OwlBot-golden.yaml b/library_generation/test/resources/goldens/.OwlBot-golden.yaml new file mode 100644 index 0000000000..225b4620bf --- /dev/null +++ b/library_generation/test/resources/goldens/.OwlBot-golden.yaml @@ -0,0 +1,35 @@ +# Copyright 2024 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. + + +deep-remove-regex: +- "/java-bare-metal-solution/grpc-google-.*/src" +- "/java-bare-metal-solution/proto-google-.*/src" +- "/java-bare-metal-solution/google-.*/src" +- "/java-bare-metal-solution/samples/snippets/generated" + +deep-preserve-regex: +- "/java-bare-metal-solution/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + +deep-copy-regex: +- source: "/google/cloud/baremetalsolution/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-bare-metal-solution/$1/proto-google-cloud-bare-metal-solution-$1/src" +- source: "/google/cloud/baremetalsolution/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/java-bare-metal-solution/$1/grpc-google-cloud-bare-metal-solution-$1/src" +- source: "/google/cloud/baremetalsolution/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-bare-metal-solution/$1/google-cloud-bare-metal-solution/src" +- source: "/google/cloud/baremetalsolution/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/java-bare-metal-solution/$1/samples/snippets/generated" + +api-name: baremetalsolution \ No newline at end of file diff --git a/library_generation/test/resources/goldens/.repo-metadata-golden.json b/library_generation/test/resources/goldens/.repo-metadata-golden.json new file mode 100644 index 0000000000..88ee68b2e1 --- /dev/null +++ b/library_generation/test/resources/goldens/.repo-metadata-golden.json @@ -0,0 +1,18 @@ +{ + "api_shortname": "baremetalsolution", + "name_pretty": "Bare Metal Solution", + "product_documentation": "https://cloud.google.com/bare-metal/docs", + "api_description": "Bring your Oracle workloads to Google Cloud with Bare Metal Solution and jumpstart your cloud journey with minimal risk.", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/overview", + "release_level": "preview", + "transport": "grpc", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-bare-metal-solution", + "distribution_name": "com.google.cloud:google-cloud-bare-metal-solution", + "api_id": "baremetalsolution.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true, + "rest_documentation": "https://cloud.google.com/bare-metal/docs/reference/rest", + "rpc_documentation": "https://cloud.google.com/bare-metal/docs/reference/rpc" +} \ No newline at end of file diff --git a/library_generation/test/resources/goldens/owlbot-golden.py b/library_generation/test/resources/goldens/owlbot-golden.py new file mode 100644 index 0000000000..c2c142892a --- /dev/null +++ b/library_generation/test/resources/goldens/owlbot-golden.py @@ -0,0 +1,36 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import synthtool as s +from synthtool.languages import java + + +for library in s.get_staging_dirs(): + # put any special-case replacements here + s.move(library) + +s.remove_staging_dirs() +java.common_templates(monorepo=True, excludes=[ + ".github/*", + ".kokoro/*", + "samples/*", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "SECURITY.md", + "java.header", + "license-checks.xml", + "renovate.json", + ".gitignore", +]) \ No newline at end of file diff --git a/library_generation/test/resources/integration/google-cloud-java/generation_config.yaml b/library_generation/test/resources/integration/google-cloud-java/generation_config.yaml index 7b73f329d0..67164271fb 100644 --- a/library_generation/test/resources/integration/google-cloud-java/generation_config.yaml +++ b/library_generation/test/resources/integration/google-cloud-java/generation_config.yaml @@ -1,90 +1,32 @@ -#Required. -gapic_generator_version: 2.32.0 -#Optional. -# grpc_version: 1.60.0 -#Optional. The protobuf version in googleapis (not sdk-platform-java) is the actual source of truth for generated protos in google-cloud-java -protobuf_version: 23.2 -#Required. -googleapis_commitish: 4512234113a18c1fda1fb0d0ceac8f4b4efe9801 -#Required. +gapic_generator_version: 2.34.0 +protobuf_version: 25.2 +googleapis_commitish: 1a45bf7393b52407188c82e63101db7dc9c72026 owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 -#Required. -synthtool_commitish: fac8444edd5f5526e804c306b766a271772a3e2f -#Required. The root folder name of generated client libraries. +synthtool_commitish: 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5 destination_path: google-cloud-java -#Required. If the number of libraries is greater than 1, the scripts will treat the target repository as a monorepo, with a slightly different workflow mainly in the postprocessing stage libraries: - #Required. Can be used for populating the folder name java-{api_shortName}. This is also the destination-name in new-client.py. - - api_shortname: asset - #Optional. Overrides the root-level commit hash - googleapis_commitish: 4512234113a18c1fda1fb0d0ceac8f4b4efe9801 - #Optional. The default value is the title of service yaml - name_pretty: Cloud Asset - #Required. - library_type: GAPIC_AUTO - #Optional. The default value is com.google.cloud - group_id: com.google.cloud - #Optional. The default value is google.cloud.{api_shortname} - artifact_id: google.cloud.asset - #Optional. The default value is true. - requires_billing: true - #Optional. The default value is documentation.summary from service yaml - api_description: - #Optional. - product_documentation: - #Optional. - client_documentation: - #Optional. - rest_documentation: - #Optional. - rpc_documentation: - #Required. + - api_shortname: apigeeconnect + name_pretty: Apigee Connect + product_documentation: "https://cloud.google.com/apigee/docs/hybrid/v1.3/apigee-connect/" + api_description: "allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet." + release_level: "stable" + library_name: "apigee-connect" + GAPICs: + - proto_path: google/cloud/apigeeconnect/v1 + + - api_shortname: cloudasset + name_pretty: Cloud Asset Inventory + product_documentation: "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" + api_description: "provides inventory services based on a time series database. This database keeps a five week history of Google Cloud asset metadata. The Cloud Asset Inventory export service allows you to export all asset metadata at a certain timestamp or export event change history during a timeframe." + library_name: "asset" + client_documentation: "https://cloud.google.com/java/docs/reference/google-cloud-asset/latest/overview" + distribution_name: "com.google.cloud:google-cloud-asset" + release_level: "stable" + issue_tracker: "https://issuetracker.google.com/issues/new?component=187210&template=0" + api_reference: "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" GAPICs: - #Required. This is a relative path to googleapis/googleapis. We'll parse all the parameters needed by generate_library.sh from BUILD.bazel in this folder. - proto_path: google/cloud/asset/v1 - proto_path: google/cloud/asset/v1p1beta1 - proto_path: google/cloud/asset/v1p2beta1 - proto_path: google/cloud/asset/v1p5beta1 - proto_path: google/cloud/asset/v1p7beta1 - - api_shortname: speech - library_type: GAPIC_AUTO - GAPICs: - - proto_path: google/cloud/speech/v1 - - proto_path: google/cloud/speech/v1p1beta1 - - proto_path: google/cloud/speech/v2 - - api_shortname: apigee-connect - library_type: GAPIC_AUTO - GAPICs: - - proto_path: google/cloud/apigeeconnect/v1 - - api_shortname: dialogflow - library_type: GAPIC_AUTO - GAPICs: - - proto_path: google/cloud/dialogflow/v2beta1 - - proto_path: google/cloud/dialogflow/v2 - - api_shortname: compute - library_type: GAPIC_AUTO - GAPICs: - - proto_path: google/cloud/compute/v1 - - api_shortname: kms - library_type: GAPIC_AUTO - GAPICs: - - proto_path: google/cloud/kms/v1 - - api_shortname: redis - library_type: GAPIC_AUTO - GAPICs: - - proto_path: google/cloud/redis/v1 - - proto_path: google/cloud/redis/v1beta1 - - api_shortname: containeranalysis - library_type: GAPIC_AUTO - GAPICs: - - proto_path: google/devtools/containeranalysis/v1 - - api_shortname: iam - library_type: GAPIC_AUTO - GAPICs: - - proto_path: google/iam/v1 - - proto_path: google/iam/v2 - - api_shortname: iamcredentials - library_type: GAPIC_AUTO - GAPICs: - - proto_path: google/iam/credentials/v1 - diff --git a/library_generation/test/resources/integration/java-bigtable/generation_config.yaml b/library_generation/test/resources/integration/java-bigtable/generation_config.yaml index 4a82a3e2c4..fcad57c819 100644 --- a/library_generation/test/resources/integration/java-bigtable/generation_config.yaml +++ b/library_generation/test/resources/integration/java-bigtable/generation_config.yaml @@ -6,9 +6,9 @@ owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1c synthtool_commitish: 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5 destination_path: java-bigtable libraries: - - api_shortname: bigtable - name_pretty: Cloud Bigtable - library_type: GAPIC_COMBO - GAPICs: - - proto_path: google/bigtable/admin/v2 - - proto_path: google/bigtable/v2 +- api_shortname: bigtable + name_pretty: Cloud Bigtable + library_type: GAPIC_COMBO + GAPICs: + - proto_path: google/bigtable/admin/v2 + - proto_path: google/bigtable/v2 diff --git a/library_generation/test/resources/misc/BUILD_service_config_relative_target.bazel b/library_generation/test/resources/misc/BUILD_service_config_relative_target.bazel new file mode 100644 index 0000000000..ccd59af2fb --- /dev/null +++ b/library_generation/test/resources/misc/BUILD_service_config_relative_target.bazel @@ -0,0 +1,3 @@ +java_gapic_library( + grpc_service_config = ":compute_grpc_service_config.json" +) diff --git a/library_generation/test/resources/misc/BUILD_service_yaml_absolute_target.bazel b/library_generation/test/resources/misc/BUILD_service_yaml_absolute_target.bazel new file mode 100644 index 0000000000..ded899dff7 --- /dev/null +++ b/library_generation/test/resources/misc/BUILD_service_yaml_absolute_target.bazel @@ -0,0 +1,3 @@ +java_gapic_library( + service_yaml = "//google/cloud/videointelligence:videointelligence_v1p3beta1.yaml", +) \ No newline at end of file diff --git a/library_generation/test/resources/misc/testversions.txt b/library_generation/test/resources/misc/versions.txt similarity index 100% rename from library_generation/test/resources/misc/testversions.txt rename to library_generation/test/resources/misc/versions.txt diff --git a/library_generation/test/resources/test_repo_level_postprocess/gapic-libraries-bom/pom-golden.xml b/library_generation/test/resources/test_repo_level_postprocess/gapic-libraries-bom/pom-golden.xml new file mode 100644 index 0000000000..304ee9b892 --- /dev/null +++ b/library_generation/test/resources/test_repo_level_postprocess/gapic-libraries-bom/pom-golden.xml @@ -0,0 +1,45 @@ + + + 4.0.0 + com.google.cloud + gapic-libraries-bom + pom + 1.29.0-SNAPSHOT + Google Cloud Java BOM + + BOM for the libraries in google-cloud-java repository. Users should not + depend on this artifact explicitly because this BOM is an implementation + detail of the Libraries BOM. + + + + google-cloud-pom-parent + com.google.cloud + 1.29.0-SNAPSHOT + ../google-cloud-pom-parent/pom.xml + + + + + + com.google.cloud + google-cloud-dns + 2.33.0-SNAPSHOT + + + com.google.cloud + google-cloud-service-control-bom + 1.35.0-SNAPSHOT + pom + import + + + com.google.cloud + google-cloud-tasks-bom + 2.35.0-SNAPSHOT + pom + import + + + + \ No newline at end of file diff --git a/library_generation/test/resources/test_repo_level_postprocess/java-dns/pom.xml b/library_generation/test/resources/test_repo_level_postprocess/java-dns/pom.xml new file mode 100644 index 0000000000..28bdaad76b --- /dev/null +++ b/library_generation/test/resources/test_repo_level_postprocess/java-dns/pom.xml @@ -0,0 +1,9 @@ + + + 4.0.0 + com.google.cloud + google-cloud-dns + jar + 2.33.0-SNAPSHOT + Google Cloud DNS Parent + diff --git a/library_generation/test/resources/test_repo_level_postprocess/java-service-control/google-cloud-service-control-bom/pom.xml b/library_generation/test/resources/test_repo_level_postprocess/java-service-control/google-cloud-service-control-bom/pom.xml new file mode 100644 index 0000000000..483838475d --- /dev/null +++ b/library_generation/test/resources/test_repo_level_postprocess/java-service-control/google-cloud-service-control-bom/pom.xml @@ -0,0 +1,8 @@ + + + 4.0.0 + com.google.cloud + google-cloud-service-control-bom + 1.35.0-SNAPSHOT + pom + diff --git a/library_generation/test/resources/test_repo_level_postprocess/java-tasks/google-cloud-tasks-bom/pom.xml b/library_generation/test/resources/test_repo_level_postprocess/java-tasks/google-cloud-tasks-bom/pom.xml new file mode 100644 index 0000000000..3138a26ce7 --- /dev/null +++ b/library_generation/test/resources/test_repo_level_postprocess/java-tasks/google-cloud-tasks-bom/pom.xml @@ -0,0 +1,8 @@ + + + 4.0.0 + com.google.cloud + google-cloud-tasks-bom + 2.35.0-SNAPSHOT + pom + diff --git a/library_generation/test/resources/test_repo_level_postprocess/pom-golden.xml b/library_generation/test/resources/test_repo_level_postprocess/pom-golden.xml new file mode 100644 index 0000000000..8347287bc3 --- /dev/null +++ b/library_generation/test/resources/test_repo_level_postprocess/pom-golden.xml @@ -0,0 +1,88 @@ + + + 4.0.0 + google-cloud-java + com.google.cloud + 0.201.0 + pom + + + true + + + + gapic-libraries-bom + google-cloud-jar-parent + google-cloud-pom-parent + java-dns + java-service-control + java-tasks + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 3.1.1 + + true + + + + + + + + release-staging-repository + + + + !gpg.executable + + + + + sonatype-nexus-snapshots + https://google.oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://google.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + release-non-google-oss-sonatype + + + + org.sonatype.plugins + nexus-staging-maven-plugin + + ossrh + https://oss.sonatype.org/ + + + + + + + \ No newline at end of file diff --git a/library_generation/test/resources/test_repo_level_postprocess/versions.txt b/library_generation/test/resources/test_repo_level_postprocess/versions.txt new file mode 100644 index 0000000000..6a537f4a39 --- /dev/null +++ b/library_generation/test/resources/test_repo_level_postprocess/versions.txt @@ -0,0 +1,4 @@ +# Format: +# module:released-version:current-version + +google-cloud-java:1.28.0:1.29.0-SNAPSHOT diff --git a/library_generation/test/unit_tests.py b/library_generation/test/unit_tests.py index 13d2eaacf9..f819bae3e7 100644 --- a/library_generation/test/unit_tests.py +++ b/library_generation/test/unit_tests.py @@ -1,190 +1,371 @@ -""" -Unit tests for utilities.py -""" +#!/usr/bin/env python3 +# Copyright 2024 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. import unittest import os import io -import sys import contextlib import subprocess -current = os.path.dirname(os.path.realpath(__file__)) -parent = os.path.dirname(current) -sys.path.append(parent) -import utilities as util -from model.GapicConfig import GapicConfig -from model.GenerationConfig import GenerationConfig -from model.ClientInputs import parse as parse_build_file - -script_dir = os.path.dirname(os.path.realpath(__file__)) -resources_dir = os.path.join(script_dir, 'resources') - -class UtilitiesTest(unittest.TestCase): - - CONFIGURATION_YAML_PATH = os.path.join(current, 'resources', 'integration', - 'google-cloud-java', 'generation_config.yaml') - - def test_create_argument_valid_container_succeeds(self): - container_value = 'google/test/v1' - container = GapicConfig(container_value) - argument_key = 'proto_path' - result = util.create_argument(argument_key, container) - self.assertEqual([ f'--{argument_key}', container_value], result) - - def test_create_argument_empty_container_returns_empty_list(self): - container = dict() - argument_key = 'proto_path' - result = util.create_argument(argument_key, container) - self.assertEqual([], result) - - def test_create_argument_none_container_fails(self): - container = None - argument_key = 'proto_path' - result = util.create_argument(argument_key, container) - self.assertEqual([], result) - - def test_get_configuration_yaml_library_api_shortnames_valid_input_returns_valid_list(self): - result = util.get_configuration_yaml_library_api_shortnames(self.CONFIGURATION_YAML_PATH) - self.assertEqual('asset speech apigee-connect dialogflow compute kms ' - + 'redis containeranalysis iam iamcredentials', result) - - def test_get_configuration_yaml_destination_path_returns_valid_destination_path(self): - result = util.get_configuration_yaml_destination_path(self.CONFIGURATION_YAML_PATH) - self.assertEqual('google-cloud-java', result) - - def test_sh_util_existent_function_succeeds(self): - result = util.sh_util('extract_folder_name path/to/folder_name') - self.assertEqual('folder_name', result) - - def test_sh_util_nonexistent_function_fails(self): - with self.assertRaises(RuntimeError): - result = util.sh_util('nonexistent_function') - - def test_eprint_valid_input_succeeds(self): - test_input='This is some test input' - # create a stdio capture object - stderr_capture = io.StringIO() - # run eprint() with the capture object - with contextlib.redirect_stderr(stderr_capture): - util.eprint(test_input) - result = stderr_capture.getvalue() - # print() appends a `\n` each time it's called - self.assertEqual(test_input + '\n', result) - - def test_delete_if_exists_preexisting_temp_files_succeeds(self): - # create temporary directory - # also remove last character (\n) - temp_dir = subprocess.check_output(['mktemp', '-d']).decode()[:-1] - - # add a file and a folder to the temp dir - file = os.path.join(temp_dir, 'temp_file') - with open(file, 'a'): - os.utime(file, None) - folder = os.path.join(temp_dir, 'temp_child_dir') - os.mkdir(folder) - self.assertEqual(2, len(os.listdir(temp_dir))) - - # remove file and folder - util.delete_if_exists(file) - util.delete_if_exists(folder) - self.assertEqual(0, len(os.listdir(temp_dir))) - - def test_client_inputs_parse_grpc_only_suceeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, '', 'BUILD_grpc.bazel') - self.assertEqual('grpc', parsed.transport) - - def test_client_inputs_parse_grpc_only_suceeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, '', 'BUILD_grpc.bazel') - self.assertEqual('grpc', parsed.transport) - - def test_client_inputs_parse_grpc_rest_suceeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, '', 'BUILD_grpc_rest.bazel') - self.assertEqual('grpc+rest', parsed.transport) - - def test_client_inputs_parse_rest_suceeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, '', 'BUILD_rest.bazel') - self.assertEqual('rest', parsed.transport) - - def test_client_inputs_parse_empty_include_samples_suceeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, '', 'BUILD_include_samples_empty.bazel') - self.assertEqual('false', parsed.include_samples) - - def test_client_inputs_parse_include_samples_false_suceeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, '', 'BUILD_include_samples_false.bazel') - self.assertEqual('false', parsed.include_samples) - - def test_client_inputs_parse_include_samples_true_suceeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, '', 'BUILD_include_samples_true.bazel') - self.assertEqual('true', parsed.include_samples) - - def test_client_inputs_parse_empty_rest_numeric_enums_suceeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, '', 'BUILD_rest_numeric_enums_empty.bazel') - self.assertEqual('false', parsed.rest_numeric_enum) - - def test_client_inputs_parse_include_samples_false_suceeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, '', 'BUILD_rest_numeric_enums_false.bazel') - self.assertEqual('false', parsed.rest_numeric_enum) - - def test_client_inputs_parse_include_samples_true_suceeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, '', 'BUILD_rest_numeric_enums_true.bazel') - self.assertEqual('true', parsed.rest_numeric_enum) - - def test_client_inputs_parse_no_gapic_library_returns_proto_only_true(self): - build_file = os.path.join(resources_dir, 'misc') - # include_samples_empty only has a gradle assembly rule - parsed = parse_build_file(build_file, '', 'BUILD_include_samples_empty.bazel') - self.assertEqual('true', parsed.proto_only) - - def test_client_inputs_parse_with_gapic_library_returns_proto_only_false(self): - build_file = os.path.join(resources_dir, 'misc') - # rest.bazel has a java_gapic_library rule - parsed = parse_build_file(build_file, '', 'BUILD_rest.bazel') - self.assertEqual('false', parsed.proto_only) - - def test_client_inputs_parse_gapic_yaml_succeeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, 'test/versioned/path', 'BUILD_gapic_yaml.bazel') - self.assertEqual('test/versioned/path/test_gapic_yaml.yaml', parsed.gapic_yaml) - - def test_client_inputs_parse_no_gapic_yaml_returns_empty_string(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, 'test/versioned/path', 'BUILD_no_gapic_yaml.bazel') - self.assertEqual('', parsed.gapic_yaml) - - def test_client_inputs_parse_service_config_succeeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, 'test/versioned/path', 'BUILD_service_config.bazel') - self.assertEqual('test/versioned/path/test_service_config.json', parsed.service_config) - - def test_client_inputs_parse_no_service_config_returns_empty_string(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, 'test/versioned/path', 'BUILD_no_service_config.bazel') - self.assertEqual('', parsed.service_config) - - def test_client_inputs_parse_service_yaml_succeeds(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, 'test/versioned/path', 'BUILD_service_yaml.bazel') - self.assertEqual('test/versioned/path/test_service_yaml.yaml', parsed.service_yaml) - - def test_client_inputs_parse_no_service_yaml_returns_empty_string(self): - build_file = os.path.join(resources_dir, 'misc') - parsed = parse_build_file(build_file, 'test/versioned/path', 'BUILD_no_service_yaml.bazel') - self.assertEqual('', parsed.service_yaml) +from pathlib import Path +from difflib import unified_diff +from typing import List +from library_generation import utilities as util +from library_generation.model.gapic_config import GapicConfig +from library_generation.model.generation_config import GenerationConfig +from library_generation.model.gapic_inputs import parse as parse_build_file +from library_generation.model.library_config import LibraryConfig +script_dir = os.path.dirname(os.path.realpath(__file__)) +resources_dir = os.path.join(script_dir, "resources") +build_file = Path(os.path.join(resources_dir, "misc")).resolve() +library_1 = LibraryConfig( + api_shortname="baremetalsolution", + name_pretty="Bare Metal Solution", + product_documentation="https://cloud.google.com/bare-metal/docs", + api_description="Bring your Oracle workloads to Google Cloud with Bare Metal Solution and jumpstart your cloud journey with minimal risk.", + gapic_configs=list(), + library_name="bare-metal-solution", + rest_documentation="https://cloud.google.com/bare-metal/docs/reference/rest", + rpc_documentation="https://cloud.google.com/bare-metal/docs/reference/rpc", +) +library_2 = LibraryConfig( + api_shortname="secretmanager", + name_pretty="Secret Management", + product_documentation="https://cloud.google.com/solutions/secrets-management/", + api_description="allows you to encrypt, store, manage, and audit infrastructure and application-level secrets.", + gapic_configs=list(), +) +class UtilitiesTest(unittest.TestCase): + """ + Unit tests for utilities.py + """ + + CONFIGURATION_YAML_PATH = os.path.join( + script_dir, + "resources", + "integration", + "google-cloud-java", + "generation_config.yaml", + ) + + def test_create_argument_valid_container_succeeds(self): + container_value = "google/test/v1" + container = GapicConfig(container_value) + argument_key = "proto_path" + result = util.create_argument(argument_key, container) + self.assertEqual([f"--{argument_key}", container_value], result) + + def test_create_argument_empty_container_returns_empty_list(self): + container = dict() + argument_key = "proto_path" + result = util.create_argument(argument_key, container) + self.assertEqual([], result) + + def test_create_argument_none_container_fails(self): + container = None + argument_key = "proto_path" + result = util.create_argument(argument_key, container) + self.assertEqual([], result) + + def test_sh_util_existent_function_succeeds(self): + result = util.sh_util("extract_folder_name path/to/folder_name") + self.assertEqual("folder_name", result) + + def test_sh_util_nonexistent_function_fails(self): + with self.assertRaises(RuntimeError): + result = util.sh_util("nonexistent_function") + + def test_eprint_valid_input_succeeds(self): + test_input = "This is some test input" + # create a stdio capture object + stderr_capture = io.StringIO() + # run eprint() with the capture object + with contextlib.redirect_stderr(stderr_capture): + util.eprint(test_input) + result = stderr_capture.getvalue() + # print() appends a `\n` each time it's called + self.assertEqual(test_input + "\n", result) + + def test_gapic_inputs_parse_grpc_only_succeeds(self): + parsed = parse_build_file(build_file, "", "BUILD_grpc.bazel") + self.assertEqual("grpc", parsed.transport) + + def test_gapic_inputs_parse_grpc_rest_succeeds(self): + parsed = parse_build_file(build_file, "", "BUILD_grpc_rest.bazel") + self.assertEqual("grpc+rest", parsed.transport) + + def test_gapic_inputs_parse_rest_succeeds(self): + parsed = parse_build_file(build_file, "", "BUILD_rest.bazel") + self.assertEqual("rest", parsed.transport) + + def test_gapic_inputs_parse_empty_include_samples_succeeds(self): + parsed = parse_build_file(build_file, "", "BUILD_include_samples_empty.bazel") + self.assertEqual("false", parsed.include_samples) + + def test_gapic_inputs_parse_include_samples_false_succeeds(self): + parsed = parse_build_file(build_file, "", "BUILD_include_samples_false.bazel") + self.assertEqual("false", parsed.include_samples) + + def test_gapic_inputs_parse_include_samples_true_succeeds(self): + parsed = parse_build_file(build_file, "", "BUILD_include_samples_true.bazel") + self.assertEqual("true", parsed.include_samples) + + def test_gapic_inputs_parse_empty_rest_numeric_enums_succeeds(self): + parsed = parse_build_file( + build_file, "", "BUILD_rest_numeric_enums_empty.bazel" + ) + self.assertEqual("false", parsed.rest_numeric_enum) + + def test_gapic_inputs_parse_rest_numeric_enums_false_succeeds(self): + parsed = parse_build_file( + build_file, "", "BUILD_rest_numeric_enums_false.bazel" + ) + self.assertEqual("false", parsed.rest_numeric_enum) + + def test_gapic_inputs_parse_rest_numeric_enums_true_succeeds(self): + parsed = parse_build_file(build_file, "", "BUILD_rest_numeric_enums_true.bazel") + self.assertEqual("true", parsed.rest_numeric_enum) + + def test_gapic_inputs_parse_no_gapic_library_returns_proto_only_true(self): + # include_samples_empty only has a gradle assembly rule + parsed = parse_build_file(build_file, "", "BUILD_include_samples_empty.bazel") + self.assertEqual("true", parsed.proto_only) + + def test_gapic_inputs_parse_with_gapic_library_returns_proto_only_false(self): + # rest.bazel has a java_gapic_library rule + parsed = parse_build_file(build_file, "", "BUILD_rest.bazel") + self.assertEqual("false", parsed.proto_only) + + def test_gapic_inputs_parse_gapic_yaml_succeeds(self): + parsed = parse_build_file( + build_file, "test/versioned/path", "BUILD_gapic_yaml.bazel" + ) + self.assertEqual("test/versioned/path/test_gapic_yaml.yaml", parsed.gapic_yaml) + + def test_gapic_inputs_parse_no_gapic_yaml_returns_empty_string(self): + parsed = parse_build_file( + build_file, "test/versioned/path", "BUILD_no_gapic_yaml.bazel" + ) + self.assertEqual("", parsed.gapic_yaml) + + def test_gapic_inputs_parse_service_config_succeeds(self): + parsed = parse_build_file( + build_file, "test/versioned/path", "BUILD_service_config.bazel" + ) + self.assertEqual( + "test/versioned/path/test_service_config.json", parsed.service_config + ) + + def test_gapic_inputs_parse_service_yaml_relative_target(self): + parsed = parse_build_file( + build_file, + "google/cloud/compute/v1", + "BUILD_service_config_relative_target.bazel", + ) + self.assertEqual( + "google/cloud/compute/v1/compute_grpc_service_config.json", + parsed.service_config, + ) + + def test_gapic_inputs_parse_no_service_config_returns_empty_string(self): + parsed = parse_build_file( + build_file, "test/versioned/path", "BUILD_no_service_config.bazel" + ) + self.assertEqual("", parsed.service_config) + + def test_gapic_inputs_parse_service_yaml_succeeds(self): + parsed = parse_build_file( + build_file, "test/versioned/path", "BUILD_service_yaml.bazel" + ) + self.assertEqual( + "test/versioned/path/test_service_yaml.yaml", parsed.service_yaml + ) + + def test_gapic_inputs_parse_service_yaml_absolute_target(self): + parsed = parse_build_file( + build_file, "", "BUILD_service_yaml_absolute_target.bazel" + ) + self.assertEqual( + "google/cloud/videointelligence/videointelligence_v1p3beta1.yaml", + parsed.service_yaml, + ) + + def test_gapic_inputs_parse_no_service_yaml_returns_empty_string(self): + parsed = parse_build_file( + build_file, "test/versioned/path", "BUILD_no_service_yaml.bazel" + ) + self.assertEqual("", parsed.service_yaml) + + def test_remove_version_from_returns_non_versioned_path(self): + proto_path = "google/cloud/aiplatform/v1" + self.assertEqual( + "google/cloud/aiplatform", util.remove_version_from(proto_path) + ) + + def test_remove_version_from_returns_self(self): + proto_path = "google/cloud/aiplatform" + self.assertEqual( + "google/cloud/aiplatform", util.remove_version_from(proto_path) + ) + + def test_get_version_from_returns_current(self): + versions_file = f"{resources_dir}/misc/versions.txt" + artifact = "gax-grpc" + self.assertEqual( + "2.33.1-SNAPSHOT", util.get_version_from(versions_file, artifact) + ) + + def test_get_version_from_returns_released(self): + versions_file = f"{resources_dir}/misc/versions.txt" + artifact = "gax-grpc" + self.assertEqual("2.34.0", util.get_version_from(versions_file, artifact, True)) + + def test_get_library_returns_library_name(self): + self.assertEqual("bare-metal-solution", util.get_library_name(library_1)) + + def test_get_library_returns_api_shortname(self): + self.assertEqual("secretmanager", util.get_library_name(library_2)) + + def test_generate_prerequisite_files_success(self): + library_path = f"{resources_dir}/goldens" + files = [ + f"{library_path}/.repo-metadata.json", + f"{library_path}/.OwlBot.yaml", + f"{library_path}/owlbot.py", + ] + self.__cleanup(files) + proto_path = "google/cloud/baremetalsolution/v2" + transport = "grpc" + util.generate_prerequisite_files( + library=library_1, + proto_path=proto_path, + transport=transport, + library_path=library_path, + ) + + self.__compare_files( + f"{library_path}/.repo-metadata.json", + f"{library_path}/.repo-metadata-golden.json", + ) + self.__compare_files( + f"{library_path}/.OwlBot.yaml", f"{library_path}/.OwlBot-golden.yaml" + ) + self.__compare_files( + f"{library_path}/owlbot.py", f"{library_path}/owlbot-golden.py" + ) + + def test_prepare_repo_monorepo_success(self): + gen_config = self.__get_a_gen_config(2) + repo_config = util.prepare_repo( + gen_config=gen_config, + library_config=gen_config.libraries, + repo_path=f"{resources_dir}/misc", + ) + self.assertEqual("output", Path(repo_config.output_folder).name) + library_path = sorted([Path(key).name for key in repo_config.libraries]) + self.assertEqual( + ["java-bare-metal-solution", "java-secretmanager"], library_path + ) + + def test_prepare_repo_monorepo_failed(self): + gen_config = self.__get_a_gen_config(2) + self.assertRaises( + FileNotFoundError, + util.prepare_repo, + gen_config, + gen_config.libraries, + f"{resources_dir}/non-exist", + ) + + def test_prepare_repo_split_repo_success(self): + gen_config = self.__get_a_gen_config(1) + repo_config = util.prepare_repo( + gen_config=gen_config, + library_config=gen_config.libraries, + repo_path=f"{resources_dir}/misc", + ) + self.assertEqual("output", Path(repo_config.output_folder).name) + library_path = sorted([Path(key).name for key in repo_config.libraries]) + self.assertEqual(["misc"], library_path) + + def test_repo_level_post_process_success(self): + repository_path = f"{resources_dir}/test_repo_level_postprocess" + versions_file = f"{repository_path}/versions.txt" + files = [ + f"{repository_path}/pom.xml", + f"{repository_path}/gapic-libraries-bom/pom.xml", + ] + self.__cleanup(files) + util.repo_level_post_process( + repository_path=repository_path, versions_file=versions_file + ) + self.__compare_files( + expect=f"{repository_path}/pom-golden.xml", + actual=f"{repository_path}/pom.xml", + ) + self.__compare_files( + expect=f"{repository_path}/gapic-libraries-bom/pom-golden.xml", + actual=f"{repository_path}/gapic-libraries-bom/pom.xml", + ) + + def __compare_files(self, expect: str, actual: str): + with open(expect, "r") as f: + expected_lines = f.readlines() + with open(actual, "r") as f: + actual_lines = f.readlines() + + diff = list(unified_diff(expected_lines, actual_lines)) + self.assertEqual( + first=[], second=diff, msg="Unexpected file contents:\n" + "".join(diff) + ) + + @staticmethod + def __get_a_gen_config(num: int): + """ + Returns an object of GenerationConfig with one or two of + LibraryConfig objects. Other attributes are set to empty str. + + :param num: the number of LibraryConfig objects associated with + the GenerationConfig. Only support one or two. + :return: an object of GenerationConfig + """ + if num > 1: + libraries = [library_1, library_2] + else: + libraries = [library_1] + + return GenerationConfig( + gapic_generator_version="", + googleapis_commitish="", + owlbot_cli_image="", + synthtool_commitish="", + libraries=libraries, + ) + + @staticmethod + def __cleanup(files: List[str]): + for file in files: + path = Path(file).resolve() + if path.is_file(): + path.unlink() + elif path.is_dir(): + path.rmdir() if __name__ == "__main__": - unittest.main() + unittest.main() diff --git a/library_generation/utilities.py b/library_generation/utilities.py index 0772e8b260..1eff1ae947 100755 --- a/library_generation/utilities.py +++ b/library_generation/utilities.py @@ -1,125 +1,486 @@ - +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +import json import sys import subprocess import os import shutil -from collections.abc import Sequence -from model.GenerationConfig import GenerationConfig +import re +from pathlib import Path +from lxml import etree +from library_generation.model.bom_config import BomConfig +from library_generation.model.generation_config import GenerationConfig +from library_generation.model.library_config import LibraryConfig from typing import List +from jinja2 import Environment, FileSystemLoader + +from library_generation.model.repo_config import RepoConfig script_dir = os.path.dirname(os.path.realpath(__file__)) +jinja_env = Environment(loader=FileSystemLoader(f"{script_dir}/templates")) +project_tag = "{http://maven.apache.org/POM/4.0.0}" +group_id_tag = "groupId" +artifact_tag = "artifactId" +version_tag = "version" + + +def __render(template_name: str, output_name: str, **kwargs): + template = jinja_env.get_template(template_name) + t = template.stream(kwargs) + directory = os.path.dirname(output_name) + if not os.path.isdir(directory): + os.makedirs(directory) + t.dump(str(output_name)) + + +def __search_for_java_modules( + repository_path: str, +) -> List[str]: + repo = Path(repository_path).resolve() + modules = [] + for sub_dir in repo.iterdir(): + if sub_dir.is_dir() and sub_dir.name.startswith("java-"): + modules.append(sub_dir.name) + return sorted(modules) + + +def __search_for_bom_artifact( + repository_path: str, +) -> List[BomConfig]: + repo = Path(repository_path).resolve() + module_exclusions = ["gapic-libraries-bom"] + group_id_inclusions = [ + "com.google.cloud", + "com.google.analytics", + "com.google.area120", + ] + bom_configs = [] + for module in repo.iterdir(): + if module.is_file() or module.name in module_exclusions: + continue + for sub_module in module.iterdir(): + if sub_module.is_dir() and sub_module.name.endswith("-bom"): + root = etree.parse(f"{sub_module}/pom.xml").getroot() + group_id = root.find(f"{project_tag}{group_id_tag}").text + if group_id not in group_id_inclusions: + continue + artifact_id = root.find(f"{project_tag}{artifact_tag}").text + version = root.find(f"{project_tag}{version_tag}").text + index = artifact_id.rfind("-") + version_annotation = artifact_id[:index] + bom_configs.append( + BomConfig( + group_id=group_id, + artifact_id=artifact_id, + version=version, + version_annotation=version_annotation, + ) + ) + # handle edge case: java-grafeas + bom_configs += __handle_special_bom( + repository_path=repository_path, + module="java-grafeas", + group_id="io.grafeas", + artifact_id="grafeas", + ) + # handle edge case: java-dns + bom_configs += __handle_special_bom( + repository_path=repository_path, + module="java-dns", + group_id="com.google.cloud", + artifact_id="google-cloud-dns", + ) + # handle edge case: java-notification + bom_configs += __handle_special_bom( + repository_path=repository_path, + module="java-notification", + group_id="com.google.cloud", + artifact_id="google-cloud-notification", + ) + + return sorted(bom_configs) + + +def __handle_special_bom( + repository_path: str, + module: str, + group_id: str, + artifact_id: str, +) -> List[BomConfig]: + pom = f"{repository_path}/{module}/pom.xml" + if not Path(pom).exists(): + return [] + root = etree.parse(pom).getroot() + version = root.find(f"{project_tag}{version_tag}").text + return [ + BomConfig( + group_id=group_id, + artifact_id=artifact_id, + version=version, + version_annotation=artifact_id, + is_import=False, + ) + ] -""" -Generates a list of two elements [argument, value], or returns -an empty array if arg_val is None -""" def create_argument(arg_key: str, arg_container: object) -> List[str]: - arg_val = getattr(arg_container, arg_key, None) - if arg_val is not None: - return [f'--{arg_key}', f'{arg_val}'] - return [] - -""" -For a given configuration yaml path, it returns a space-separated list of -the api_shortnames contained in such configuration_yaml -""" -def get_configuration_yaml_library_api_shortnames(generation_config_yaml: str) -> List[str]: - config = GenerationConfig.from_yaml(generation_config_yaml) - result = '' - for library in config.libraries: - result += f'{library.api_shortname} ' - return result[:-1] - -""" -For a given configuration yaml path, it returns the destination_path -entry at the root of the yaml -""" -def get_configuration_yaml_destination_path(generation_config_yaml: str) -> str: - config = GenerationConfig.from_yaml(generation_config_yaml) - return config.destination_path or '' - -""" -Runs a process with the given "arguments" list and prints its output. If the process -fails, then the whole program exits -""" -def run_process_and_print_output(arguments: List[str], job_name: str = 'Job'): - # check_output() raises an exception if it exited with a nonzero code - try: - output = subprocess.check_output(arguments, stderr=subprocess.STDOUT) - print(output.decode(), end='', flush=True) - print(f'{job_name} finished successfully') - except subprocess.CalledProcessError as ex: - print(ex.output.decode(), end='', flush=True) - print(f'{job_name} failed') - sys.exit(1) - - -""" -Calls a function defined in library_generation/utilities.sh -""" + """ + Generates a list of two elements [argument, value], or returns + an empty array if arg_val is None + """ + arg_val = getattr(arg_container, arg_key, None) + if arg_val is not None: + return [f"--{arg_key}", f"{arg_val}"] + return [] + + +def get_library_name( + library: LibraryConfig, +) -> str: + """ + Return the library name of a given LibraryConfig object + :param library: an object of LibraryConfig + :return: the library name + """ + return library.library_name if library.library_name else library.api_shortname + + +def run_process_and_print_output(arguments: List[str], job_name: str = "Job"): + """ + Runs a process with the given "arguments" list and prints its output. + If the process fails, then the whole program exits + """ + # check_output() raises an exception if it exited with a nonzero code + try: + output = subprocess.check_output(arguments, stderr=subprocess.STDOUT) + print(output.decode(), end="", flush=True) + print(f"{job_name} finished successfully") + except subprocess.CalledProcessError as ex: + print(ex.output.decode(), end="", flush=True) + print(f"{job_name} failed") + sys.exit(1) + + def sh_util(statement: str, **kwargs) -> str: - if 'stdout' not in kwargs: - kwargs['stdout'] = subprocess.PIPE - if 'stderr' not in kwargs: - kwargs['stderr'] = subprocess.PIPE - output = '' - with subprocess.Popen( - ['bash', '-exc', f'source {script_dir}/utilities.sh && {statement}'], - **kwargs, - ) as proc: - print('command stderr:') - for line in proc.stderr: - print(line.decode(), end='', flush=True) - print('command stdout:') - for line in proc.stdout: - print(line.decode(), end='', flush=True) - output += line.decode() - proc.wait() - if proc.returncode != 0: - raise RuntimeError(f'function {statement} failed with exit code {proc.returncode}') - # captured stdout may contain a newline at the end, we remove it - if len(output) > 0 and output[-1] == '\n': - output = output[:-1] - return output - -""" -prints to stderr -""" + """ + Calls a function defined in library_generation/utilities.sh + """ + if "stdout" not in kwargs: + kwargs["stdout"] = subprocess.PIPE + if "stderr" not in kwargs: + kwargs["stderr"] = subprocess.PIPE + output = "" + with subprocess.Popen( + ["bash", "-exc", f"source {script_dir}/utilities.sh && {statement}"], + **kwargs, + ) as proc: + print("command stderr:") + for line in proc.stderr: + print(line.decode(), end="", flush=True) + print("command stdout:") + for line in proc.stdout: + print(line.decode(), end="", flush=True) + output += line.decode() + proc.wait() + if proc.returncode != 0: + raise RuntimeError( + f"function {statement} failed with exit code {proc.returncode}" + ) + # captured stdout may contain a newline at the end, we remove it + if len(output) > 0 and output[-1] == "\n": + output = output[:-1] + return output + + def eprint(*args, **kwargs): - print(*args, file=sys.stderr, **kwargs) + """ + prints to stderr + """ + print(*args, file=sys.stderr, **kwargs) + + +def remove_version_from(proto_path: str) -> str: + """ + Remove the version of a proto_path + :param proto_path: versioned proto_path + :return: the proto_path without version + """ + version_pattern = "^v[1-9]" + index = proto_path.rfind("/") + version = proto_path[index + 1 :] + if re.match(version_pattern, version): + return proto_path[:index] + return proto_path + + +def check_monorepo(config: GenerationConfig) -> bool: + """ + Check whether to generate a monorepo according to the + generation config. + :param config: the generation configuration + :return: True if it's to generate a monorepo + """ + return len(config.libraries) > 1 + + +def prepare_repo( + gen_config: GenerationConfig, + library_config: List[LibraryConfig], + repo_path: str, + language: str = "java", +) -> RepoConfig: + """ + Gather information of the generated repository. + + :param gen_config: a GenerationConfig object representing a parsed + configuration yaml + :param library_config: a LibraryConfig object contained inside config, + passed here for convenience and to prevent all libraries to be processed + :param repo_path: the path to which the generated repository goes + :param language: programming language of the library + :return: a RepoConfig object contained repository information + :raise FileNotFoundError if there's no versions.txt in repo_path + """ + output_folder = sh_util("get_output_folder") + print(f"output_folder: {output_folder}") + os.makedirs(output_folder, exist_ok=True) + is_monorepo = check_monorepo(gen_config) + libraries = {} + for library in library_config: + library_name = ( + f"{language}-{library.library_name}" + if library.library_name + else f"{language}-{library.api_shortname}" + ) + library_path = f"{repo_path}/{library_name}" if is_monorepo else f"{repo_path}" + # use absolute path because docker requires absolute path + # in volume name. + absolute_library_path = str(Path(library_path).resolve()) + libraries[absolute_library_path] = library + # remove existing .repo-metadata.json + json_name = ".repo-metadata.json" + if os.path.exists(f"{absolute_library_path}/{json_name}"): + os.remove(f"{absolute_library_path}/{json_name}") + versions_file = f"{repo_path}/versions.txt" + if not Path(versions_file).exists(): + raise FileNotFoundError(f"{versions_file} is not found.") + + return RepoConfig( + output_folder=output_folder, + libraries=libraries, + versions_file=str(Path(versions_file).resolve()), + ) + + +def pull_api_definition( + config: GenerationConfig, library: LibraryConfig, output_folder: str +) -> None: + """ + Pull APIs definition from googleapis/googleapis repository. + To avoid duplicated pulling, only perform pulling if the library uses a + different commitish than in generation config. + :param config: a GenerationConfig object representing a parsed configuration + yaml + :param library: a LibraryConfig object contained inside config, passed here + for convenience and to prevent all libraries to be processed + :param output_folder: the folder to which APIs definition (proto files) goes + :return: None + """ + googleapis_commitish = config.googleapis_commitish + if library.googleapis_commitish: + googleapis_commitish = library.googleapis_commitish + print(f"using library-specific googleapis commitish: {googleapis_commitish}") + else: + print(f"using common googleapis_commitish: {config.googleapis_commitish}") + + if googleapis_commitish != config.googleapis_commitish: + print("removing existing APIs definition") + shutil.rmtree(f"{output_folder}/google", ignore_errors=True) + shutil.rmtree(f"{output_folder}/grafeas", ignore_errors=True) + + if not ( + os.path.exists(f"{output_folder}/google") + and os.path.exists(f"{output_folder}/grafeas") + ): + print("downloading googleapis") + sh_util( + f"download_googleapis_files_and_folders {output_folder} {googleapis_commitish}" + ) + + +def generate_prerequisite_files( + library: LibraryConfig, + proto_path: str, + transport: str, + library_path: str, + language: str = "java", + is_monorepo: bool = True, +) -> None: + """ + Generate prerequisite files for a library. + + Note that the version, if any, in the proto_path will be removed. + :param library: the library configuration + :param proto_path: the proto path + :param transport: transport supported by the library + :param library_path: the path to which the generated file goes + :param language: programming language of the library + :param is_monorepo: whether the library is in a monorepo + :return: None + """ + cloud_prefix = "cloud-" if library.cloud_api else "" + library_name = get_library_name(library) + distribution_name = ( + library.distribution_name + if library.distribution_name + else f"{library.group_id}:google-{cloud_prefix}{library_name}" + ) + distribution_name_short = re.split(r"[:/]", distribution_name)[-1] + repo = ( + "googleapis/google-cloud-java" if is_monorepo else f"{language}-{library_name}" + ) + api_id = ( + library.api_id if library.api_id else f"{library.api_shortname}.googleapis.com" + ) + client_documentation = ( + library.client_documentation + if library.client_documentation + else f"https://cloud.google.com/{language}/docs/reference/{distribution_name_short}/latest/overview" + ) + + # The mapping is needed because transport in .repo-metadata.json + # is one of grpc, http and both, + if transport == "grpc": + converted_transport = "grpc" + elif transport == "rest": + converted_transport = "http" + else: + converted_transport = "both" + repo_metadata = { + "api_shortname": library.api_shortname, + "name_pretty": library.name_pretty, + "product_documentation": library.product_documentation, + "api_description": library.api_description, + "client_documentation": client_documentation, + "release_level": library.release_level, + "transport": converted_transport, + "language": language, + "repo": repo, + "repo_short": f"{language}-{library_name}", + "distribution_name": distribution_name, + "api_id": api_id, + "library_type": library.library_type, + "requires_billing": library.requires_billing, + } -"""Deletes a file or folder if it exists. + if library.api_reference: + repo_metadata["api_reference"] = library.api_reference + if library.issue_tracker: + repo_metadata["issue_tracker"] = library.issue_tracker + if library.rest_documentation: + repo_metadata["rest_documentation"] = library.rest_documentation + if library.rpc_documentation: + repo_metadata["rpc_documentation"] = library.rpc_documentation - Args: - path: The path to the file or folder. -""" -def delete_if_exists(path: str): - if os.path.isfile(path): # Check if it's a file - os.remove(path) - print(f"File deleted: {path}") - elif os.path.isdir(path): # Check if it's a directory - shutil.rmtree(path) - print(f"Folder deleted: {path}") - else: - print(f"Path does not exist: {path}") + # generate .repo-meta.json + json_file = ".repo-metadata.json" + # .repo-metadata.json is removed before generating the first version of + # a library. This check ensures no duplicated generation. + if not os.path.exists(f"{library_path}/{json_file}"): + with open(f"{library_path}/{json_file}", "w") as fp: + json.dump(repo_metadata, fp, indent=2) -def main(argv: Sequence[str]) -> None: - if len(argv) < 1: - raise ValueError('Usage: python generate_composed_library_args.py function_name arg1...argN') + # generate .OwlBot.yaml + yaml_file = ".OwlBot.yaml" + if not os.path.exists(f"{library_path}/{yaml_file}"): + __render( + template_name="owlbot.yaml.monorepo.j2", + output_name=f"{library_path}/{yaml_file}", + artifact_name=distribution_name_short, + proto_path=remove_version_from(proto_path), + module_name=repo_metadata["repo_short"], + api_shortname=library.api_shortname, + ) - function_name = argv[1] - arguments = argv[2:] - try: - function = getattr(sys.modules[__name__], function_name) - print(function(*arguments)) - except AttributeError: - print(f'function name "{function_name}" not found in utilities.py') - sys.exit(1) + # generate owlbot.py + py_file = "owlbot.py" + if not os.path.exists(f"{library_path}/{py_file}"): + template_excludes = [ + ".github/*", + ".kokoro/*", + "samples/*", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "SECURITY.md", + "java.header", + "license-checks.xml", + "renovate.json", + ".gitignore", + ] + __render( + template_name="owlbot.py.j2", + output_name=f"{library_path}/{py_file}", + should_include_templates=True, + template_excludes=template_excludes, + ) +def repo_level_post_process( + repository_path: str, + versions_file: str, +) -> None: + """ + Perform repository level post-processing + :param repository_path: the path of the repository + :param versions_file: the versions_txt contains version of modules + :return: None + """ + print("Regenerating root pom.xml") + modules = __search_for_java_modules(repository_path) + __render( + template_name="root-pom.xml.j2", + output_name=f"{repository_path}/pom.xml", + modules=modules, + ) + print("Regenerating gapic-libraries-bom") + bom_configs = __search_for_bom_artifact(repository_path) + monorepo_version = get_version_from( + versions_file=versions_file, + artifact_id="google-cloud-java", + ) + __render( + template_name="gapic-libraries-bom.xml.j2", + output_name=f"{repository_path}/gapic-libraries-bom/pom.xml", + monorepo_version=monorepo_version, + bom_configs=bom_configs, + ) -if __name__ == "__main__": - main(sys.argv) +def get_version_from( + versions_file: str, artifact_id: str, is_released: bool = False +) -> str: + """ + Get version of a given artifact from versions.txt + :param versions_file: the path of version.txt + :param artifact_id: the artifact id + :param is_released: whether returns the released or current version + :return: the version of the artifact + """ + index = 1 if is_released else 2 + with open(versions_file, "r") as f: + for line in f.readlines(): + if artifact_id in line: + return line.split(":")[index].strip() diff --git a/library_generation/utilities.sh b/library_generation/utilities.sh index 965ed1fa0a..f0bdaeee01 100755 --- a/library_generation/utilities.sh +++ b/library_generation/utilities.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -set -xeo pipefail +set -eo pipefail utilities_script_dir=$(dirname "$(realpath "${BASH_SOURCE[0]}")") # Utility functions used in `generate_library.sh` and showcase generation. From 00be453486800e84ade93263524fd5491214fe33 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Thu, 8 Feb 2024 13:15:20 -0500 Subject: [PATCH 44/75] chore: add `setup.py` for `library_generation` (#2447) Python sources in `library_generation` are imported via https://github.com/googleapis/sdk-platform-java/blob/c1ef755b4d73bdf8fdac6f86cb10834e920c9c43/library_generation/generate_repo.py#L17-L19 This `setup.py` can be used via `python -m pip install .` so running something like `cd library_generation && python generate_repo.py` can detect the `library_generation` _package_. --- .gitignore | 12 +++++----- library_generation/.gitignore | 1 - library_generation/setup.py | 23 ++++++++++++++++++++ library_generation/test/integration_tests.py | 1 + 4 files changed, 30 insertions(+), 7 deletions(-) delete mode 100644 library_generation/.gitignore create mode 100644 library_generation/setup.py diff --git a/.gitignore b/.gitignore index a9b6f36914..5a54c06a20 100644 --- a/.gitignore +++ b/.gitignore @@ -22,9 +22,9 @@ target/ .venv # library generation -output/ -library_generation/output/ -library_generation/test/output -library_generation/test/googleapis -library_generation/test/resources/integration/golden -showcase/scripts/output/ +**/output/ +**/googleapis +library_generation/test/**/golden*/ +library_generation/test/resources/test_repo_level_postprocess/ +**/*egg-info/ +**/build/ diff --git a/library_generation/.gitignore b/library_generation/.gitignore deleted file mode 100644 index c18dd8d83c..0000000000 --- a/library_generation/.gitignore +++ /dev/null @@ -1 +0,0 @@ -__pycache__/ diff --git a/library_generation/setup.py b/library_generation/setup.py new file mode 100644 index 0000000000..132cee48f0 --- /dev/null +++ b/library_generation/setup.py @@ -0,0 +1,23 @@ +""" +Package information of library_generation python scripts +""" + +from setuptools import setup + +setup(name='library_generation', + version='0.1', + package_dir={ + 'library_generation': '.', + }, + package_data={ + 'library_generation': [ + '*.sh', + 'templates/*.j2', + 'gapic-generator-java-wrapper', + 'requirements.*', + 'owlbot/src/requirements.*', + 'owlbot/bin/*.sh', + 'owlbot/templates/**/*.j2', + ], + } +) diff --git a/library_generation/test/integration_tests.py b/library_generation/test/integration_tests.py index 8f0cb4a1ef..55f9b88658 100644 --- a/library_generation/test/integration_tests.py +++ b/library_generation/test/integration_tests.py @@ -108,6 +108,7 @@ def test_generate_repo(self): @classmethod def __pull_repo_to(cls, dest: Path, repo: str, committish: str): repo_url = f"{repo_prefix}/{repo}" + print(f'Cloning repository {repo_url}') repo = Repo.clone_from(repo_url, dest) repo.git.checkout(committish) From cac115e165717cc3b570526c3fbf21ca1cf97318 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Thu, 8 Feb 2024 20:11:45 +0000 Subject: [PATCH 45/75] chore: format python code (#2452) --- library_generation/setup.py | 33 ++++++++++---------- library_generation/test/integration_tests.py | 2 +- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/library_generation/setup.py b/library_generation/setup.py index 132cee48f0..c8b3418cf4 100644 --- a/library_generation/setup.py +++ b/library_generation/setup.py @@ -4,20 +4,21 @@ from setuptools import setup -setup(name='library_generation', - version='0.1', - package_dir={ - 'library_generation': '.', - }, - package_data={ - 'library_generation': [ - '*.sh', - 'templates/*.j2', - 'gapic-generator-java-wrapper', - 'requirements.*', - 'owlbot/src/requirements.*', - 'owlbot/bin/*.sh', - 'owlbot/templates/**/*.j2', - ], - } +setup( + name="library_generation", + version="0.1", + package_dir={ + "library_generation": ".", + }, + package_data={ + "library_generation": [ + "*.sh", + "templates/*.j2", + "gapic-generator-java-wrapper", + "requirements.*", + "owlbot/src/requirements.*", + "owlbot/bin/*.sh", + "owlbot/templates/**/*.j2", + ], + }, ) diff --git a/library_generation/test/integration_tests.py b/library_generation/test/integration_tests.py index 55f9b88658..2380e15452 100644 --- a/library_generation/test/integration_tests.py +++ b/library_generation/test/integration_tests.py @@ -108,7 +108,7 @@ def test_generate_repo(self): @classmethod def __pull_repo_to(cls, dest: Path, repo: str, committish: str): repo_url = f"{repo_prefix}/{repo}" - print(f'Cloning repository {repo_url}') + print(f"Cloning repository {repo_url}") repo = Repo.clone_from(repo_url, dest) repo.git.checkout(committish) From cef5002087610d33091d928297e3d3e25b7f7ac0 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Thu, 8 Feb 2024 20:27:45 +0000 Subject: [PATCH 46/75] chore: update instructions on `generate_repo.py` (#2449) In this PR: - Update instructions on `generate_repo.py`. --- library_generation/README.md | 472 +++++++++++++++++++---------------- 1 file changed, 254 insertions(+), 218 deletions(-) diff --git a/library_generation/README.md b/library_generation/README.md index e3b7e7d56c..8381422982 100644 --- a/library_generation/README.md +++ b/library_generation/README.md @@ -1,235 +1,271 @@ -# Generate GAPIC Client Library with and without post-processing +# Generate a repository containing GAPIC Client Libraries -The script, `generate_library.sh`, allows you to generate a GAPIC client library from proto files. +The script, `generate_repo.py`, allows you to generate a repository containing +GAPIC client libraries (a monorepo, for example, google-cloud-java) from a +configuration file. ## Environment -Use Linux environment and install java runtime environment (8 or above). +- OS: Linux +- Java runtime environment (8 or above) +- Apache Maven (used in formatting source code) +- Python (3.11.6 or above) ## Prerequisite -Protos referenced by protos in `proto_path` (see `proto_path` below) should be copied to an `output` -directory located in the working directory, referred as `$cwd` -(for example, `library_generation/output` if planning to call from the same folder). -The directory structure should be the same as import statements in protos. -For example, you want to generate from `folder1/folder2/protoA`, so `proto_path` -should be set to `folder1/folder2` (a relative path from `output`). -protoA imports protoB as `folder3/folder4/protoB`, then there should -be `folder3/folder4` (containing protoB) in `output`. - -In order to generate a GAPIC library, you need to pull `google/` from [googleapis](https://github.com/googleapis/googleapis) -and put it into `output` since protos in `google/` are likely referenced by -protos from which the library are generated. - -In order to generate a post-processed GAPIC library, you need to pull the -original repository (i.e. google-cloud-java) and pass the monorepo as -`destination_path` (e.g. `google-cloud-java/java-asset`). -This repository will be the source of truth for pre-existing -pom.xml files, owlbot.py and .OwlBot.yaml files. See the option belows for -custom postprocessed generations (e.g. custom `versions.txt` file). - -Post-processing makes use of python scripts. The script will automatically use -`pyenv` to use the specified version in -`library_generation/configuration/python-version`. Pyenv is then a requirement -in the environment. - - -## Parameters to run `generate_library.sh` - -You need to run the script with the following parameters. - -### proto_path -A directory in `$cwd/output` and copy proto files into it. -The absolute path of `proto_path` is `$cwd/output/$proto_path`. - -Use `-p` or `--proto_path` to specify the value. - -### destination_path -A directory within `$cwd/output`. -This is the path in which the generated library will reside. -The absolute path of `destination_path` is `$cwd/output/$destination_path`. - -Use `-d` or `--destination_path` to specify the value. - -Note that you do not need to create `$destination_path` beforehand. - -The directory structure of the generated library _withtout_ postprocessing is -``` -$destination_path - |_gapic-* - | |_src - | |_main - | |_java - | |_resources - | |_test - |_grpc-* - | |_src - | |_main - | |_java - | - |_proto-* - | |_src - | |_main - | |_java - | |_proto - |_samples - |_snippets - |_generated +In order to generate a version for each library, a versions.txt has to exist +in `repository_path`. +Please refer to [Repository path](#repository-path--repositorypath---optional) for more information. + +## Parameters to generate a repository using `generate_repo.py` + +### Generation configuration yaml (`generation_config_yaml`) + +A path to a configuration file containing parameters to generate the repository. +Please refer [Configuration to generate a repository](#configuration-to-generate-a-repository) +for more information. + +### Target library API shortname (`target_library_api_shortname`), optional + +If specified, the libray whose `api_shortname` equals to `target_library_api_shortname` +will be generated; otherwise all libraries in the configuration file will be +generated. +This can be useful when you just want to generate one library for debugging +purposes. + +The default value is an empty string, which means all libraries will be generated. + +### Repository path (`repository_path`), optional + +The path to where the generated repository goes. + +The default value is the current working directory when running the script. +For example, `cd google-cloud-java && python generate_repo.py ...` without +specifying the `--repository_path` option will modify the `google-cloud-java` +repository the user `cd`'d into. + +Note that versions.txt has to exist in `repository_path` in order to generate +right version for each library. +Please refer [here](go/java-client-releasing#versionstxt-manifest) for more info +of versions.txt. + +## Output of `generate_repo.py` + +For each module (e.g. `google-cloud-java/java-asset`), the following files/folders +will be created/modified: + +| Name | Notes | +|:----------------------------|:-------------------------------------------------------------------------| +| google-*/ | Source code generated by gapic-generator-java | +| google-*/pom.xml | Only be generated if it does not exist | +| grpc-*/ | Source code generated by grpc generator, one per each version | +| grpc-*/pom.xml | Only be generated if it does not exist | +| proto-*/ | Source code generated by Protobuf default compiler, one per each version | +| proto-*/pom.xml | Only be generated if it does not exist | +| samples/snippets/generated/ | Only be generated if `include_samples` is set to true | +| google-*-bom/pom.xml | Library BOM, only be generated if it does not exist | +| pom.xml | Library parent BOM, only be generated if it does not exist | +| .repo-metadata.json | Always generated from inputs | +| .OwlBot.yaml | Only be generated from a template if it does not exist | +| owlbot.py | Only be generated from a template if it does not exist | +| README.md | Always generated from inputs | +| gapic-libraries-bom/pom.xml | Always generated from inputs | +| pom.xml (repo root dir) | Always generated from inputs | +| versions.txt | New entries will be added if they don’t exist | + + +## Configuration to generate a repository + +There are three levels of parameters in the configuration: repository level, +library level and GAPIC level. + +### Repository level parameters + +The repository level parameters define the version of API definition (proto) +and tools. +They are shared by library level parameters. + +| Name | Required | Notes | +|:------------------------|:--------:|:---------------------------------------------| +| gapic_generator_version | Yes | | +| protobuf_version | No | inferred from the generator if not specified | +| grpc_version | No | inferred from the generator if not specified | +| googleapis-commitish | Yes | | +| owlbot-cli-image | Yes | | +| synthtool-commitish | Yes | | +| template_excludes | Yes | | + +### Library level parameters + +The library level parameters define how to generate a (multi-versions) GAPIC +library. +They are shared by all GAPICs of a library. + +| Name | Required | Notes | +|:---------------------|:--------:|:------------------------------------------------------------------| +| api_shortname | Yes | | +| api_description | Yes | | +| name_pretty | Yes | | +| product_docs | Yes | | +| library_type | No | `GAPIC_AUTO` if not specified | +| release_level | No | `preview` if not specified | +| api_id | No | `{api_shortname}.googleapis.com` if not specified | +| api_reference | No | | +| client_documentation | No | | +| distribution_name | No | `{group_id}:google-{cloud_prefix}{library_name}` if not specified | +| googleapis_commitish | No | use repository level `googleapis_commitish` if not specified. | +| group_id | No | `com.google.cloud` if not specified | +| issue_tracker | No | | +| library_name | No | `api_shortname` is not specified | +| rest_documentation | No | | +| rpc_documentation | No | | +| cloud_api | No | `true` if not specified | +| requires-billing | No | `true` if not specified | + +Note that `cloud_prefix` is `cloud-` if `cloud_api` is `true`; empty otherwise. + +### GAPIC level parameters + +The GAPIC level parameters define how to generate a GAPIC library. + +| Name | Required | Notes | +|:-----------|:--------:|:------------------------------------------| +| proto_path | Yes | versioned proto_path starts with `google` | + +### An example of generation configuration + +```yaml +gapic_generator_version: 2.34.0 +protobuf_version: 25.2 +googleapis_commitish: 1a45bf7393b52407188c82e63101db7dc9c72026 +owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 +synthtool_commitish: 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5 +destination_path: google-cloud-java +template_excludes: + - ".github/*" + - ".kokoro/*" + - "samples/*" + - "CODE_OF_CONDUCT.md" + - "CONTRIBUTING.md" + - "LICENSE" + - "SECURITY.md" + - "java.header" + - "license-checks.xml" + - "renovate.json" + - ".gitignore" +libraries: + - api_shortname: apigeeconnect + name_pretty: Apigee Connect + product_documentation: "https://cloud.google.com/apigee/docs/hybrid/v1.3/apigee-connect/" + api_description: "allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet." + release_level: "stable" + library_name: "apigee-connect" + GAPICs: + - proto_path: google/cloud/apigeeconnect/v1 + + - api_shortname: cloudasset + name_pretty: Cloud Asset Inventory + product_documentation: "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" + api_description: "provides inventory services based on a time series database. This database keeps a five week history of Google Cloud asset metadata. The Cloud Asset Inventory export service allows you to export all asset metadata at a certain timestamp or export event change history during a timeframe." + library_name: "asset" + client_documentation: "https://cloud.google.com/java/docs/reference/google-cloud-asset/latest/overview" + distribution_name: "com.google.cloud:google-cloud-asset" + release_level: "stable" + issue_tracker: "https://issuetracker.google.com/issues/new?component=187210&template=0" + api_reference: "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" + GAPICs: + - proto_path: google/cloud/asset/v1 + - proto_path: google/cloud/asset/v1p1beta1 + - proto_path: google/cloud/asset/v1p2beta1 + - proto_path: google/cloud/asset/v1p5beta1 + - proto_path: google/cloud/asset/v1p7beta1 ``` -You can't build the library as-is since it does not have `pom.xml` or `build.gradle`. -To use the library, copy the generated files to the corresponding directory -of a library repository, e.g., `google-cloud-java` or use the -`enable_postprocessing` flag on top of a pre-existing generated library to -produce the necessary pom files. -For `asset/v1` the directory structure of the generated library _with_ postprocessing is -``` - -├── google-cloud-asset -│   └── src -│   ├── main -│   │   ├── java -│   │   └── resources -│   └── test -│   └── java -├── google-cloud-asset-bom -├── grpc-google-cloud-asset-v* -│   └── src -│   └── main -│   └── java -├── proto-google-cloud-asset-v* -│   └── src -│   └── main -│   ├── java -│   └── proto -└── samples - └── snippets - └── generated +## An example to generate a repository using `generate_repo.py` +```bash +# install python module (allows the `library_generation` module to be imported from anywhere) +python -m pip install -r library_generation/requirements.in +# generate the repository +python -m library_generation/generate_repo.py generate \ +--generation-config-yaml=/path/to/config-file \ +--repository-path=/path/to/repository ``` -### gapic_generator_version -You can find the released version of gapic-generator-java in [maven central](https://repo1.maven.org/maven2/com/google/api/gapic-generator-java/). - -Use `--gapic_generator_version` to specify the value. - -Note that you can specify any non-published version (e.g. a SNAPSHOT) as long as you have installed it in your maven -local repository. The script will search locally first. - -### protobuf_version (optional) -You can find the released version of protobuf in [GitHub](https://github.com/protocolbuffers/protobuf/releases/). -The default value is defined in `gapic-generator-java-pom-parent/pom.xml`. - -Use `--protobuf_version` to specify the value. - -Note that if specified, the version should be compatible with gapic-generator-java. - -### grpc_version (optional) -You can find the released version of grpc in [maven central](https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/). -The default value is defined in `gapic-generator-java-pom-parent/pom.xml`. - -Use `--grpc_version` to specify the value. - -Note that if specified, the version should be compatible with gapic-generator-java. - -### proto_only (optional) -Whether this is a proto-only library (no `gapic-*` directory in the generated -library). -The default value is `false`. +## An example of generated repository using `generate_repo.py` -When set to `true`, the GAPIC generator will not be invoked. -Therefore, GAPIC options (`transport`, `rest_numeric_enums`) and -`gapic_additional_protos` will be ignored. - -Use `--proto_only` to specify the value. - -### gapic_additional_protos (optional) -Additional protos that pass to the generator. -The default value is `google/cloud/common_resources.proto`. - -Use `--gapic_additional_protos` to specify the value. - -### transport (optional) -One of GAPIC options passed to the generator. -The value is either `grpc` or `grpc+rest`. -The default value is `grpc`. - -Use `--transport` to specify the value. - -### rest_numeric_enums (optional) -One of GAPIC options passed to the generator. -The value is either `true` or `false`. -The default value is `true`. - -Use `--rest_numeric_enums` to specify the value. - -### gapic_yaml (optional) -One of GAPIC options passed to the generator. -The default value is an empty string. - -Use `--gapic_yaml` to specify the value. - -### service_config (optional) -One of GAPIC options passed to the generator. -The default value is an empty string. - -Use `--service_config` to specify the value. - -### service_yaml (optional) -One of GAPIC options passed to the generator. -The default value is an empty string. - -Use `--service_yaml` to specify the value. - -### include_samples (optional) -Whether generates code samples. The value is either `true` or `false`. -The default value is `true`. - -Use `--include_samples` to specify the value. - -### os_architecture (optional) -Choose the protoc binary type from https://github.com/protocolbuffers/protobuf/releases. -Default is "linux-x86_64". - -### enable_postprocessing (optional) -Whether to enable the post-processing steps (usage of owlbot) in the generation -of this library -Default is "true". - -### versions_file (optional) -It must point to a versions.txt file containing the versions the post-processed -poms will have. It is required when `enable_postprocessing` is `"true"` - - -## An example to generate a non post-processed client library -```bash -library_generation/generate_library.sh \ --p google/cloud/confidentialcomputing/v1 \ --d google-cloud-confidentialcomputing-v1-java \ ---gapic_generator_version 2.24.0 \ ---protobuf_version 23.2 \ ---grpc_version 1.55.1 \ ---gapic_additional_protos "google/cloud/common_resources.proto google/cloud/location/locations.proto" \ ---transport grpc+rest \ ---rest_numeric_enums true \ ---enable_postprocessing false \ ---include_samples true +If you run `generate_repo.py` with the example [configuration](#an-example-of-generation-configuration) +shown above, the repository structure is: ``` - -## An example to generate a library with postprocessing -```bash -library_generation/generate_library.sh \ --p google/cloud/confidentialcomputing/v1 \ --d google-cloud-confidentialcomputing-v1-java \ ---gapic_generator_version 2.24.0 \ ---protobuf_version 23.2 \ ---grpc_version 1.55.1 \ ---gapic_additional_protos "google/cloud/common_resources.proto google/cloud/location/locations.proto" \ ---transport grpc+rest \ ---rest_numeric_enums true \ ---enable_postprocessing true \ ---versions_file "path/to/versions.txt" \ ---include_samples true +$repository_path +|_gapic-libraries-bom +| |_pom.xml +|_java-apigee-connect +| |_google-cloud-apigee-connect +| | |_src +| | |_pom.xml +| |_google-cloud-apigee-connect-bom +| | |_pom.xml +| |_grpc-google-cloud-apigee-connect-v1 +| | |_src +| | |_pom.xml +| |_proto-google-cloud-apigee-connect-v1 +| | |_src +| | |_pom.xml +| |_samples +| | |_snippets +| | | |_generated +| |_.OwlBot.yaml +| |_.repo-metadata.json +| |_owlbot.py +| |_pom.xml +| |_README.md +|_java-asset +| |_google-cloud-asset +| | |_src +| | |_pom.xml +| |_google-cloud-asset-bom +| | |_pom.xml +| |_grpc-google-cloud-asset-v1 +| | |_src +| | |_pom.xml +| |_grpc-google-cloud-asset-v1p1beta1 +| | |_src +| | |_pom.xml +| |_grpc-google-cloud-asset-v1p2beta1 +| | |_src +| | |_pom.xml +| |_grpc-google-cloud-asset-v1p5beta1 +| | |_src +| | |_pom.xml +| |_grpc-google-cloud-asset-v1p7beta1 +| | |_src +| | |_pom.xml +| |_proto-google-cloud-asset-v1 +| | |_src +| | |_pom.xml +| |_proto-google-cloud-asset-v1p1beta1 +| | |_src +| | |_pom.xml +| |_proto-google-cloud-asset-v1p2beta1 +| | |_src +| | |_pom.xml +| |_proto-google-cloud-asset-v1p5beta1 +| | |_src +| | |_pom.xml +| |_proto-google-cloud-asset-v1p7beta1 +| | |_src +| | |_pom.xml +| |_samples +| | |_snippets +| | | |_generated +| |_.OwlBot.yaml +| |_.repo-metadata.json +| |_owlbot.py +| |_pom.xml +| |_README.md +|_pom.xml +|_versions.txt ``` # Owlbot Java Postprocessor From edfa9ad63de63ee92c56edb88630d40cc600678d Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Thu, 8 Feb 2024 15:31:30 -0500 Subject: [PATCH 47/75] feat: move synthtool templates to `library_generation/owlbot` (#2443) This PR transfers the java-specific templates from synthtool to `library_geneation/owlbot` There is a new branch in synthtool (https://github.com/googleapis/synthtool/pull/1923) that has the removed templates. The intention is to keep that synthtool branch as parallel until we fully roll out the hermetic build workflows to both HW libraries and the monorepo. ### Approach We add a list of template exclusions to the configuration yaml and call `java.common_templates` with a custom template path (pointing to our OwlBot Java Postprocessor implementation here in `library_generation` plus the template exclusions found in the yaml. The list of exclusions were obtained from owlbot.py files. Since google-cloud-java has the same exclusions for all libraries, we use a repo-level configuration entry. An example of template excludes is: https://github.com/googleapis/sdk-platform-java/blob/b0a57b70d589e2bdc6e5fcb8cf64d08c3496bc57/java-iam/owlbot.py#L26-L37 ### Different approach possible? We could modify all owlbot.py files to use something other than `java.common_templates`. For example ``` from custom_owlbot import common_templates ... common_templates(excludes=[/*preserved excludes*/]) ``` With such approach, we would not have to parse owlbot.py files and take advantage of the fact it's an executable script. ## Follow up? We probably don't want to call `common_templates` twice, so it may be better to modify owlbot.py files to reference our own implementation instead of synthtool. (This is similar to "Different approach possible?" but it is more of a follow up once the scripts are live). --------- Co-authored-by: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> --- .github/snippet-bot.yml | 1 + .../workflows/verify_library_generation.yaml | 18 +- .../generate_composed_library.py | 1 + library_generation/model/generation_config.py | 6 + library_generation/owlbot/bin/entrypoint.sh | 86 +++--- .../owlbot/src/apply_repo_templates.py | 42 +++ library_generation/owlbot/src/fix-poms.py | 72 +++-- library_generation/owlbot/src/gen-template.py | 7 +- library_generation/owlbot/src/poms/module.py | 6 +- library_generation/owlbot/src/requirements.in | 1 - .../templates/java_library/CODE_OF_CONDUCT.md | 94 ++++++ .../templates/java_library/CONTRIBUTING.md | 92 ++++++ .../owlbot/templates/java_library/LICENSE | 201 ++++++++++++ .../owlbot/templates/java_library/README.md | 288 ++++++++++++++++++ .../owlbot/templates/java_library/SECURITY.md | 7 + .../owlbot/templates/java_library/java.header | 15 + .../templates/java_library/license-checks.xml | 10 + .../templates/java_library/renovate.json | 80 +++++ .../samples/install-without-bom/pom.xml | 86 ++++++ .../templates/java_library/samples/pom.xml | 56 ++++ .../java_library/samples/snapshot/pom.xml | 85 ++++++ .../java_library/samples/snippets/pom.xml | 49 +++ library_generation/postprocess_library.sh | 8 +- .../google-cloud-java/generation_config.yaml | 12 + .../java-bigtable/generation_config.yaml | 20 +- library_generation/test/unit_tests.py | 5 + 26 files changed, 1273 insertions(+), 75 deletions(-) create mode 100644 library_generation/owlbot/src/apply_repo_templates.py create mode 100644 library_generation/owlbot/templates/java_library/CODE_OF_CONDUCT.md create mode 100644 library_generation/owlbot/templates/java_library/CONTRIBUTING.md create mode 100644 library_generation/owlbot/templates/java_library/LICENSE create mode 100644 library_generation/owlbot/templates/java_library/README.md create mode 100644 library_generation/owlbot/templates/java_library/SECURITY.md create mode 100644 library_generation/owlbot/templates/java_library/java.header create mode 100644 library_generation/owlbot/templates/java_library/license-checks.xml create mode 100644 library_generation/owlbot/templates/java_library/renovate.json create mode 100644 library_generation/owlbot/templates/java_library/samples/install-without-bom/pom.xml create mode 100644 library_generation/owlbot/templates/java_library/samples/pom.xml create mode 100644 library_generation/owlbot/templates/java_library/samples/snapshot/pom.xml create mode 100644 library_generation/owlbot/templates/java_library/samples/snippets/pom.xml diff --git a/.github/snippet-bot.yml b/.github/snippet-bot.yml index c7ee6ca54b..9458774ff0 100644 --- a/.github/snippet-bot.yml +++ b/.github/snippet-bot.yml @@ -4,3 +4,4 @@ ignoreFiles: - src/test/** - test/** - showcase/** + - library_generation/owlbot/templates/java_library/samples/install-without-bom/pom.xml diff --git a/.github/workflows/verify_library_generation.yaml b/.github/workflows/verify_library_generation.yaml index f3dc825c85..89cec5ddc9 100644 --- a/.github/workflows/verify_library_generation.yaml +++ b/.github/workflows/verify_library_generation.yaml @@ -42,6 +42,7 @@ jobs: set -ex pushd library_generation pip install -r requirements.in + pip install . popd - name: Run integration tests shell: bash @@ -74,6 +75,21 @@ jobs: pushd library_generation pip install -r requirements.in popd + - name: install synthtool + shell: bash + run: | + set -ex + mkdir -p /tmp/synthtool + pushd /tmp/synthtool + if [ ! -d "synthtool" ]; then + git clone https://github.com/googleapis/synthtool.git + fi + pushd "synthtool" + + git reset --hard origin/no-java-templates + + python3 -m pip install -e . + python3 -m pip install -r requirements.in - name: Run shell unit tests run: | set -x @@ -108,4 +124,4 @@ jobs: run: | # exclude generated golden files # exclude owlbot until further refaction - black --check library_generation --exclude "(library_generation/owlbot)|(library_generation/test/resources/goldens)" + black --check library_generation --exclude "(library_generation/test/resources/goldens)" diff --git a/library_generation/generate_composed_library.py b/library_generation/generate_composed_library.py index 6f8216f511..1c2e1a4a91 100755 --- a/library_generation/generate_composed_library.py +++ b/library_generation/generate_composed_library.py @@ -113,6 +113,7 @@ def generate_composed_library( config.owlbot_cli_image, config.synthtool_commitish, str(is_monorepo).lower(), + config.path_to_yaml, ], "Library postprocessing", ) diff --git a/library_generation/model/generation_config.py b/library_generation/model/generation_config.py index 1c3c62d1fb..7317edc932 100644 --- a/library_generation/model/generation_config.py +++ b/library_generation/model/generation_config.py @@ -31,6 +31,8 @@ def __init__( googleapis_commitish: str, owlbot_cli_image: str, synthtool_commitish: str, + template_excludes: str, + path_to_yaml: str, libraries: List[LibraryConfig], grpc_version: Optional[str] = None, protobuf_version: Optional[str] = None, @@ -39,6 +41,8 @@ def __init__( self.googleapis_commitish = googleapis_commitish self.owlbot_cli_image = owlbot_cli_image self.synthtool_commitish = synthtool_commitish + self.template_excludes = template_excludes + self.path_to_yaml = path_to_yaml self.libraries = libraries self.grpc_version = grpc_version self.protobuf_version = protobuf_version @@ -94,6 +98,8 @@ def from_yaml(path_to_yaml: str): googleapis_commitish=__required(config, "googleapis_commitish"), owlbot_cli_image=__required(config, "owlbot_cli_image"), synthtool_commitish=__required(config, "synthtool_commitish"), + template_excludes=__required(config, "template_excludes"), + path_to_yaml=path_to_yaml, libraries=parsed_libraries, ) diff --git a/library_generation/owlbot/bin/entrypoint.sh b/library_generation/owlbot/bin/entrypoint.sh index a26eaec996..a8d5a730e3 100755 --- a/library_generation/owlbot/bin/entrypoint.sh +++ b/library_generation/owlbot/bin/entrypoint.sh @@ -26,50 +26,14 @@ set -ex scripts_root=$1 versions_file=$2 - -# Runs template and etc in current working directory -function processModule() { - # templates as well as retrieving files from owl-bot-staging - echo "Generating templates and retrieving files from owl-bot-staging directory..." - if [ -f "owlbot.py" ] - then - # defaults to run owlbot.py - python3 owlbot.py - fi - echo "...done" - - # write or restore pom.xml files - echo "Generating missing pom.xml..." - python3 "${scripts_root}/owlbot/src/fix-poms.py" "${versions_file}" "true" - echo "...done" - - # write or restore clirr-ignored-differences.xml - echo "Generating clirr-ignored-differences.xml..." - ${scripts_root}/owlbot/bin/write_clirr_ignore.sh "${scripts_root}" - echo "...done" - - # fix license headers - echo "Fixing missing license headers..." - python3 "${scripts_root}/owlbot/src/fix-license-headers.py" - echo "...done" - - # TODO: re-enable this once we resolve thrashing - # restore license headers years - # echo "Restoring copyright years..." - # /owlbot/bin/restore_license_headers.sh - # echo "...done" - - # ensure formatting on all .java files in the repository - echo "Reformatting source..." - mvn fmt:format -q - echo "...done" -} +configuration_yaml=$3 # This script can be used to process HW libraries and monorepo # (google-cloud-java) libraries, which require a slightly different treatment # monorepo folders have an .OwlBot.yaml file in the module folder (e.g. # java-asset/.OwlBot.yaml), whereas HW libraries have the yaml in # `.github/.OwlBot.yaml` +monorepo="false" if [[ -f "$(pwd)/.OwlBot.yaml" ]]; then monorepo="true" fi @@ -80,4 +44,48 @@ if [[ "${monorepo}" == "true" ]]; then mv temp owl-bot-staging fi -processModule + +# Runs template and etc in current working directory +monorepo=$1 + +# apply repo templates +echo "Rendering templates" +python3 "${scripts_root}/owlbot/src/apply_repo_templates.py" "${configuration_yaml}" "${monorepo}" + +# templates as well as retrieving files from owl-bot-staging +echo "Retrieving files from owl-bot-staging directory..." +if [ -f "owlbot.py" ] +then + # defaults to run owlbot.py + python3 owlbot.py +fi +echo "...done" + +# write or restore pom.xml files +echo "Generating missing pom.xml..." +python3 "${scripts_root}/owlbot/src/fix-poms.py" "${versions_file}" "true" +echo "...done" + +# write or restore clirr-ignored-differences.xml +echo "Generating clirr-ignored-differences.xml..." +${scripts_root}/owlbot/bin/write_clirr_ignore.sh "${scripts_root}" +echo "...done" + +# fix license headers +echo "Fixing missing license headers..." +python3 "${scripts_root}/owlbot/src/fix-license-headers.py" +echo "...done" + +# TODO: re-enable this once we resolve thrashing +# restore license headers years +# echo "Restoring copyright years..." +# /owlbot/bin/restore_license_headers.sh +# echo "...done" + +# ensure formatting on all .java files in the repository +echo "Reformatting source..." +mvn fmt:format +echo "...done" + + + diff --git a/library_generation/owlbot/src/apply_repo_templates.py b/library_generation/owlbot/src/apply_repo_templates.py new file mode 100644 index 0000000000..929ffb66f2 --- /dev/null +++ b/library_generation/owlbot/src/apply_repo_templates.py @@ -0,0 +1,42 @@ +""" +This script parses an owlbot.py file, specifically the call to `java.common_templates` in +order to extract the excluded files so it can be called with a custom template path +pointing to the templates hosted in `sdk-platform-java/library_generation/owlbot/templates`. +Briefly, this wraps the call to synthtool's common templates using a custom template folder. +""" + +import os +import sys +from collections.abc import Sequence +from synthtool.languages.java import common_templates +from pathlib import Path +from library_generation.model.generation_config import from_yaml + +script_dir = os.path.dirname(os.path.realpath(__file__)) +repo_templates_path = os.path.join(script_dir, "..", "templates", "java_library") + + +def apply_repo_templates(configuration_yaml_path: str, monorepo: bool) -> None: + config = from_yaml(configuration_yaml_path) + print(f"repo_templates_path: {repo_templates_path}") + print(f"excludes: {config.template_excludes}") + common_templates( + excludes=config.template_excludes, + template_path=Path(repo_templates_path), + monorepo=monorepo, + ) + + +def main(argv: Sequence[str]) -> None: + if len(argv) != 3: + raise ValueError( + "Usage: python apply-repo-templates.py configuration_yaml_path monorepo" + ) + + configuration_yaml_path = argv[1] + monorepo = argv[2] + apply_repo_templates(configuration_yaml_path, monorepo.lower() == "true") + + +if __name__ == "__main__": + main(sys.argv) diff --git a/library_generation/owlbot/src/fix-poms.py b/library_generation/owlbot/src/fix-poms.py index 87df4a46bb..b57012fcf8 100644 --- a/library_generation/owlbot/src/fix-poms.py +++ b/library_generation/owlbot/src/fix-poms.py @@ -285,9 +285,11 @@ def update_bom_pom(filename: str, modules: List[module.Module]): # https://github.com/googleapis/google-cloud-java/issues/9304 def __proto_group_id(main_artifact_group_id: str) -> str: prefix = "com.google" - list_of_group_id = ["com.google.cloud", - "com.google.area120", - "com.google.analytics"] + list_of_group_id = [ + "com.google.cloud", + "com.google.area120", + "com.google.analytics", + ] if main_artifact_group_id not in list_of_group_id: prefix = main_artifact_group_id return f"{prefix}.api.grpc" @@ -343,11 +345,17 @@ def main(versions_file, monorepo): main_module = existing_modules[artifact_id] # Artifact ID is part of distribution name field in .repo-metadata.json - if artifact_id in ["grafeas", "google-cloud-dns", - "google-cloud-notification", "google-iam-policy"]: + if artifact_id in [ + "grafeas", + "google-cloud-dns", + "google-cloud-notification", + "google-iam-policy", + ]: # There are special libraries that are not automatically generated - print(f"Skipping a special case library {artifact_id} that do not have " - " the standard module structure.") + print( + f"Skipping a special case library {artifact_id} that do not have " + " the standard module structure." + ) return parent_artifact_id = f"{artifact_id}-parent" @@ -383,8 +391,10 @@ def main(versions_file, monorepo): version=main_module.version, release_version=main_module.release_version, ) - if path not in excluded_dependencies_list \ - and path not in main_module.artifact_id: + if ( + path not in excluded_dependencies_list + and path not in main_module.artifact_id + ): required_dependencies[path] = module.Module( group_id=__proto_group_id(group_id), artifact_id=path, @@ -401,8 +411,10 @@ def main(versions_file, monorepo): main_module=main_module, monorepo=monorepo, ) - if path not in excluded_dependencies_list \ - and path not in main_module.artifact_id: + if ( + path not in excluded_dependencies_list + and path not in main_module.artifact_id + ): required_dependencies[path] = module.Module( group_id=__proto_group_id(group_id), artifact_id=path, @@ -418,8 +430,10 @@ def main(versions_file, monorepo): version=main_module.version, release_version=main_module.release_version, ) - if path not in excluded_dependencies_list \ - and path not in main_module.artifact_id: + if ( + path not in excluded_dependencies_list + and path not in main_module.artifact_id + ): required_dependencies[path] = module.Module( group_id=__proto_group_id(group_id), artifact_id=path, @@ -439,8 +453,10 @@ def main(versions_file, monorepo): proto_module=existing_modules[proto_artifact_id], monorepo=monorepo, ) - if path not in excluded_dependencies_list \ - and path not in main_module.artifact_id: + if ( + path not in excluded_dependencies_list + and path not in main_module.artifact_id + ): required_dependencies[path] = module.Module( group_id=__proto_group_id(group_id), artifact_id=path, @@ -451,13 +467,13 @@ def main(versions_file, monorepo): module for module in required_dependencies.values() if module.artifact_id.startswith("proto-") - and module.artifact_id not in parent_artifact_id + and module.artifact_id not in parent_artifact_id ] grpc_modules = [ module for module in required_dependencies.values() - if module.artifact_id.startswith("grpc-") \ - and module.artifact_id not in parent_artifact_id + if module.artifact_id.startswith("grpc-") + and module.artifact_id not in parent_artifact_id ] if main_module in grpc_modules or main_module in proto_modules: modules = grpc_modules + proto_modules @@ -489,12 +505,11 @@ def main(versions_file, monorepo): if os.path.isfile(f"{artifact_id}-bom/pom.xml"): print("updating modules in bom pom.xml") - if artifact_id+"-bom" not in excluded_poms_list: + if artifact_id + "-bom" not in excluded_poms_list: update_bom_pom(f"{artifact_id}-bom/pom.xml", modules) - elif artifact_id+"-bom" not in excluded_poms_list: + elif artifact_id + "-bom" not in excluded_poms_list: print("creating missing bom pom.xml") - monorepo_version = __get_monorepo_version(versions_file) \ - if monorepo else "" + monorepo_version = __get_monorepo_version(versions_file) if monorepo else "" templates.render( template_name="bom_pom.xml.j2", output_name=f"{artifact_id}-bom/pom.xml", @@ -503,7 +518,7 @@ def main(versions_file, monorepo): modules=modules, main_module=main_module, monorepo=monorepo, - monorepo_version=monorepo_version + monorepo_version=monorepo_version, ) if os.path.isfile("pom.xml"): @@ -511,8 +526,7 @@ def main(versions_file, monorepo): update_parent_pom("pom.xml", modules) else: print("creating missing parent pom.xml") - monorepo_version = __get_monorepo_version(versions_file) \ - if monorepo else "" + monorepo_version = __get_monorepo_version(versions_file) if monorepo else "" templates.render( template_name="parent_pom.xml.j2", output_name="./pom.xml", @@ -521,7 +535,7 @@ def main(versions_file, monorepo): main_module=main_module, name=name, monorepo=monorepo, - monorepo_version=monorepo_version + monorepo_version=monorepo_version, ) print(f"updating modules in {versions_file}") @@ -537,13 +551,15 @@ def main(versions_file, monorepo): release_version=main_module.release_version, ) templates.render( - template_name="versions.txt.j2", output_name=versions_file, modules=existing_modules.values(), + template_name="versions.txt.j2", + output_name=versions_file, + modules=existing_modules.values(), ) if __name__ == "__main__": versions_file = sys.argv[1] monorepo = sys.argv[2] - if monorepo == 'true': + if monorepo == "true": monorepo = True main(versions_file, monorepo) diff --git a/library_generation/owlbot/src/gen-template.py b/library_generation/owlbot/src/gen-template.py index fd3015ebf8..30f8c43529 100644 --- a/library_generation/owlbot/src/gen-template.py +++ b/library_generation/owlbot/src/gen-template.py @@ -24,7 +24,8 @@ @click.command() @click.option( - "--folder", help="Path to folder of templates", + "--folder", + help="Path to folder of templates", ) @click.option("--file", help="Path to template file") @click.option( @@ -34,7 +35,9 @@ required=True, ) @click.option( - "--output", help="Path to output", default=".", + "--output", + help="Path to output", + default=".", ) def main(folder: str, file: str, data: List[str], output: str): """Generate templates""" diff --git a/library_generation/owlbot/src/poms/module.py b/library_generation/owlbot/src/poms/module.py index 3beafd22b0..b4274ea969 100644 --- a/library_generation/owlbot/src/poms/module.py +++ b/library_generation/owlbot/src/poms/module.py @@ -35,7 +35,11 @@ def read_module(pom: str) -> Module: if artifact_id.startswith("google-cloud") else "com.google.api.grpc" ) - return Module(group_id=group_id, artifact_id=artifact_id, version=version,) + return Module( + group_id=group_id, + artifact_id=artifact_id, + version=version, + ) def read_modules(service: str) -> List[Module]: diff --git a/library_generation/owlbot/src/requirements.in b/library_generation/owlbot/src/requirements.in index 1dbbb3c666..fed3e32d94 100644 --- a/library_generation/owlbot/src/requirements.in +++ b/library_generation/owlbot/src/requirements.in @@ -8,4 +8,3 @@ colorlog protobuf watchdog requests -pyyaml \ No newline at end of file diff --git a/library_generation/owlbot/templates/java_library/CODE_OF_CONDUCT.md b/library_generation/owlbot/templates/java_library/CODE_OF_CONDUCT.md new file mode 100644 index 0000000000..2add2547a8 --- /dev/null +++ b/library_generation/owlbot/templates/java_library/CODE_OF_CONDUCT.md @@ -0,0 +1,94 @@ + +# Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of +experience, education, socio-economic status, nationality, personal appearance, +race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, or to ban temporarily or permanently any +contributor for other behaviors that they deem inappropriate, threatening, +offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +This Code of Conduct also applies outside the project spaces when the Project +Steward has a reasonable belief that an individual's behavior may have a +negative impact on the project or its community. + +## Conflict Resolution + +We do not believe that all conflict is bad; healthy debate and disagreement +often yield positive results. However, it is never okay to be disrespectful or +to engage in behavior that violates the project’s code of conduct. + +If you see someone violating the code of conduct, you are encouraged to address +the behavior directly with those involved. Many issues can be resolved quickly +and easily, and this gives people more control over the outcome of their +dispute. If you are unable to resolve the matter for any reason, or if the +behavior is threatening or harassing, report it. We are dedicated to providing +an environment where participants feel welcome and safe. + +Reports should be directed to *googleapis-stewards@google.com*, the +Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to +receive and address reported violations of the code of conduct. They will then +work with a committee consisting of representatives from the Open Source +Programs Office and the Google Open Source Strategy team. If for any reason you +are uncomfortable reaching out to the Project Steward, please email +opensource@google.com. + +We will investigate every complaint, but you may not receive a direct response. +We will use our discretion in determining when and how to follow up on reported +incidents, which may range from not taking action to permanent expulsion from +the project and project-sponsored spaces. We will notify the accused of the +report and provide them an opportunity to discuss it before any action is taken. +The identity of the reporter will be omitted from the details of the report +supplied to the accused. In potentially harmful situations, such as ongoing +harassment or threats to anyone's safety, we may take action without notice. + +## Attribution + +This Code of Conduct is adapted from the Contributor Covenant, version 1.4, +available at +https://www.contributor-covenant.org/version/1/4/code-of-conduct.html \ No newline at end of file diff --git a/library_generation/owlbot/templates/java_library/CONTRIBUTING.md b/library_generation/owlbot/templates/java_library/CONTRIBUTING.md new file mode 100644 index 0000000000..b65dd279c9 --- /dev/null +++ b/library_generation/owlbot/templates/java_library/CONTRIBUTING.md @@ -0,0 +1,92 @@ +# How to Contribute + +We'd love to accept your patches and contributions to this project. There are +just a few small guidelines you need to follow. + +## Contributor License Agreement + +Contributions to this project must be accompanied by a Contributor License +Agreement. You (or your employer) retain the copyright to your contribution; +this simply gives us permission to use and redistribute your contributions as +part of the project. Head over to to see +your current agreements on file or to sign a new one. + +You generally only need to submit a CLA once, so if you've already submitted one +(even if it was for a different project), you probably don't need to do it +again. + +## Code reviews + +All submissions, including submissions by project members, require review. We +use GitHub pull requests for this purpose. Consult +[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more +information on using pull requests. + +## Community Guidelines + +This project follows +[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). + +## Building the project + +To build, package, and run all unit tests run the command + +``` +mvn clean verify +``` + +### Running Integration tests + +To include integration tests when building the project, you need access to +a GCP Project with a valid service account. + +For instructions on how to generate a service account and corresponding +credentials JSON see: [Creating a Service Account][1]. + +Then run the following to build, package, run all unit tests and run all +integration tests. + +```bash +export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json +mvn -Penable-integration-tests clean verify +``` + +## Code Samples + +All code samples must be in compliance with the [java sample formatting guide][3]. +Code Samples must be bundled in separate Maven modules. + +The samples must be separate from the primary project for a few reasons: +1. Primary projects have a minimum Java version of Java 8 whereas samples can have + Java version of Java 11. Due to this we need the ability to + selectively exclude samples from a build run. +2. Many code samples depend on external GCP services and need + credentials to access the service. +3. Code samples are not released as Maven artifacts and must be excluded from + release builds. + +### Building + +```bash +mvn clean verify +``` + +Some samples require access to GCP services and require a service account: + +```bash +export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json +mvn clean verify +``` + +### Code Formatting + +Code in this repo is formatted with +[google-java-format](https://github.com/google/google-java-format). +To run formatting on your project, you can run: +``` +mvn com.coveo:fmt-maven-plugin:format +``` + +[1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account +[2]: https://maven.apache.org/settings.html#Active_Profiles +[3]: https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md \ No newline at end of file diff --git a/library_generation/owlbot/templates/java_library/LICENSE b/library_generation/owlbot/templates/java_library/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/library_generation/owlbot/templates/java_library/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + 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. diff --git a/library_generation/owlbot/templates/java_library/README.md b/library_generation/owlbot/templates/java_library/README.md new file mode 100644 index 0000000000..e849a97147 --- /dev/null +++ b/library_generation/owlbot/templates/java_library/README.md @@ -0,0 +1,288 @@ +{% set group_id = metadata['repo']['distribution_name'].split(':')|first -%} +{% set artifact_id = metadata['repo']['distribution_name'].split(':')|last -%} +{% set repo_short = metadata['repo']['repo'].split('/')|last -%} + +# Google {{ metadata['repo']['name_pretty'] }} Client for Java + +Java idiomatic client for [{{metadata['repo']['name_pretty']}}][product-docs]. + +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] + +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] +{% if 'partials' in metadata and metadata['partials']['deprecation_warning'] -%} +{{ metadata['partials']['deprecation_warning'] }} +{% elif metadata['repo']['release_level'] in ['preview'] %} +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. +{% endif %} +{% if migrated_split_repo %} +:bus: In October 2022, this library has moved to +[google-cloud-java/{{ metadata['repo']['repo_short'] }}]( +https://github.com/googleapis/google-cloud-java/tree/main/{{ metadata['repo']['repo_short'] }}). +This repository will be archived in the future. +Future releases will appear in the new repository (https://github.com/googleapis/google-cloud-java/releases). +The Maven artifact coordinates (`{{ group_id }}:{{ artifact_id }}`) remain the same. +{% endif %} +## Quickstart + +{% if 'snippets' in metadata and metadata['snippets'][metadata['repo']['api_shortname'] + '_install_with_bom'] -%} +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: + +```xml +{{ metadata['snippets'][metadata['repo']['api_shortname'] + '_install_with_bom'] }} +``` + +If you are using Maven without the BOM, add this to your dependencies: +{% elif monorepo %} +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: + +```xml + + + + com.google.cloud + libraries-bom + {{ metadata['latest_bom_version'] }} + pom + import + + + + + + + {{ group_id }} + {{ artifact_id }} + +``` + +If you are using Maven without the BOM, add this to your dependencies: +{% else %} +If you are using Maven, add this to your pom.xml file: +{% endif %} + + +```xml +{% if 'snippets' in metadata and metadata['snippets'][metadata['repo']['api_shortname'] + '_install_without_bom'] -%} +{{ metadata['snippets'][metadata['repo']['api_shortname'] + '_install_without_bom'] }} +{% else -%} + + {{ group_id }} + {{ artifact_id }} + {{ metadata['latest_version'] }} + +{% endif -%} +``` + +{% if 'snippets' in metadata and metadata['snippets'][metadata['repo']['api_shortname'] + '_install_with_bom'] -%} +If you are using Gradle 5.x or later, add this to your dependencies: + +```Groovy +implementation platform('com.google.cloud:libraries-bom:{{metadata['latest_bom_version']}}') + +implementation '{{ group_id }}:{{ artifact_id }}' +``` +{% endif -%} + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation '{{ group_id }}:{{ artifact_id }}:{{ metadata['latest_version'] }}' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "{{ group_id }}" % "{{ artifact_id }}" % "{{ metadata['latest_version'] }}" +``` + + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired {{metadata['repo']['name_pretty']}} APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the {{metadata['repo']['name_pretty']}} API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the {{metadata['repo']['name_pretty']}} [API enabled][enable-api]. +{% if metadata['repo']['requires_billing'] %}You will need to [enable billing][enable-billing] to use Google {{metadata['repo']['name_pretty']}}.{% endif %} +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +### Installation and setup + +You'll need to obtain the `{{ artifact_id }}` library. See the [Quickstart](#quickstart) section +to add `{{ artifact_id }}` as a dependency in your code. + +## About {{metadata['repo']['name_pretty']}} + +{% if 'partials' in metadata and metadata['partials']['about'] -%} +{{ metadata['partials']['about'] }} +{% else %} +[{{ metadata['repo']['name_pretty'] }}][product-docs] {{ metadata['repo']['api_description'] }} + +See the [{{metadata['repo']['name_pretty']}} client library docs][javadocs] to learn how to +use this {{metadata['repo']['name_pretty']}} Client Library. +{% endif %} + +{% if 'partials' in metadata and metadata['partials']['custom_content'] -%} +{{ metadata['partials']['custom_content'] }} +{% endif %} + +{% if metadata['samples']|length %} +## Samples + +Samples are in the [`samples/`](https://github.com/{{ metadata['repo']['repo'] }}/tree/main/samples) directory. + +| Sample | Source Code | Try it | +| --------------------------- | --------------------------------- | ------ | +{% for sample in metadata['samples'] %}| {{ sample.title }} | [source code](https://github.com/{{ metadata['repo']['repo'] }}/blob/main/{{ sample.file }}) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/{{ metadata['repo']['repo'] }}&page=editor&open_in_editor={{ sample.file }}) | +{% endfor %} +{% endif %} + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +{% if metadata['repo']['transport'] -%} +## Transport + +{% if metadata['repo']['transport'] == 'grpc' -%} +{{metadata['repo']['name_pretty']}} uses gRPC for the transport layer. +{% elif metadata['repo']['transport'] == 'http' -%} +{{metadata['repo']['name_pretty']}} uses HTTP/JSON for the transport layer. +{% elif metadata['repo']['transport'] == 'both' -%} +{{metadata['repo']['name_pretty']}} uses both gRPC and HTTP/JSON for the transport layer. +{% endif %} +{% endif -%} + +## Supported Java Versions + +Java {{ metadata['min_java_version'] }} or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + +## Versioning + +{% if 'partials' in metadata and metadata['partials']['versioning'] -%} +{{ metadata['partials']['versioning'] }} +{% else %} +This library follows [Semantic Versioning](http://semver.org/). + +{% if metadata['repo']['release_level'] in ['preview'] %} +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. +{% endif %}{% endif %} + +## Contributing + +{% if 'partials' in metadata and metadata['partials']['contributing'] -%} +{{ metadata['partials']['contributing'] }} +{% else %} +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. +{% endif %} + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +## CI Status + +Java Version | Status +------------ | ------{% if metadata['min_java_version'] <= 7 %} +Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1]{% endif %} +Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] +Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] +Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] +Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: {{metadata['repo']['product_documentation']}} +[javadocs]: {{metadata['repo']['client_documentation']}} +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java11.html +[stability-image]: https://img.shields.io/badge/stability-{% if metadata['repo']['release_level'] == 'stable' %}stable-green{% elif metadata['repo']['release_level'] == 'preview' %}preview-yellow{% else %}unknown-red{% endif %} +[maven-version-image]: https://img.shields.io/maven-central/v/{{ group_id }}/{{ artifact_id }}.svg +[maven-version-link]: https://central.sonatype.com/artifact/{{ group_id }}/{{ artifact_id }}/{{ metadata['latest_version'] }} +[authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-cli]: https://cloud.google.com/cli +[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md +[contributing]: https://github.com/{{metadata['repo']['repo']}}/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/{{metadata['repo']['repo']}}/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/{{metadata['repo']['repo']}}/blob/main/LICENSE +{% if metadata['repo']['requires_billing'] %}[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing{% endif %} +{% if metadata['repo']['api_id'] %}[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid={{ metadata['repo']['api_id'] }}{% endif %} +[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/library_generation/owlbot/templates/java_library/SECURITY.md b/library_generation/owlbot/templates/java_library/SECURITY.md new file mode 100644 index 0000000000..8b58ae9c01 --- /dev/null +++ b/library_generation/owlbot/templates/java_library/SECURITY.md @@ -0,0 +1,7 @@ +# Security Policy + +To report a security issue, please use [g.co/vulnz](https://g.co/vulnz). + +The Google Security Team will respond within 5 working days of your report on g.co/vulnz. + +We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue. diff --git a/library_generation/owlbot/templates/java_library/java.header b/library_generation/owlbot/templates/java_library/java.header new file mode 100644 index 0000000000..d0970ba7d3 --- /dev/null +++ b/library_generation/owlbot/templates/java_library/java.header @@ -0,0 +1,15 @@ +^/\*$ +^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)$ +^ \*$ +^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ +^ \* you may not use this file except in compliance with the License\.$ +^ \* You may obtain a copy of the License at$ +^ \*$ +^ \*[ ]+https?://www.apache.org/licenses/LICENSE-2\.0$ +^ \*$ +^ \* Unless required by applicable law or agreed to in writing, software$ +^ \* distributed under the License is distributed on an "AS IS" BASIS,$ +^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$ +^ \* See the License for the specific language governing permissions and$ +^ \* limitations under the License\.$ +^ \*/$ diff --git a/library_generation/owlbot/templates/java_library/license-checks.xml b/library_generation/owlbot/templates/java_library/license-checks.xml new file mode 100644 index 0000000000..6597fced80 --- /dev/null +++ b/library_generation/owlbot/templates/java_library/license-checks.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/library_generation/owlbot/templates/java_library/renovate.json b/library_generation/owlbot/templates/java_library/renovate.json new file mode 100644 index 0000000000..16c68a2387 --- /dev/null +++ b/library_generation/owlbot/templates/java_library/renovate.json @@ -0,0 +1,80 @@ +{% if migrated_split_repo %}{ + "enabled": false, +{% else %}{ +{% endif %} "extends": [ + ":separateMajorReleases", + ":combinePatchMinorReleases", + ":ignoreUnstable", + ":prImmediately", + ":updateNotScheduled", + ":automergeDisabled", + ":ignoreModulesAndTests", + ":maintainLockFilesDisabled", + ":autodetectPinVersions" + ], + "ignorePaths": [ + ".kokoro/requirements.txt", + ".github/workflows/**" + ], + "packageRules": [ + { + "packagePatterns": [ + "^com.google.guava:" + ], + "versionScheme": "docker" + }, + { + "packagePatterns": [ + "*" + ], + "semanticCommitType": "deps", + "semanticCommitScope": null + }, + { + "packagePatterns": [ + "^org.apache.maven", + "^org.jacoco:", + "^org.codehaus.mojo:", + "^org.sonatype.plugins:", + "^com.coveo:", + "^com.google.cloud:google-cloud-shared-config" + ], + "semanticCommitType": "build", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^{{metadata['repo']['distribution_name']}}", + "^com.google.cloud:libraries-bom", + "^com.google.cloud.samples:shared-configuration" + ], + "semanticCommitType": "chore", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^junit:junit", + "^com.google.truth:truth", + "^org.mockito:mockito-core", + "^org.objenesis:objenesis", + "^com.google.cloud:google-cloud-conformance-tests" + ], + "semanticCommitType": "test", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^com.google.cloud:google-cloud-" + ], + "ignoreUnstable": false + }, + { + "packagePatterns": [ + "^com.fasterxml.jackson.core" + ], + "groupName": "jackson dependencies" + } + ], + "semanticCommits": true, + "dependencyDashboard": true +} diff --git a/library_generation/owlbot/templates/java_library/samples/install-without-bom/pom.xml b/library_generation/owlbot/templates/java_library/samples/install-without-bom/pom.xml new file mode 100644 index 0000000000..110250d003 --- /dev/null +++ b/library_generation/owlbot/templates/java_library/samples/install-without-bom/pom.xml @@ -0,0 +1,86 @@ +{% set group_id = metadata['repo']['distribution_name'].split(':')|first -%} +{% set artifact_id = metadata['repo']['distribution_name'].split(':')|last -%} + + + 4.0.0 + com.google.cloud + {{metadata['repo']['name']}}-install-without-bom + jar + Google {{metadata['repo']['name_pretty']}} Install Without Bom + https://github.com/{{metadata['repo']['repo']}} + + + + com.google.cloud.samples + shared-configuration + 1.2.0 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + {{ group_id }} + {{ artifact_id }} + {{ metadata['latest_version'] }} + + + + + junit + junit + 4.13.2 + test + + + com.google.truth + truth + 1.1.3 + test + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.3.0 + + + add-snippets-source + + add-source + + + + ../snippets/src/main/java + + + + + add-snippets-tests + + add-test-source + + + + ../snippets/src/test/java + + + + + + + + diff --git a/library_generation/owlbot/templates/java_library/samples/pom.xml b/library_generation/owlbot/templates/java_library/samples/pom.xml new file mode 100644 index 0000000000..0f11429996 --- /dev/null +++ b/library_generation/owlbot/templates/java_library/samples/pom.xml @@ -0,0 +1,56 @@ + + + 4.0.0 + com.google.cloud + google-cloud-{{metadata['repo']['name']}}-samples + 0.0.1-SNAPSHOT + pom + Google {{metadata['repo']['name_pretty']}} Samples Parent + https://github.com/{{metadata['repo']['repo']}} + + Java idiomatic client for Google Cloud Platform services. + + + + + com.google.cloud.samples + shared-configuration + 1.2.0 + + + + 1.8 + 1.8 + UTF-8 + + + + install-without-bom + snapshot + snippets + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + true + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + + true + + + + + diff --git a/library_generation/owlbot/templates/java_library/samples/snapshot/pom.xml b/library_generation/owlbot/templates/java_library/samples/snapshot/pom.xml new file mode 100644 index 0000000000..62a83b440e --- /dev/null +++ b/library_generation/owlbot/templates/java_library/samples/snapshot/pom.xml @@ -0,0 +1,85 @@ +{% set group_id = metadata['repo']['distribution_name'].split(':')|first -%} +{% set artifact_id = metadata['repo']['distribution_name'].split(':')|last -%} + + + 4.0.0 + com.google.cloud + {{metadata['repo']['name']}}-snapshot + jar + Google {{metadata['repo']['name_pretty']}} Snapshot Samples + https://github.com/{{metadata['repo']['repo']}} + + + + com.google.cloud.samples + shared-configuration + 1.2.0 + + + + 1.8 + 1.8 + UTF-8 + + + + + + {{ group_id }} + {{ artifact_id }} + {{ metadata['latest_version'] }} + + + + + junit + junit + 4.13.2 + test + + + com.google.truth + truth + 1.1.3 + test + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.3.0 + + + add-snippets-source + + add-source + + + + ../snippets/src/main/java + + + + + add-snippets-tests + + add-test-source + + + + ../snippets/src/test/java + + + + + + + + diff --git a/library_generation/owlbot/templates/java_library/samples/snippets/pom.xml b/library_generation/owlbot/templates/java_library/samples/snippets/pom.xml new file mode 100644 index 0000000000..c6b9981507 --- /dev/null +++ b/library_generation/owlbot/templates/java_library/samples/snippets/pom.xml @@ -0,0 +1,49 @@ +{% set group_id = metadata['repo']['distribution_name'].split(':')|first -%} +{% set artifact_id = metadata['repo']['distribution_name'].split(':')|last -%} + + + 4.0.0 + com.google.cloud + {{metadata['repo']['name']}}-snippets + jar + Google {{metadata['repo']['name_pretty']}} Snippets + https://github.com/{{metadata['repo']['repo']}} + + + + com.google.cloud.samples + shared-configuration + 1.2.0 + + + + 1.8 + 1.8 + UTF-8 + + + + + + {{ group_id }} + {{ artifact_id }} + {{ metadata['latest_version'] }} + + + + junit + junit + 4.13.2 + test + + + com.google.truth + truth + 1.1.3 + test + + + diff --git a/library_generation/postprocess_library.sh b/library_generation/postprocess_library.sh index d46a9c890c..8ab7f1527a 100755 --- a/library_generation/postprocess_library.sh +++ b/library_generation/postprocess_library.sh @@ -20,6 +20,8 @@ # provided # 7 - is_monorepo: whether this library is a monorepo, which implies slightly # different logic +# 8 - configuration_yaml_path: path to the configuration yaml containing library +# generation information for this library set -eo pipefail scripts_root=$(dirname "$(readlink -f "$0")") @@ -30,6 +32,7 @@ owlbot_cli_source_folder=$4 owlbot_cli_image_sha=$5 synthtool_commitish=$6 is_monorepo=$7 +configuration_yaml_path=$8 source "${scripts_root}"/utilities.sh @@ -79,11 +82,14 @@ docker run --rm \ # we clone the synthtool library and manually build it mkdir -p /tmp/synthtool pushd /tmp/synthtool + if [ ! -d "synthtool" ]; then git clone https://github.com/googleapis/synthtool.git fi pushd "synthtool" + git reset --hard "${synthtool_commitish}" + python3 -m pip install -e . python3 -m pip install -r requirements.in popd # synthtool @@ -97,5 +103,5 @@ popd # owlbot/src # run the postprocessor echo 'running owl-bot post-processor' pushd "${postprocessing_target}" -bash "${scripts_root}/owlbot/bin/entrypoint.sh" "${scripts_root}" "${versions_file}" +bash "${scripts_root}/owlbot/bin/entrypoint.sh" "${scripts_root}" "${versions_file}" "${configuration_yaml_path}" popd # postprocessing_target diff --git a/library_generation/test/resources/integration/google-cloud-java/generation_config.yaml b/library_generation/test/resources/integration/google-cloud-java/generation_config.yaml index 67164271fb..a7ca6bec7b 100644 --- a/library_generation/test/resources/integration/google-cloud-java/generation_config.yaml +++ b/library_generation/test/resources/integration/google-cloud-java/generation_config.yaml @@ -4,6 +4,18 @@ googleapis_commitish: 1a45bf7393b52407188c82e63101db7dc9c72026 owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 synthtool_commitish: 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5 destination_path: google-cloud-java +template_excludes: + - ".github/*" + - ".kokoro/*" + - "samples/*" + - "CODE_OF_CONDUCT.md" + - "CONTRIBUTING.md" + - "LICENSE" + - "SECURITY.md" + - "java.header" + - "license-checks.xml" + - "renovate.json" + - ".gitignore" libraries: - api_shortname: apigeeconnect name_pretty: Apigee Connect diff --git a/library_generation/test/resources/integration/java-bigtable/generation_config.yaml b/library_generation/test/resources/integration/java-bigtable/generation_config.yaml index fcad57c819..7e62bea404 100644 --- a/library_generation/test/resources/integration/java-bigtable/generation_config.yaml +++ b/library_generation/test/resources/integration/java-bigtable/generation_config.yaml @@ -1,10 +1,26 @@ gapic_generator_version: 2.32.0 grpc_version: 1.61.0 -protobuf_version: 23.2 -googleapis_commitish: 4512234113a18c1fda1fb0d0ceac8f4b4efe9801 +protobuf_version: 25.2 +googleapis_commitish: 40203ca1880849480bbff7b8715491060bbccdf1 owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 synthtool_commitish: 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5 destination_path: java-bigtable +template_excludes: + - ".gitignore" + - ".kokoro/presubmit/integration.cfg" + - ".kokoro/presubmit/graalvm-native.cfg" + - ".kokoro/presubmit/graalvm-native-17.cfg" + - ".kokoro/nightly/integration.cfg" + - ".kokoro/presubmit/samples.cfg" + - ".kokoro/nightly/samples.cfg" + - ".github/ISSUE_TEMPLATE/bug_report.md" + - ".github/PULL_REQUEST_TEMPLATE.md" + - "CONTRIBUTING.md" + - "codecov.yaml" + - ".github/release-please.yml" + - "renovate.json" + - ".kokoro/requirements.in" + - ".kokoro/requirements.txt" libraries: - api_shortname: bigtable name_pretty: Cloud Bigtable diff --git a/library_generation/test/unit_tests.py b/library_generation/test/unit_tests.py index f819bae3e7..268b3ff0c8 100644 --- a/library_generation/test/unit_tests.py +++ b/library_generation/test/unit_tests.py @@ -12,6 +12,9 @@ # 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. +""" +Unit tests for python scripts +""" import unittest import os @@ -354,6 +357,8 @@ def __get_a_gen_config(num: int): googleapis_commitish="", owlbot_cli_image="", synthtool_commitish="", + template_excludes=[], + path_to_yaml=".", libraries=libraries, ) From 6c0aae0bf21b965c90f9459cc350bd72c677e832 Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Thu, 8 Feb 2024 16:37:23 -0500 Subject: [PATCH 48/75] chore: update dev guide to get version of gapic-showcase to install. (#2451) This addition removes the trailing ANSI escape sequence (`\x1b[0m`) on the returned version. This regex `\x1b\[[0-9;]*m` matches ANSI escape sequences. --- showcase/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/showcase/README.md b/showcase/README.md index b4987b1c15..4bd35c4252 100644 --- a/showcase/README.md +++ b/showcase/README.md @@ -18,7 +18,7 @@ update to a compatible client version in `./WORKSPACE`. ```shell # Install the showcase server version defined in gapic-showcase/pom.xml cd showcase -go install github.com/googleapis/gapic-showcase/cmd/gapic-showcase@v"$(cd gapic-showcase;mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" +go install github.com/googleapis/gapic-showcase/cmd/gapic-showcase@v"$(cd gapic-showcase;mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout |sed 's/\x1b\[[0-9;]*m//g')" PATH=$PATH:`go env GOPATH`/bin gapic-showcase --help > Root command of gapic-showcase From 903c1f63eb933b80b6461182e162e7d2826ac2dc Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Thu, 8 Feb 2024 16:59:51 -0500 Subject: [PATCH 49/75] chore: refactor golden tests for autopopulation feature (#2446) As a clean-up follow up to https://github.com/googleapis/sdk-platform-java/pull/2353, this PR refactors the unit golden tests for the autopopulation feature to a separate, new proto called `auto_populate_field_testing.proto`. --- .../DefaultValueComposerTest.java | 6 - .../GrpcServiceStubClassComposerTest.java | 10 + .../composer/grpc/goldens/EchoClient.golden | 48 +-- .../grpc/goldens/EchoClientTest.golden | 72 +---- .../goldens/GrpcAutoPopulateFieldStub.golden | 282 +++++++++++++++++ .../composer/grpc/goldens/GrpcEchoStub.golden | 13 - .../samples/echoclient/AsyncChat.golden | 6 - .../samples/echoclient/AsyncChatAgain.golden | 6 - .../samples/echoclient/AsyncCollect.golden | 6 - .../echoclient/AsyncCollideName.golden | 6 - .../samples/echoclient/AsyncEcho.golden | 6 - .../samples/echoclient/AsyncExpand.golden | 6 +- .../samples/echoclient/SyncCollideName.golden | 6 - .../samples/echoclient/SyncEcho.golden | 6 - .../HttpJsonServiceStubClassComposerTest.java | 10 + ...ttpJsonAutoPopulateFieldTestingStub.golden | 288 ++++++++++++++++++ .../rest/goldens/HttpJsonEchoStub.golden | 13 - ...lientCallableMethodSampleComposerTest.java | 24 +- ...ServiceClientHeaderSampleComposerTest.java | 12 +- ...ServiceClientMethodSampleComposerTest.java | 12 - .../gapic/protoparser/ParserTest.java | 61 ++-- .../protoparser/ServiceYamlParserTest.java | 24 +- .../test/protoloader/TestProtoLoader.java | 35 +++ .../proto/auto_populate_field_testing.proto | 144 +++++++++ .../src/test/proto/echo.proto | 37 --- .../auto_populate_field_testing.yaml | 24 ++ .../src/test/resources/echo_v1beta1.yaml | 11 +- 27 files changed, 847 insertions(+), 327 deletions(-) create mode 100644 gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcAutoPopulateFieldStub.golden create mode 100644 gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden create mode 100644 gapic-generator-java/src/test/proto/auto_populate_field_testing.proto create mode 100644 gapic-generator-java/src/test/resources/auto_populate_field_testing.yaml diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/defaultvalue/DefaultValueComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/defaultvalue/DefaultValueComposerTest.java index 3345645c8c..264060f474 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/defaultvalue/DefaultValueComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/defaultvalue/DefaultValueComposerTest.java @@ -568,12 +568,6 @@ public void createSimpleMessage_containsMessagesEnumsAndResourceName() { "EchoRequest.newBuilder().setName(" + "FoobarName.ofProjectFoobarName(\"[PROJECT]\", \"[FOOBAR]\").toString())" + ".setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\", \"[FOOBAR]\").toString())" - + ".setRequestId(\"requestId693933066\")" - + ".setSecondRequestId(\"secondRequestId344404470\")" - + ".setThirdRequestId(true)" - + ".setFourthRequestId(\"fourthRequestId-2116417776\")" - + ".setFifthRequestId(\"fifthRequestId959024147\")" - + ".setSixthRequestId(\"sixthRequestId1005218260\")" + ".setSeverity(Severity.forNumber(0))" + ".setFoobar(Foobar.newBuilder().build()).build()", writerVisitor.write()); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java index efe0ce8222..1c00534433 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposerTest.java @@ -82,4 +82,14 @@ public void generateGrpcServiceStubClass_createBatchingCallable() { Assert.assertGoldenClass(this.getClass(), clazz, "GrpcLoggingStub.golden"); Assert.assertEmptySamples(clazz.samples()); } + + @Test + public void generateGrpcServiceStubClass_autopopulateField() { + GapicContext context = GrpcTestProtoLoader.instance().parseAutoPopulateFieldTesting(); + Service service = context.services().get(0); + GapicClass clazz = GrpcServiceStubClassComposer.instance().generate(context, service); + + Assert.assertGoldenClass(this.getClass(), clazz, "GrpcAutoPopulateFieldStub.golden"); + Assert.assertEmptySamples(clazz.samples()); + } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden index f1bf7437b4..431700191c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden @@ -517,12 +517,6 @@ public class EchoClient implements BackgroundResource { * EchoRequest.newBuilder() * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - * .setRequestId("requestId693933066") - * .setSecondRequestId("secondRequestId344404470") - * .setThirdRequestId(true) - * .setFourthRequestId("fourthRequestId-2116417776") - * .setFifthRequestId("fifthRequestId959024147") - * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); @@ -552,12 +546,6 @@ public class EchoClient implements BackgroundResource { * EchoRequest.newBuilder() * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - * .setRequestId("requestId693933066") - * .setSecondRequestId("secondRequestId344404470") - * .setThirdRequestId(true) - * .setFourthRequestId("fourthRequestId-2116417776") - * .setFifthRequestId("fifthRequestId959024147") - * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); @@ -583,11 +571,7 @@ public class EchoClient implements BackgroundResource { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EchoClient echoClient = EchoClient.create()) { * ExpandRequest request = - * ExpandRequest.newBuilder() - * .setContent("content951530617") - * .setInfo("info3237038") - * .setRequestId("requestId693933066") - * .build(); + * ExpandRequest.newBuilder().setContent("content951530617").setInfo("info3237038").build(); * ServerStream stream = echoClient.expandCallable().call(request); * for (EchoResponse response : stream) { * // Do something when a response is received. @@ -633,12 +617,6 @@ public class EchoClient implements BackgroundResource { * EchoRequest.newBuilder() * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - * .setRequestId("requestId693933066") - * .setSecondRequestId("secondRequestId344404470") - * .setThirdRequestId(true) - * .setFourthRequestId("fourthRequestId-2116417776") - * .setFifthRequestId("fifthRequestId959024147") - * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); @@ -666,12 +644,6 @@ public class EchoClient implements BackgroundResource { * EchoRequest.newBuilder() * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - * .setRequestId("requestId693933066") - * .setSecondRequestId("secondRequestId344404470") - * .setThirdRequestId(true) - * .setFourthRequestId("fourthRequestId-2116417776") - * .setFifthRequestId("fifthRequestId959024147") - * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); @@ -702,12 +674,6 @@ public class EchoClient implements BackgroundResource { * EchoRequest.newBuilder() * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - * .setRequestId("requestId693933066") - * .setSecondRequestId("secondRequestId344404470") - * .setThirdRequestId(true) - * .setFourthRequestId("fourthRequestId-2116417776") - * .setFifthRequestId("fifthRequestId959024147") - * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); @@ -1116,12 +1082,6 @@ public class EchoClient implements BackgroundResource { * EchoRequest.newBuilder() * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - * .setRequestId("requestId693933066") - * .setSecondRequestId("secondRequestId344404470") - * .setThirdRequestId(true) - * .setFourthRequestId("fourthRequestId-2116417776") - * .setFifthRequestId("fifthRequestId959024147") - * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); @@ -1151,12 +1111,6 @@ public class EchoClient implements BackgroundResource { * EchoRequest.newBuilder() * .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) * .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - * .setRequestId("requestId693933066") - * .setSecondRequestId("secondRequestId344404470") - * .setThirdRequestId(true) - * .setFourthRequestId("fourthRequestId-2116417776") - * .setFifthRequestId("fifthRequestId959024147") - * .setSixthRequestId("sixthRequestId1005218260") * .setSeverity(Severity.forNumber(0)) * .setFoobar(Foobar.newBuilder().build()) * .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClientTest.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClientTest.golden index a2a88d6bf3..1372cdd94e 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClientTest.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClientTest.golden @@ -108,12 +108,6 @@ public class EchoClientTest { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -409,11 +403,7 @@ public class EchoClientTest { .build(); mockEcho.addResponse(expectedResponse); ExpandRequest request = - ExpandRequest.newBuilder() - .setContent("content951530617") - .setInfo("info3237038") - .setRequestId("requestId693933066") - .build(); + ExpandRequest.newBuilder().setContent("content951530617").setInfo("info3237038").build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -430,11 +420,7 @@ public class EchoClientTest { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockEcho.addException(exception); ExpandRequest request = - ExpandRequest.newBuilder() - .setContent("content951530617") - .setInfo("info3237038") - .setRequestId("requestId693933066") - .build(); + ExpandRequest.newBuilder().setContent("content951530617").setInfo("info3237038").build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -463,12 +449,6 @@ public class EchoClientTest { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -494,12 +474,6 @@ public class EchoClientTest { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -533,12 +507,6 @@ public class EchoClientTest { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -564,12 +532,6 @@ public class EchoClientTest { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -603,12 +565,6 @@ public class EchoClientTest { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -634,12 +590,6 @@ public class EchoClientTest { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -898,12 +848,6 @@ public class EchoClientTest { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); @@ -917,12 +861,6 @@ public class EchoClientTest { Assert.assertEquals(request.getName(), actualRequest.getName()); Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getRequestId(), actualRequest.getRequestId()); - Assert.assertEquals(request.getSecondRequestId(), actualRequest.getSecondRequestId()); - Assert.assertEquals(request.getThirdRequestId(), actualRequest.getThirdRequestId()); - Assert.assertEquals(request.getFourthRequestId(), actualRequest.getFourthRequestId()); - Assert.assertEquals(request.getFifthRequestId(), actualRequest.getFifthRequestId()); - Assert.assertEquals(request.getSixthRequestId(), actualRequest.getSixthRequestId()); Assert.assertEquals(request.getContent(), actualRequest.getContent()); Assert.assertEquals(request.getError(), actualRequest.getError()); Assert.assertEquals(request.getSeverity(), actualRequest.getSeverity()); @@ -943,12 +881,6 @@ public class EchoClientTest { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcAutoPopulateFieldStub.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcAutoPopulateFieldStub.golden new file mode 100644 index 0000000000..cfef350643 --- /dev/null +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcAutoPopulateFieldStub.golden @@ -0,0 +1,282 @@ +package com.google.auto.populate.field.stub; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.auto.populate.field.AutoPopulateFieldTestingEchoRequest; +import com.google.auto.populate.field.AutoPopulateFieldTestingEchoResponse; +import com.google.auto.populate.field.AutoPopulateFieldTestingExpandRequest; +import com.google.common.base.Strings; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.UUID; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AutoPopulateFieldTesting service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcAutoPopulateFieldTestingStub extends AutoPopulateFieldTestingStub { + private static final MethodDescriptor< + AutoPopulateFieldTestingEchoRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingEchoMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.auto.populate.field.AutoPopulateFieldTesting/AutoPopulateFieldTestingEcho") + .setRequestMarshaller( + ProtoUtils.marshaller(AutoPopulateFieldTestingEchoRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AutoPopulateFieldTestingEchoResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + AutoPopulateFieldTestingExpandRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingExpandMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + "google.auto.populate.field.AutoPopulateFieldTesting/AutoPopulateFieldTestingExpand") + .setRequestMarshaller( + ProtoUtils.marshaller(AutoPopulateFieldTestingExpandRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AutoPopulateFieldTestingEchoResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + AutoPopulateFieldTestingEchoRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingCollectMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.CLIENT_STREAMING) + .setFullMethodName( + "google.auto.populate.field.AutoPopulateFieldTesting/AutoPopulateFieldTestingCollect") + .setRequestMarshaller( + ProtoUtils.marshaller(AutoPopulateFieldTestingEchoRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AutoPopulateFieldTestingEchoResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + AutoPopulateFieldTestingEchoRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingChatMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName( + "google.auto.populate.field.AutoPopulateFieldTesting/AutoPopulateFieldTestingChat") + .setRequestMarshaller( + ProtoUtils.marshaller(AutoPopulateFieldTestingEchoRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AutoPopulateFieldTestingEchoResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable< + AutoPopulateFieldTestingEchoRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingEchoCallable; + private final ServerStreamingCallable< + AutoPopulateFieldTestingExpandRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingExpandCallable; + private final ClientStreamingCallable< + AutoPopulateFieldTestingEchoRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingCollectCallable; + private final BidiStreamingCallable< + AutoPopulateFieldTestingEchoRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingChatCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAutoPopulateFieldTestingStub create( + AutoPopulateFieldTestingStubSettings settings) throws IOException { + return new GrpcAutoPopulateFieldTestingStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAutoPopulateFieldTestingStub create(ClientContext clientContext) + throws IOException { + return new GrpcAutoPopulateFieldTestingStub( + AutoPopulateFieldTestingStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAutoPopulateFieldTestingStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAutoPopulateFieldTestingStub( + AutoPopulateFieldTestingStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAutoPopulateFieldTestingStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcAutoPopulateFieldTestingStub( + AutoPopulateFieldTestingStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcAutoPopulateFieldTestingCallableFactory()); + } + + /** + * Constructs an instance of GrpcAutoPopulateFieldTestingStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcAutoPopulateFieldTestingStub( + AutoPopulateFieldTestingStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + autoPopulateFieldTestingEchoTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(autoPopulateFieldTestingEchoMethodDescriptor) + .setRequestMutator( + request -> { + AutoPopulateFieldTestingEchoRequest.Builder requestBuilder = + request.toBuilder(); + if (Strings.isNullOrEmpty(request.getRequestId())) { + requestBuilder.setRequestId(UUID.randomUUID().toString()); + } + if (Strings.isNullOrEmpty(request.getSecondRequestId())) { + requestBuilder.setSecondRequestId(UUID.randomUUID().toString()); + } + return requestBuilder.build(); + }) + .build(); + GrpcCallSettings + autoPopulateFieldTestingExpandTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(autoPopulateFieldTestingExpandMethodDescriptor) + .build(); + GrpcCallSettings + autoPopulateFieldTestingCollectTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(autoPopulateFieldTestingCollectMethodDescriptor) + .build(); + GrpcCallSettings + autoPopulateFieldTestingChatTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(autoPopulateFieldTestingChatMethodDescriptor) + .build(); + + this.autoPopulateFieldTestingEchoCallable = + callableFactory.createUnaryCallable( + autoPopulateFieldTestingEchoTransportSettings, + settings.autoPopulateFieldTestingEchoSettings(), + clientContext); + this.autoPopulateFieldTestingExpandCallable = + callableFactory.createServerStreamingCallable( + autoPopulateFieldTestingExpandTransportSettings, + settings.autoPopulateFieldTestingExpandSettings(), + clientContext); + this.autoPopulateFieldTestingCollectCallable = + callableFactory.createClientStreamingCallable( + autoPopulateFieldTestingCollectTransportSettings, + settings.autoPopulateFieldTestingCollectSettings(), + clientContext); + this.autoPopulateFieldTestingChatCallable = + callableFactory.createBidiStreamingCallable( + autoPopulateFieldTestingChatTransportSettings, + settings.autoPopulateFieldTestingChatSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + autoPopulateFieldTestingEchoCallable() { + return autoPopulateFieldTestingEchoCallable; + } + + @Override + public ServerStreamingCallable< + AutoPopulateFieldTestingExpandRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingExpandCallable() { + return autoPopulateFieldTestingExpandCallable; + } + + @Override + public ClientStreamingCallable< + AutoPopulateFieldTestingEchoRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingCollectCallable() { + return autoPopulateFieldTestingCollectCallable; + } + + @Override + public BidiStreamingCallable< + AutoPopulateFieldTestingEchoRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingChatCallable() { + return autoPopulateFieldTestingChatCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoStub.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoStub.golden index c74e415fef..940ab7d4c4 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoStub.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoStub.golden @@ -14,7 +14,6 @@ import com.google.api.gax.rpc.ClientStreamingCallable; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.base.Strings; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.showcase.v1beta1.BlockRequest; @@ -31,7 +30,6 @@ import com.google.showcase.v1beta1.WaitResponse; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -185,17 +183,6 @@ public class GrpcEchoStub extends EchoStub { GrpcCallSettings echoTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(echoMethodDescriptor) - .setRequestMutator( - request -> { - EchoRequest.Builder requestBuilder = request.toBuilder(); - if (Strings.isNullOrEmpty(request.getRequestId())) { - requestBuilder.setRequestId(UUID.randomUUID().toString()); - } - if (Strings.isNullOrEmpty(request.getSecondRequestId())) { - requestBuilder.setSecondRequestId(UUID.randomUUID().toString()); - } - return requestBuilder.build(); - }) .build(); GrpcCallSettings expandTransportSettings = GrpcCallSettings.newBuilder() diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden index 42bbd4a5a7..020c13e86f 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChat.golden @@ -43,12 +43,6 @@ public class AsyncChat { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden index 6897c6f67a..249166996c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncChatAgain.golden @@ -43,12 +43,6 @@ public class AsyncChatAgain { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden index 4d9438ca9e..72be3b0a98 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollect.golden @@ -61,12 +61,6 @@ public class AsyncCollect { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden index 00083b62ad..8e276d6adf 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncCollideName.golden @@ -42,12 +42,6 @@ public class AsyncCollideName { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden index e75246e24a..e9e14e9459 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncEcho.golden @@ -42,12 +42,6 @@ public class AsyncEcho { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpand.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpand.golden index fe82f5cddf..8c095ac983 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpand.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/AsyncExpand.golden @@ -36,11 +36,7 @@ public class AsyncExpand { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (EchoClient echoClient = EchoClient.create()) { ExpandRequest request = - ExpandRequest.newBuilder() - .setContent("content951530617") - .setInfo("info3237038") - .setRequestId("requestId693933066") - .build(); + ExpandRequest.newBuilder().setContent("content951530617").setInfo("info3237038").build(); ServerStream stream = echoClient.expandCallable().call(request); for (EchoResponse response : stream) { // Do something when a response is received. diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden index 06b87bc186..db8008e189 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncCollideName.golden @@ -41,12 +41,6 @@ public class SyncCollideName { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden index 662f69c7c3..534773f3bb 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/echoclient/SyncEcho.golden @@ -41,12 +41,6 @@ public class SyncEcho { EchoRequest.newBuilder() .setName(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) .setParent(FoobarName.ofProjectFoobarName("[PROJECT]", "[FOOBAR]").toString()) - .setRequestId("requestId693933066") - .setSecondRequestId("secondRequestId344404470") - .setThirdRequestId(true) - .setFourthRequestId("fourthRequestId-2116417776") - .setFifthRequestId("fifthRequestId959024147") - .setSixthRequestId("sixthRequestId1005218260") .setSeverity(Severity.forNumber(0)) .setFoobar(Foobar.newBuilder().build()) .build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposerTest.java index f96e67217f..d1231ebd4a 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposerTest.java @@ -207,4 +207,14 @@ public void generateGrpcServiceStubClass_routingHeaders() { Assert.assertGoldenClass(this.getClass(), clazz, "HttpJsonRoutingHeadersStub.golden"); Assert.assertEmptySamples(clazz.samples()); } + + @Test + public void generateHttpJsonServiceStubClass_autopopulateField() { + GapicContext context = RestTestProtoLoader.instance().parseAutoPopulateFieldTesting(); + Service service = context.services().get(0); + GapicClass clazz = HttpJsonServiceStubClassComposer.instance().generate(context, service); + + Assert.assertGoldenClass(this.getClass(), clazz, "HttpJsonAutoPopulateFieldTestingStub.golden"); + Assert.assertEmptySamples(clazz.samples()); + } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden new file mode 100644 index 0000000000..9b5d7c3b8f --- /dev/null +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden @@ -0,0 +1,288 @@ +package com.google.auto.populate.field.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.auto.populate.field.AutoPopulateFieldTestingEchoRequest; +import com.google.auto.populate.field.AutoPopulateFieldTestingEchoResponse; +import com.google.auto.populate.field.AutoPopulateFieldTestingExpandRequest; +import com.google.common.base.Strings; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AutoPopulateFieldTesting service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonAutoPopulateFieldTestingStub extends AutoPopulateFieldTestingStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + AutoPopulateFieldTestingEchoRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingEchoMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.auto.populate.field.AutoPopulateFieldTesting/AutoPopulateFieldTestingEcho") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/AutoPopulateFieldTesting:echo", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AutoPopulateFieldTestingEchoResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + AutoPopulateFieldTestingExpandRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingExpandMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.auto.populate.field.AutoPopulateFieldTesting/AutoPopulateFieldTestingExpand") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/AutoPopulateFieldTesting:expand", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AutoPopulateFieldTestingEchoResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable< + AutoPopulateFieldTestingEchoRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingEchoCallable; + private final ServerStreamingCallable< + AutoPopulateFieldTestingExpandRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingExpandCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAutoPopulateFieldTestingStub create( + AutoPopulateFieldTestingStubSettings settings) throws IOException { + return new HttpJsonAutoPopulateFieldTestingStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAutoPopulateFieldTestingStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAutoPopulateFieldTestingStub( + AutoPopulateFieldTestingStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonAutoPopulateFieldTestingStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAutoPopulateFieldTestingStub( + AutoPopulateFieldTestingStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAutoPopulateFieldTestingStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAutoPopulateFieldTestingStub( + AutoPopulateFieldTestingStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonAutoPopulateFieldTestingCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAutoPopulateFieldTestingStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAutoPopulateFieldTestingStub( + AutoPopulateFieldTestingStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + autoPopulateFieldTestingEchoTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(autoPopulateFieldTestingEchoMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setRequestMutator( + request -> { + AutoPopulateFieldTestingEchoRequest.Builder requestBuilder = + request.toBuilder(); + if (Strings.isNullOrEmpty(request.getRequestId())) { + requestBuilder.setRequestId(UUID.randomUUID().toString()); + } + if (Strings.isNullOrEmpty(request.getSecondRequestId())) { + requestBuilder.setSecondRequestId(UUID.randomUUID().toString()); + } + return requestBuilder.build(); + }) + .build(); + HttpJsonCallSettings< + AutoPopulateFieldTestingExpandRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingExpandTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(autoPopulateFieldTestingExpandMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.autoPopulateFieldTestingEchoCallable = + callableFactory.createUnaryCallable( + autoPopulateFieldTestingEchoTransportSettings, + settings.autoPopulateFieldTestingEchoSettings(), + clientContext); + this.autoPopulateFieldTestingExpandCallable = + callableFactory.createServerStreamingCallable( + autoPopulateFieldTestingExpandTransportSettings, + settings.autoPopulateFieldTestingExpandSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(autoPopulateFieldTestingEchoMethodDescriptor); + methodDescriptors.add(autoPopulateFieldTestingExpandMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + autoPopulateFieldTestingEchoCallable() { + return autoPopulateFieldTestingEchoCallable; + } + + @Override + public ServerStreamingCallable< + AutoPopulateFieldTestingExpandRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingExpandCallable() { + return autoPopulateFieldTestingExpandCallable; + } + + @Override + public ClientStreamingCallable< + AutoPopulateFieldTestingEchoRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingCollectCallable() { + throw new UnsupportedOperationException( + "Not implemented: autoPopulateFieldTestingCollectCallable(). REST transport is not implemented for this method yet."); + } + + @Override + public BidiStreamingCallable< + AutoPopulateFieldTestingEchoRequest, AutoPopulateFieldTestingEchoResponse> + autoPopulateFieldTestingChatCallable() { + throw new UnsupportedOperationException( + "Not implemented: autoPopulateFieldTestingChatCallable(). REST transport is not implemented for this method yet."); + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonEchoStub.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonEchoStub.golden index d58ce093b9..18904bdfbe 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonEchoStub.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonEchoStub.golden @@ -23,7 +23,6 @@ import com.google.api.gax.rpc.ClientStreamingCallable; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.base.Strings; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.protobuf.TypeRegistry; @@ -43,7 +42,6 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -410,17 +408,6 @@ public class HttpJsonEchoStub extends EchoStub { HttpJsonCallSettings.newBuilder() .setMethodDescriptor(echoMethodDescriptor) .setTypeRegistry(typeRegistry) - .setRequestMutator( - request -> { - EchoRequest.Builder requestBuilder = request.toBuilder(); - if (Strings.isNullOrEmpty(request.getRequestId())) { - requestBuilder.setRequestId(UUID.randomUUID().toString()); - } - if (Strings.isNullOrEmpty(request.getSecondRequestId())) { - requestBuilder.setSecondRequestId(UUID.randomUUID().toString()); - } - return requestBuilder.build(); - }) .build(); HttpJsonCallSettings expandTransportSettings = HttpJsonCallSettings.newBuilder() diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java index 47be643ffa..f063c50903 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java @@ -462,11 +462,7 @@ public void valid_composeStreamCallableMethod_serverStream() { LineFormatter.lines( "try (EchoClient echoClient = EchoClient.create()) {\n", " ExpandRequest request =\n", - " ExpandRequest.newBuilder()\n", - " .setContent(\"content951530617\")\n", - " .setInfo(\"info3237038\")\n", - " .setRequestId(\"requestId693933066\")\n", - " .build();\n", + " ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n", " ServerStream stream = echoClient.expandCallable().call(request);\n", " for (EchoResponse response : stream) {\n", " // Do something when a response is received.\n", @@ -579,12 +575,6 @@ public void valid_composeStreamCallableMethod_bidiStream() { + " \"[FOOBAR]\").toString())\n", " .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\"," + " \"[FOOBAR]\").toString())\n", - " .setRequestId(\"requestId693933066\")\n", - " .setSecondRequestId(\"secondRequestId344404470\")\n", - " .setThirdRequestId(true)\n", - " .setFourthRequestId(\"fourthRequestId-2116417776\")\n", - " .setFifthRequestId(\"fifthRequestId959024147\")\n", - " .setSixthRequestId(\"sixthRequestId1005218260\")\n", " .setSeverity(Severity.forNumber(0))\n", " .setFoobar(Foobar.newBuilder().build())\n", " .build();\n", @@ -717,12 +707,6 @@ public void valid_composeStreamCallableMethod_clientStream() { + " \"[FOOBAR]\").toString())\n", " .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\"," + " \"[FOOBAR]\").toString())\n", - " .setRequestId(\"requestId693933066\")\n", - " .setSecondRequestId(\"secondRequestId344404470\")\n", - " .setThirdRequestId(true)\n", - " .setFourthRequestId(\"fourthRequestId-2116417776\")\n", - " .setFifthRequestId(\"fifthRequestId959024147\")\n", - " .setSixthRequestId(\"sixthRequestId1005218260\")\n", " .setSeverity(Severity.forNumber(0))\n", " .setFoobar(Foobar.newBuilder().build())\n", " .build();\n", @@ -829,12 +813,6 @@ public void valid_composeRegularCallableMethod_unaryRpc() { + " \"[FOOBAR]\").toString())\n", " .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\"," + " \"[FOOBAR]\").toString())\n", - " .setRequestId(\"requestId693933066\")\n", - " .setSecondRequestId(\"secondRequestId344404470\")\n", - " .setThirdRequestId(true)\n", - " .setFourthRequestId(\"fourthRequestId-2116417776\")\n", - " .setFifthRequestId(\"fifthRequestId959024147\")\n", - " .setSixthRequestId(\"sixthRequestId1005218260\")\n", " .setSeverity(Severity.forNumber(0))\n", " .setFoobar(Foobar.newBuilder().build())\n", " .build();\n", diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java index affffb9c09..bf33f30e26 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientHeaderSampleComposerTest.java @@ -223,12 +223,6 @@ public void composeClassHeaderSample_firstMethodHasNoSignatures() { + " \"[FOOBAR]\").toString())\n", " .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\"," + " \"[FOOBAR]\").toString())\n", - " .setRequestId(\"requestId693933066\")\n", - " .setSecondRequestId(\"secondRequestId344404470\")\n", - " .setThirdRequestId(true)\n", - " .setFourthRequestId(\"fourthRequestId-2116417776\")\n", - " .setFifthRequestId(\"fifthRequestId959024147\")\n", - " .setSixthRequestId(\"sixthRequestId1005218260\")\n", " .setSeverity(Severity.forNumber(0))\n", " .setFoobar(Foobar.newBuilder().build())\n", " .build();\n", @@ -286,11 +280,7 @@ public void composeClassHeaderSample_firstMethodIsStream() { LineFormatter.lines( "try (EchoClient echoClient = EchoClient.create()) {\n", " ExpandRequest request =\n", - " ExpandRequest.newBuilder()\n", - " .setContent(\"content951530617\")\n", - " .setInfo(\"info3237038\")\n", - " .setRequestId(\"requestId693933066\")\n", - " .build();\n", + " ExpandRequest.newBuilder().setContent(\"content951530617\").setInfo(\"info3237038\").build();\n", " ServerStream stream = echoClient.expandCallable().call(request);\n", " for (EchoResponse response : stream) {\n", " // Do something when a response is received.\n", diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java index 6d473be885..6ba7985b5d 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientMethodSampleComposerTest.java @@ -335,12 +335,6 @@ public void valid_composeDefaultSample_pureUnaryReturnVoid() { + " \"[FOOBAR]\").toString())\n", " .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\"," + " \"[FOOBAR]\").toString())\n", - " .setRequestId(\"requestId693933066\")\n", - " .setSecondRequestId(\"secondRequestId344404470\")\n", - " .setThirdRequestId(true)\n", - " .setFourthRequestId(\"fourthRequestId-2116417776\")\n", - " .setFifthRequestId(\"fifthRequestId959024147\")\n", - " .setSixthRequestId(\"sixthRequestId1005218260\")\n", " .setSeverity(Severity.forNumber(0))\n", " .setFoobar(Foobar.newBuilder().build())\n", " .build();\n", @@ -403,12 +397,6 @@ public void valid_composeDefaultSample_pureUnaryReturnResponse() { + " \"[FOOBAR]\").toString())\n", " .setParent(FoobarName.ofProjectFoobarName(\"[PROJECT]\"," + " \"[FOOBAR]\").toString())\n", - " .setRequestId(\"requestId693933066\")\n", - " .setSecondRequestId(\"secondRequestId344404470\")\n", - " .setThirdRequestId(true)\n", - " .setFourthRequestId(\"fourthRequestId-2116417776\")\n", - " .setFifthRequestId(\"fifthRequestId959024147\")\n", - " .setSixthRequestId(\"sixthRequestId1005218260\")\n", " .setSeverity(Severity.forNumber(0))\n", " .setFoobar(Foobar.newBuilder().build())\n", " .build();\n", diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ParserTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ParserTest.java index 8fdf2576c9..b4379fdf66 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ParserTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ParserTest.java @@ -35,8 +35,10 @@ import com.google.api.generator.gapic.model.ResourceName; import com.google.api.generator.gapic.model.ResourceReference; import com.google.api.generator.gapic.model.Transport; +import com.google.auto.populate.field.AutoPopulateFieldTestingOuterClass; import com.google.bookshop.v1beta1.BookshopProto; import com.google.common.collect.ImmutableList; +import com.google.common.truth.Truth; import com.google.protobuf.Descriptors.FileDescriptor; import com.google.protobuf.Descriptors.MethodDescriptor; import com.google.protobuf.Descriptors.ServiceDescriptor; @@ -144,15 +146,7 @@ public void parseMethods_basic() { Method echoMethod = methods.get(0); assertEquals(echoMethod.name(), "Echo"); assertEquals(echoMethod.stream(), Method.Stream.NONE); - assertEquals(true, echoMethod.hasAutoPopulatedFields()); - assertEquals( - Arrays.asList( - "request_id", - "second_request_id", - "third_request_id", - "fourth_request_id", - "non_existent_field"), - echoMethod.autoPopulatedFields()); + assertEquals(false, echoMethod.hasAutoPopulatedFields()); // Detailed method signature parsing tests are in a separate unit test. List> methodSignatures = echoMethod.methodSignatures(); @@ -447,17 +441,13 @@ public void parseFields_mapType() { @Test public void parseFields_autoPopulated() { - Map messageTypes = Parser.parseMessages(echoFileDescriptor); - Message message = messageTypes.get("com.google.showcase.v1beta1.EchoRequest"); + Map messageTypes = + Parser.parseMessages(AutoPopulateFieldTestingOuterClass.getDescriptor()); + Message message = + messageTypes.get("com.google.auto.populate.field.AutoPopulateFieldTestingEchoRequest"); Field field = message.fieldMap().get("request_id"); assertEquals(false, field.isRequired()); assertEquals(Format.UUID4, field.fieldInfoFormat()); - field = message.fieldMap().get("name"); - assertEquals(true, field.isRequired()); - assertEquals(null, field.fieldInfoFormat()); - field = message.fieldMap().get("severity"); - assertEquals(false, field.isRequired()); - assertEquals(null, field.fieldInfoFormat()); field = message.fieldMap().get("second_request_id"); assertEquals(false, field.isRequired()); assertEquals(Format.UUID4, field.fieldInfoFormat()); @@ -474,18 +464,24 @@ public void parseFields_autoPopulated() { assertEquals(true, field.isRequired()); assertEquals(Format.UUID4, field.fieldInfoFormat()); - message = messageTypes.get("com.google.showcase.v1beta1.ExpandRequest"); + message = + messageTypes.get("com.google.auto.populate.field.AutoPopulateFieldTestingExpandRequest"); field = message.fieldMap().get("request_id"); assertEquals(false, field.isRequired()); - assertEquals(Format.IPV6, field.fieldInfoFormat()); + assertEquals(Format.UUID4, field.fieldInfoFormat()); } @Test public void parseAutoPopulatedMethodsAndFields_exists() { + String yamlFilename = "auto_populate_field_testing.yaml"; + Path yamlPath = Paths.get(YAML_DIRECTORY, yamlFilename); Map> autoPopulatedMethodsWithFields = - Parser.parseAutoPopulatedMethodsAndFields(serviceYamlProtoOpt); + Parser.parseAutoPopulatedMethodsAndFields(ServiceYamlParser.parse(yamlPath.toString())); + assertEquals( - true, autoPopulatedMethodsWithFields.containsKey("google.showcase.v1beta1.Echo.Echo")); + true, + autoPopulatedMethodsWithFields.containsKey( + "google.auto.populate.field.AutoPopulateFieldTesting.AutoPopulateFieldTestingEcho")); assertEquals( Arrays.asList( "request_id", @@ -493,7 +489,8 @@ public void parseAutoPopulatedMethodsAndFields_exists() { "third_request_id", "fourth_request_id", "non_existent_field"), - autoPopulatedMethodsWithFields.get("google.showcase.v1beta1.Echo.Echo")); + autoPopulatedMethodsWithFields.get( + "google.auto.populate.field.AutoPopulateFieldTesting.AutoPopulateFieldTestingEcho")); } @Test @@ -535,17 +532,15 @@ public void parseAutoPopulatedMethodsAndFields_returnsMapOfMethodsAndAutoPopulat .build(); Optional testService = Optional.of(Service.newBuilder().setPublishing(testPublishing).build()); - assertEquals( - Arrays.asList("test_field", "test_field_2"), - Parser.parseAutoPopulatedMethodsAndFields(testService).get("test_method")); - assertEquals( - Arrays.asList("test_field_3"), - Parser.parseAutoPopulatedMethodsAndFields(testService).get("test_method_2")); - assertEquals( - Arrays.asList(), - Parser.parseAutoPopulatedMethodsAndFields(testService).get("test_method_3")); - assertEquals( - false, Parser.parseAutoPopulatedMethodsAndFields(testService).containsKey("test_method_4")); + Truth.assertThat(Parser.parseAutoPopulatedMethodsAndFields(testService).get("test_method")) + .containsExactly("test_field", "test_field_2"); + Truth.assertThat(Parser.parseAutoPopulatedMethodsAndFields(testService).get("test_method_2")) + .containsExactly("test_field_3"); + Truth.assertThat(Parser.parseAutoPopulatedMethodsAndFields(testService).get("test_method_3")) + .isEmpty(); + Truth.assertThat( + Parser.parseAutoPopulatedMethodsAndFields(testService).containsKey("test_method_4")) + .isEqualTo(false); } @Test diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ServiceYamlParserTest.java b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ServiceYamlParserTest.java index f50fc572ff..213b0abab8 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ServiceYamlParserTest.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/ServiceYamlParserTest.java @@ -19,6 +19,7 @@ import com.google.api.MethodSettings; import com.google.api.Publishing; +import com.google.common.truth.Truth; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; @@ -45,19 +46,32 @@ public void parseServiceYaml_basic() { // FieldNames, etc.) @Test public void parseServiceYaml_autoPopulatedFields() { - String yamlFilename = "echo_v1beta1.yaml"; + String yamlFilename = "auto_populate_field_testing.yaml"; Path yamlPath = Paths.get(YAML_DIRECTORY, yamlFilename); Optional serviceYamlProtoOpt = ServiceYamlParser.parse(yamlPath.toString()); assertTrue(serviceYamlProtoOpt.isPresent()); com.google.api.Service serviceYamlProto = serviceYamlProtoOpt.get(); - assertEquals("showcase.googleapis.com", serviceYamlProto.getName()); + assertEquals("autopopulatefieldtesting.googleapis.com", serviceYamlProto.getName()); Publishing publishingSettings = serviceYamlProto.getPublishing(); List methodSettings = publishingSettings.getMethodSettingsList(); - MethodSettings methodSetting = methodSettings.get(0); - assertEquals("google.showcase.v1beta1.Echo.Echo", methodSetting.getSelector()); - assertEquals("request_id", methodSetting.getAutoPopulatedFieldsList().get(0)); + Truth.assertThat(methodSettings.size() == 2); + Truth.assertThat(methodSettings.get(0).getSelector()) + .isEqualTo( + "google.auto.populate.field.AutoPopulateFieldTesting.AutoPopulateFieldTestingEcho"); + Truth.assertThat(methodSettings.get(0).getAutoPopulatedFieldsList()) + .containsExactly( + "request_id", + "second_request_id", + "third_request_id", + "fourth_request_id", + "non_existent_field"); + Truth.assertThat(methodSettings.get(1).getSelector()) + .isEqualTo( + "google.auto.populate.field.AutoPopulateFieldTesting.AutoPopulateFieldTestingExpand"); + Truth.assertThat(methodSettings.get(1).getAutoPopulatedFieldsList()) + .containsExactly("request_id"); } } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/TestProtoLoader.java b/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/TestProtoLoader.java index 8a812ea437..d5e62ddf70 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/TestProtoLoader.java +++ b/gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/TestProtoLoader.java @@ -28,6 +28,7 @@ import com.google.api.generator.gapic.protoparser.Parser; import com.google.api.generator.gapic.protoparser.ServiceConfigParser; import com.google.api.generator.gapic.protoparser.ServiceYamlParser; +import com.google.auto.populate.field.AutoPopulateFieldTestingOuterClass; import com.google.bookshop.v1beta1.BookshopProto; import com.google.explicit.dynamic.routing.header.ExplicitDynamicRoutingHeaderTestingOuterClass; import com.google.logging.v2.LogEntryProto; @@ -292,6 +293,40 @@ public GapicContext parseExplicitDynamicRoutingHeaderTesting() { .build(); } + public GapicContext parseAutoPopulateFieldTesting() { + FileDescriptor autopopulationFileDescriptor = + AutoPopulateFieldTestingOuterClass.getDescriptor(); + ServiceDescriptor autopopulationServiceDescriptor = + autopopulationFileDescriptor.getServices().get(0); + assertEquals(autopopulationServiceDescriptor.getName(), "AutoPopulateFieldTesting"); + + String serviceYamlFilename = "auto_populate_field_testing.yaml"; + Path serviceYamlPath = Paths.get(testFilesDirectory, serviceYamlFilename); + Optional serviceYamlOpt = + ServiceYamlParser.parse(serviceYamlPath.toString()); + assertTrue(serviceYamlOpt.isPresent()); + + Map messageTypes = Parser.parseMessages(autopopulationFileDescriptor); + Map resourceNames = + Parser.parseResourceNames(autopopulationFileDescriptor); + Set outputResourceNames = new HashSet<>(); + List services = + Parser.parseService( + autopopulationFileDescriptor, + messageTypes, + resourceNames, + serviceYamlOpt, + outputResourceNames); + + return GapicContext.builder() + .setMessages(messageTypes) + .setResourceNames(resourceNames) + .setServices(services) + .setHelperResourceNames(outputResourceNames) + .setTransport(transport) + .build(); + } + public GapicContext parsePubSubPublisher() { FileDescriptor serviceFileDescriptor = PubsubProto.getDescriptor(); FileDescriptor commonResourcesFileDescriptor = CommonResources.getDescriptor(); diff --git a/gapic-generator-java/src/test/proto/auto_populate_field_testing.proto b/gapic-generator-java/src/test/proto/auto_populate_field_testing.proto new file mode 100644 index 0000000000..aa5b291180 --- /dev/null +++ b/gapic-generator-java/src/test/proto/auto_populate_field_testing.proto @@ -0,0 +1,144 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/protobuf/empty.proto"; + +package google.auto.populate.field; + +option java_package = "com.google.auto.populate.field"; +option java_multiple_files = true; + +// This service is meant for testing all scenarios related to +// the field AutoPopulateFieldTesting feature, including but not limited to the example in gapic-showcase's echo.proto +service AutoPopulateFieldTesting { + option (google.api.default_host) = "localhost:7469"; + + // This unary method simply echoes the request. request_id and second_request_id *should* be autopopulated on the request if not set. + rpc AutoPopulateFieldTestingEcho(AutoPopulateFieldTestingEchoRequest) returns (AutoPopulateFieldTestingEchoResponse) { + option (google.api.http) = { + post: "/v1beta1/AutoPopulateFieldTesting:echo" + body: "*" + }; + } + + // This server-side streaming method splits the given content into words and will pass each word back + // through the stream. This method should not have any autopopulated fields. + rpc AutoPopulateFieldTestingExpand(AutoPopulateFieldTestingExpandRequest) returns (stream AutoPopulateFieldTestingEchoResponse) { + option (google.api.http) = { + post: "/v1beta1/AutoPopulateFieldTesting:expand" + body: "*" + }; + } + + // This client-side streaming method will collect the words given to it. When the stream is closed + // by the client, this method will return the a concatenation of the strings + // passed to it. This method should not have any autopopulated fields. + rpc AutoPopulateFieldTestingCollect(stream AutoPopulateFieldTestingEchoRequest) returns (AutoPopulateFieldTestingEchoResponse) { + option (google.api.http) = { + post: "/v1beta1/AutoPopulateFieldTesting:collect" + body: "*" + }; + } + + // This bidirectional streaming method, upon receiving a request on the stream, will pass the same + // content back on the stream. This method should not have any autopopulated fields. + rpc AutoPopulateFieldTestingChat(stream AutoPopulateFieldTestingEchoRequest) returns (stream AutoPopulateFieldTestingEchoResponse); +} + +// The request message used for the AutoPopulateFieldTestingEcho, AutoPopulateFieldTestingCollect and AutoPopulateFieldTestingChat methods. +// If content or opt are set in this message then the request will succeed. +// If status is set in this message then the status will be returned as an +// error. +message AutoPopulateFieldTestingEchoRequest { + oneof response { + // The content to be echoed by the server. + string content = 1; + + // The error to be thrown by the server. + google.rpc.Status error = 2; + } + + // Based on go/client-populate-request-id-design; subject to change + string request_id = 3 [ + (google.api.field_info).format = UUID4 + ]; + + // This field is added to test that AutoPopulateFieldTesting works for multiple fields + string second_request_id = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_info).format = UUID4 + ]; + + // This field is added to test that AutoPopulateFieldTesting should not populate this field since it is not of type String + bool third_request_id = 9 [ + (google.api.field_info).format = UUID4 + ]; + + // This field is added to test that AutoPopulateFieldTesting should not populate this field since it is not annotated with UUID4 format + string fourth_request_id = 10 [ + (google.api.field_info).format = IPV4_OR_IPV6 + ]; + + // This field is added to test that AutoPopulateFieldTesting should not populate this field since it is not designated in the service_yaml + string fifth_request_id = 11 [ + (google.api.field_info).format = UUID4 + ]; + + // This field is added to test that AutoPopulateFieldTesting should not populate this field since it marked as Required + string sixth_request_id = 12 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = REQUIRED + ]; +} + +// The response message for the AutoPopulateFieldTesting service methods. +message AutoPopulateFieldTestingEchoResponse { + // The content specified in the request. + string content = 1; + + // The request ID specified or autopopulated in the request. + string request_id = 2; + + // The second request ID specified or autopopulated in the request. + string second_request_id = 3; +} + +// The request message for the AutoPopulateFieldTestingExpand method. +message AutoPopulateFieldTestingExpandRequest { + // The content that will be split into words and returned on the stream. + string content = 1; + + // The error that is thrown after all words are sent on the stream. + google.rpc.Status error = 2; + + //The wait time between each server streaming messages + google.protobuf.Duration stream_wait_time = 3; + + // This field is added to test that AutoPopulateFieldTesting should not populate this field since it is not used in a unary method, even though it is otherwise configured correctly. + string request_id = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_info).format = UUID4 + ]; +} diff --git a/gapic-generator-java/src/test/proto/echo.proto b/gapic-generator-java/src/test/proto/echo.proto index effa0325cd..361e661459 100644 --- a/gapic-generator-java/src/test/proto/echo.proto +++ b/gapic-generator-java/src/test/proto/echo.proto @@ -180,39 +180,6 @@ message EchoRequest { (google.api.field_behavior) = REQUIRED ]; - // This field is added based on go/client-populate-request-id-design; subject to change - string request_id = 7 [ - (google.api.field_info).format = UUID4 - ]; - - // This field is added to test that autopopulation works for multiple fields - string second_request_id = 8 [ - (google.api.field_behavior) = OPTIONAL, - (google.api.field_info).format = UUID4 - ]; - - // This field is added to test that autopopulation should not populate this field since it is not of type String - bool third_request_id = 9 [ - (google.api.field_info).format = UUID4 - ]; - - // This field is added to test that autopopulation should not populate this field since it is not annotated with UUID4 format - string fourth_request_id = 10 [ - (google.api.field_info).format = IPV4_OR_IPV6 - ]; - - // This field is added to test that autopopulation should not populate this field since it is not designated in the service_yaml - string fifth_request_id = 11 [ - (google.api.field_info).format = UUID4 - ]; - - // This field is added to test that autopopulation should not populate this field since it marked as Required - string sixth_request_id = 12 [ - (google.api.field_info).format = UUID4, - (google.api.field_behavior) = REQUIRED - ]; - - oneof response { // The content to be echoed by the server. string content = 1; @@ -252,10 +219,6 @@ message ExpandRequest { string info = 3; - // This field is added based on go/client-populate-request-id-design; subject to change - string request_id = 4 [ - (google.api.field_info).format = IPV6 - ]; } // The request for the PagedExpand method. diff --git a/gapic-generator-java/src/test/resources/auto_populate_field_testing.yaml b/gapic-generator-java/src/test/resources/auto_populate_field_testing.yaml new file mode 100644 index 0000000000..dfb9c24dbb --- /dev/null +++ b/gapic-generator-java/src/test/resources/auto_populate_field_testing.yaml @@ -0,0 +1,24 @@ +type: google.api.Service +config_version: 3 +name: autopopulatefieldtesting.googleapis.com +title: Autopopulate Field Testing API + +apis: +- name: google.auto.populate.field.AutoPopulateFieldTesting + +documentation: + summary: |- + YAML file for auto_populate_field_testing.proto to test request ID autopopulation feature. + +publishing: + method_settings: + - selector: google.auto.populate.field.AutoPopulateFieldTesting.AutoPopulateFieldTestingEcho + auto_populated_fields: + - request_id + - second_request_id + - third_request_id + - fourth_request_id + - non_existent_field + - selector: google.auto.populate.field.AutoPopulateFieldTesting.AutoPopulateFieldTestingExpand + auto_populated_fields: + - request_id \ No newline at end of file diff --git a/gapic-generator-java/src/test/resources/echo_v1beta1.yaml b/gapic-generator-java/src/test/resources/echo_v1beta1.yaml index a6aea48e87..321758a4ea 100644 --- a/gapic-generator-java/src/test/resources/echo_v1beta1.yaml +++ b/gapic-generator-java/src/test/resources/echo_v1beta1.yaml @@ -94,13 +94,4 @@ http: post: '/v1beta1/{name=operations/**}:cancel' additional_bindings: - post: '/v1beta2/{name=operations/**}:cancel' - - post: '/v1beta3/{name=operations/**}:cancel' -publishing: - method_settings: - - selector: google.showcase.v1beta1.Echo.Echo - auto_populated_fields: - - request_id - - second_request_id - - third_request_id - - fourth_request_id - - non_existent_field \ No newline at end of file + - post: '/v1beta3/{name=operations/**}:cancel' \ No newline at end of file From fc84ee93da0c5b6d13f98c92606c3635cbbf3bcf Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Fri, 9 Feb 2024 15:58:12 +0000 Subject: [PATCH 50/75] chore: use template excludes in generation config (#2453) In this PR: - Modify `generate_prerequisite_files` to render `owlbot.py` using template excludes from `GenerationConfig`, rather than hard code the excludes. - Add unit tests to verify `from_yaml` method. --- .../generate_composed_library.py | 5 +- library_generation/model/generation_config.py | 9 +- library_generation/requirements.in | 1 + .../google-cloud-java/generation_config.yaml | 1 - .../java-bigtable/generation_config.yaml | 1 - .../config_without_api_description.yaml | 5 + .../config_without_api_shortname.yaml | 4 + .../test-config/config_without_gapics.yaml | 3 + .../test-config/config_without_generator.yaml | 7 ++ .../config_without_googleapis.yaml | 8 ++ .../test-config/config_without_libraries.yaml | 1 + .../config_without_name_pretty.yaml | 6 + .../test-config/config_without_owlbot.yaml | 9 ++ .../config_without_product_docs.yaml | 7 ++ .../config_without_proto_path.yaml | 4 + .../test-config/config_without_synthtool.yaml | 10 ++ .../config_without_temp_excludes.yaml | 11 ++ .../test-config/generation_config.yaml | 34 +++++ library_generation/test/unit_tests.py | 116 +++++++++++++++++- library_generation/utilities.py | 18 +-- 20 files changed, 235 insertions(+), 25 deletions(-) create mode 100644 library_generation/test/resources/test-config/config_without_api_description.yaml create mode 100644 library_generation/test/resources/test-config/config_without_api_shortname.yaml create mode 100644 library_generation/test/resources/test-config/config_without_gapics.yaml create mode 100644 library_generation/test/resources/test-config/config_without_generator.yaml create mode 100644 library_generation/test/resources/test-config/config_without_googleapis.yaml create mode 100644 library_generation/test/resources/test-config/config_without_libraries.yaml create mode 100644 library_generation/test/resources/test-config/config_without_name_pretty.yaml create mode 100644 library_generation/test/resources/test-config/config_without_owlbot.yaml create mode 100644 library_generation/test/resources/test-config/config_without_product_docs.yaml create mode 100644 library_generation/test/resources/test-config/config_without_proto_path.yaml create mode 100644 library_generation/test/resources/test-config/config_without_synthtool.yaml create mode 100644 library_generation/test/resources/test-config/config_without_temp_excludes.yaml create mode 100644 library_generation/test/resources/test-config/generation_config.yaml diff --git a/library_generation/generate_composed_library.py b/library_generation/generate_composed_library.py index 1c2e1a4a91..37a1e75e75 100755 --- a/library_generation/generate_composed_library.py +++ b/library_generation/generate_composed_library.py @@ -54,8 +54,8 @@ def generate_composed_library( :param library_path: the path to which the generated file goes :param library: a LibraryConfig object contained inside config, passed here for convenience and to prevent all libraries to be processed - :param output_folder: - :param versions_file: + :param output_folder: the folder to where tools go + :param versions_file: the file containing version of libraries :return None """ util.pull_api_definition( @@ -74,6 +74,7 @@ def generate_composed_library( # owlbot.py) here because transport is parsed from BUILD.bazel, # which lives in a versioned proto_path. util.generate_prerequisite_files( + config=config, library=library, proto_path=util.remove_version_from(gapic.proto_path), transport=gapic_inputs.transport, diff --git a/library_generation/model/generation_config.py b/library_generation/model/generation_config.py index 7317edc932..b6c82f6e26 100644 --- a/library_generation/model/generation_config.py +++ b/library_generation/model/generation_config.py @@ -31,7 +31,7 @@ def __init__( googleapis_commitish: str, owlbot_cli_image: str, synthtool_commitish: str, - template_excludes: str, + template_excludes: List[str], path_to_yaml: str, libraries: List[LibraryConfig], grpc_version: Optional[str] = None, @@ -48,10 +48,11 @@ def __init__( self.protobuf_version = protobuf_version -def from_yaml(path_to_yaml: str): +def from_yaml(path_to_yaml: str) -> GenerationConfig: """ - Parses a yaml located in path_to_yaml. Returns the parsed configuration - represented by the "model" classes + Parses a yaml located in path_to_yaml. + :param path_to_yaml: the path to the configuration file + :return the parsed configuration represented by the "model" classes """ with open(path_to_yaml, "r") as file_stream: config = yaml.safe_load(file_stream) diff --git a/library_generation/requirements.in b/library_generation/requirements.in index 2bd5a0b0a8..1c1f476434 100644 --- a/library_generation/requirements.in +++ b/library_generation/requirements.in @@ -15,3 +15,4 @@ platformdirs==4.1.0 PyYAML==6.0.1 smmap==5.0.1 typing==3.7.4.3 +parameterized==0.9.0 # used in parameterized test diff --git a/library_generation/test/resources/integration/google-cloud-java/generation_config.yaml b/library_generation/test/resources/integration/google-cloud-java/generation_config.yaml index a7ca6bec7b..349c10385c 100644 --- a/library_generation/test/resources/integration/google-cloud-java/generation_config.yaml +++ b/library_generation/test/resources/integration/google-cloud-java/generation_config.yaml @@ -3,7 +3,6 @@ protobuf_version: 25.2 googleapis_commitish: 1a45bf7393b52407188c82e63101db7dc9c72026 owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 synthtool_commitish: 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5 -destination_path: google-cloud-java template_excludes: - ".github/*" - ".kokoro/*" diff --git a/library_generation/test/resources/integration/java-bigtable/generation_config.yaml b/library_generation/test/resources/integration/java-bigtable/generation_config.yaml index 7e62bea404..997e2c14c7 100644 --- a/library_generation/test/resources/integration/java-bigtable/generation_config.yaml +++ b/library_generation/test/resources/integration/java-bigtable/generation_config.yaml @@ -4,7 +4,6 @@ protobuf_version: 25.2 googleapis_commitish: 40203ca1880849480bbff7b8715491060bbccdf1 owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 synthtool_commitish: 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5 -destination_path: java-bigtable template_excludes: - ".gitignore" - ".kokoro/presubmit/integration.cfg" diff --git a/library_generation/test/resources/test-config/config_without_api_description.yaml b/library_generation/test/resources/test-config/config_without_api_description.yaml new file mode 100644 index 0000000000..79ff135067 --- /dev/null +++ b/library_generation/test/resources/test-config/config_without_api_description.yaml @@ -0,0 +1,5 @@ +gapic_generator_version: 2.34.0 +libraries: + - api_shortname: apigeeconnect + GAPICs: + - proto_path: google/cloud/apigeeconnect/v1 diff --git a/library_generation/test/resources/test-config/config_without_api_shortname.yaml b/library_generation/test/resources/test-config/config_without_api_shortname.yaml new file mode 100644 index 0000000000..ec8206be61 --- /dev/null +++ b/library_generation/test/resources/test-config/config_without_api_shortname.yaml @@ -0,0 +1,4 @@ +gapic_generator_version: 2.34.0 +libraries: + - GAPICs: + - proto_path: google/cloud/apigeeconnect/v1 diff --git a/library_generation/test/resources/test-config/config_without_gapics.yaml b/library_generation/test/resources/test-config/config_without_gapics.yaml new file mode 100644 index 0000000000..0f0c49fc48 --- /dev/null +++ b/library_generation/test/resources/test-config/config_without_gapics.yaml @@ -0,0 +1,3 @@ +gapic_generator_version: 2.34.0 +libraries: + random_key: diff --git a/library_generation/test/resources/test-config/config_without_generator.yaml b/library_generation/test/resources/test-config/config_without_generator.yaml new file mode 100644 index 0000000000..c78b8b9700 --- /dev/null +++ b/library_generation/test/resources/test-config/config_without_generator.yaml @@ -0,0 +1,7 @@ +libraries: + - api_shortname: apigeeconnect + name_pretty: Apigee Connect + api_description: "allows the Apigee hybrid management" + product_documentation: "https://cloud.google.com/apigee/docs/hybrid/v1.3/apigee-connect/" + GAPICs: + - proto_path: google/cloud/apigeeconnect/v1 diff --git a/library_generation/test/resources/test-config/config_without_googleapis.yaml b/library_generation/test/resources/test-config/config_without_googleapis.yaml new file mode 100644 index 0000000000..e5a00ca4ee --- /dev/null +++ b/library_generation/test/resources/test-config/config_without_googleapis.yaml @@ -0,0 +1,8 @@ +gapic_generator_version: 2.34.0 +libraries: + - api_shortname: apigeeconnect + name_pretty: Apigee Connect + api_description: "allows the Apigee hybrid management" + product_documentation: "https://cloud.google.com/apigee/docs/hybrid/v1.3/apigee-connect/" + GAPICs: + - proto_path: google/cloud/apigeeconnect/v1 diff --git a/library_generation/test/resources/test-config/config_without_libraries.yaml b/library_generation/test/resources/test-config/config_without_libraries.yaml new file mode 100644 index 0000000000..dbbe2ea318 --- /dev/null +++ b/library_generation/test/resources/test-config/config_without_libraries.yaml @@ -0,0 +1 @@ +gapic_generator_version: 2.34.0 diff --git a/library_generation/test/resources/test-config/config_without_name_pretty.yaml b/library_generation/test/resources/test-config/config_without_name_pretty.yaml new file mode 100644 index 0000000000..f8612ad9ca --- /dev/null +++ b/library_generation/test/resources/test-config/config_without_name_pretty.yaml @@ -0,0 +1,6 @@ +gapic_generator_version: 2.34.0 +libraries: + - api_shortname: apigeeconnect + api_description: "allows the Apigee hybrid management" + GAPICs: + - proto_path: google/cloud/apigeeconnect/v1 diff --git a/library_generation/test/resources/test-config/config_without_owlbot.yaml b/library_generation/test/resources/test-config/config_without_owlbot.yaml new file mode 100644 index 0000000000..7921f68bd2 --- /dev/null +++ b/library_generation/test/resources/test-config/config_without_owlbot.yaml @@ -0,0 +1,9 @@ +gapic_generator_version: 2.34.0 +googleapis_commitish: 1a45bf7393b52407188c82e63101db7dc9c72026 +libraries: + - api_shortname: apigeeconnect + name_pretty: Apigee Connect + api_description: "allows the Apigee hybrid management" + product_documentation: "https://cloud.google.com/apigee/docs/hybrid/v1.3/apigee-connect/" + GAPICs: + - proto_path: google/cloud/apigeeconnect/v1 diff --git a/library_generation/test/resources/test-config/config_without_product_docs.yaml b/library_generation/test/resources/test-config/config_without_product_docs.yaml new file mode 100644 index 0000000000..e3921d2c0d --- /dev/null +++ b/library_generation/test/resources/test-config/config_without_product_docs.yaml @@ -0,0 +1,7 @@ +gapic_generator_version: 2.34.0 +libraries: + - api_shortname: apigeeconnect + name_pretty: Apigee Connect + api_description: "allows the Apigee hybrid management" + GAPICs: + - proto_path: google/cloud/apigeeconnect/v1 diff --git a/library_generation/test/resources/test-config/config_without_proto_path.yaml b/library_generation/test/resources/test-config/config_without_proto_path.yaml new file mode 100644 index 0000000000..e37b0cef63 --- /dev/null +++ b/library_generation/test/resources/test-config/config_without_proto_path.yaml @@ -0,0 +1,4 @@ +gapic_generator_version: 2.34.0 +libraries: + - GAPICs: + - random_key: diff --git a/library_generation/test/resources/test-config/config_without_synthtool.yaml b/library_generation/test/resources/test-config/config_without_synthtool.yaml new file mode 100644 index 0000000000..8907f96bf7 --- /dev/null +++ b/library_generation/test/resources/test-config/config_without_synthtool.yaml @@ -0,0 +1,10 @@ +gapic_generator_version: 2.34.0 +googleapis_commitish: 1a45bf7393b52407188c82e63101db7dc9c72026 +owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 +libraries: + - api_shortname: apigeeconnect + name_pretty: Apigee Connect + api_description: "allows the Apigee hybrid management" + product_documentation: "https://cloud.google.com/apigee/docs/hybrid/v1.3/apigee-connect/" + GAPICs: + - proto_path: google/cloud/apigeeconnect/v1 diff --git a/library_generation/test/resources/test-config/config_without_temp_excludes.yaml b/library_generation/test/resources/test-config/config_without_temp_excludes.yaml new file mode 100644 index 0000000000..9def2f3be6 --- /dev/null +++ b/library_generation/test/resources/test-config/config_without_temp_excludes.yaml @@ -0,0 +1,11 @@ +gapic_generator_version: 2.34.0 +googleapis_commitish: 1a45bf7393b52407188c82e63101db7dc9c72026 +owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 +synthtool_commitish: 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5 +libraries: + - api_shortname: apigeeconnect + name_pretty: Apigee Connect + api_description: "allows the Apigee hybrid management" + product_documentation: "https://cloud.google.com/apigee/docs/hybrid/v1.3/apigee-connect/" + GAPICs: + - proto_path: google/cloud/apigeeconnect/v1 diff --git a/library_generation/test/resources/test-config/generation_config.yaml b/library_generation/test/resources/test-config/generation_config.yaml new file mode 100644 index 0000000000..b73fa4d65d --- /dev/null +++ b/library_generation/test/resources/test-config/generation_config.yaml @@ -0,0 +1,34 @@ +gapic_generator_version: 2.34.0 +protobuf_version: 25.2 +googleapis_commitish: 1a45bf7393b52407188c82e63101db7dc9c72026 +owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 +synthtool_commitish: 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5 +template_excludes: + - ".github/*" + - ".kokoro/*" + - "samples/*" + - "CODE_OF_CONDUCT.md" + - "CONTRIBUTING.md" + - "LICENSE" + - "SECURITY.md" + - "java.header" + - "license-checks.xml" + - "renovate.json" + - ".gitignore" +libraries: + - api_shortname: cloudasset + name_pretty: Cloud Asset Inventory + product_documentation: "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" + api_description: "provides inventory services based on a time series database." + library_name: "asset" + client_documentation: "https://cloud.google.com/java/docs/reference/google-cloud-asset/latest/overview" + distribution_name: "com.google.cloud:google-cloud-asset" + release_level: "stable" + issue_tracker: "https://issuetracker.google.com/issues/new?component=187210&template=0" + api_reference: "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" + GAPICs: + - proto_path: google/cloud/asset/v1 + - proto_path: google/cloud/asset/v1p1beta1 + - proto_path: google/cloud/asset/v1p2beta1 + - proto_path: google/cloud/asset/v1p5beta1 + - proto_path: google/cloud/asset/v1p7beta1 diff --git a/library_generation/test/unit_tests.py b/library_generation/test/unit_tests.py index 268b3ff0c8..04bcd46ccb 100644 --- a/library_generation/test/unit_tests.py +++ b/library_generation/test/unit_tests.py @@ -20,20 +20,21 @@ import os import io import contextlib -import subprocess from pathlib import Path from difflib import unified_diff from typing import List - +from parameterized import parameterized from library_generation import utilities as util from library_generation.model.gapic_config import GapicConfig from library_generation.model.generation_config import GenerationConfig from library_generation.model.gapic_inputs import parse as parse_build_file +from library_generation.model.generation_config import from_yaml from library_generation.model.library_config import LibraryConfig script_dir = os.path.dirname(os.path.realpath(__file__)) resources_dir = os.path.join(script_dir, "resources") build_file = Path(os.path.join(resources_dir, "misc")).resolve() +test_config_dir = Path(os.path.join(resources_dir, "test-config")).resolve() library_1 = LibraryConfig( api_shortname="baremetalsolution", name_pretty="Bare Metal Solution", @@ -104,6 +105,101 @@ def test_eprint_valid_input_succeeds(self): # print() appends a `\n` each time it's called self.assertEqual(test_input + "\n", result) + # parameterized tests need to run from the class, see + # https://github.com/wolever/parameterized/issues/37 for more info. + # This test confirms that a ValueError with an error message about a + # missing key (specified in the first parameter of each `parameterized` + # tuple) when parsing a test configuration yaml (second parameter) will + # be raised. + @parameterized.expand( + [ + ("libraries", f"{test_config_dir}/config_without_libraries.yaml"), + ("GAPICs", f"{test_config_dir}/config_without_gapics.yaml"), + ("proto_path", f"{test_config_dir}/config_without_proto_path.yaml"), + ("api_shortname", f"{test_config_dir}/config_without_api_shortname.yaml"), + ( + "api_description", + f"{test_config_dir}/config_without_api_description.yaml", + ), + ("name_pretty", f"{test_config_dir}/config_without_name_pretty.yaml"), + ( + "product_documentation", + f"{test_config_dir}/config_without_product_docs.yaml", + ), + ( + "gapic_generator_version", + f"{test_config_dir}/config_without_generator.yaml", + ), + ( + "googleapis_commitish", + f"{test_config_dir}/config_without_googleapis.yaml", + ), + ("owlbot_cli_image", f"{test_config_dir}/config_without_owlbot.yaml"), + ("synthtool_commitish", f"{test_config_dir}/config_without_synthtool.yaml"), + ( + "template_excludes", + f"{test_config_dir}/config_without_temp_excludes.yaml", + ), + ] + ) + def test_from_yaml_without_key_fails(self, error_message_contains, path_to_yaml): + self.assertRaisesRegex( + ValueError, + error_message_contains, + from_yaml, + path_to_yaml, + ) + + def test_from_yaml_succeeds(self): + config = from_yaml(f"{test_config_dir}/generation_config.yaml") + self.assertEqual("2.34.0", config.gapic_generator_version) + self.assertEqual(25.2, config.protobuf_version) + self.assertEqual( + "1a45bf7393b52407188c82e63101db7dc9c72026", config.googleapis_commitish + ) + self.assertEqual( + "sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409", + config.owlbot_cli_image, + ) + self.assertEqual( + "6612ab8f3afcd5e292aecd647f0fa68812c9f5b5", config.synthtool_commitish + ) + self.assertEqual( + [ + ".github/*", + ".kokoro/*", + "samples/*", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "SECURITY.md", + "java.header", + "license-checks.xml", + "renovate.json", + ".gitignore", + ], + config.template_excludes, + ) + library = config.libraries[0] + self.assertEqual("cloudasset", library.api_shortname) + self.assertEqual("Cloud Asset Inventory", library.name_pretty) + self.assertEqual( + "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview", + library.product_documentation, + ) + self.assertEqual( + "provides inventory services based on a time series database.", + library.api_description, + ) + self.assertEqual("asset", library.library_name) + gapics = library.gapic_configs + self.assertEqual(5, len(gapics)) + self.assertEqual("google/cloud/asset/v1", gapics[0].proto_path) + self.assertEqual("google/cloud/asset/v1p1beta1", gapics[1].proto_path) + self.assertEqual("google/cloud/asset/v1p2beta1", gapics[2].proto_path) + self.assertEqual("google/cloud/asset/v1p5beta1", gapics[3].proto_path) + self.assertEqual("google/cloud/asset/v1p7beta1", gapics[4].proto_path) + def test_gapic_inputs_parse_grpc_only_succeeds(self): parsed = parse_build_file(build_file, "", "BUILD_grpc.bazel") self.assertEqual("grpc", parsed.transport) @@ -252,9 +348,11 @@ def test_generate_prerequisite_files_success(self): f"{library_path}/owlbot.py", ] self.__cleanup(files) + config = self.__get_a_gen_config(1) proto_path = "google/cloud/baremetalsolution/v2" transport = "grpc" util.generate_prerequisite_files( + config=config, library=library_1, proto_path=proto_path, transport=transport, @@ -357,7 +455,19 @@ def __get_a_gen_config(num: int): googleapis_commitish="", owlbot_cli_image="", synthtool_commitish="", - template_excludes=[], + template_excludes=[ + ".github/*", + ".kokoro/*", + "samples/*", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "SECURITY.md", + "java.header", + "license-checks.xml", + "renovate.json", + ".gitignore", + ], path_to_yaml=".", libraries=libraries, ) diff --git a/library_generation/utilities.py b/library_generation/utilities.py index 1eff1ae947..014b95ae8e 100755 --- a/library_generation/utilities.py +++ b/library_generation/utilities.py @@ -320,6 +320,7 @@ def pull_api_definition( def generate_prerequisite_files( + config: GenerationConfig, library: LibraryConfig, proto_path: str, transport: str, @@ -331,6 +332,8 @@ def generate_prerequisite_files( Generate prerequisite files for a library. Note that the version, if any, in the proto_path will be removed. + :param config: a GenerationConfig object representing a parsed configuration + yaml :param library: the library configuration :param proto_path: the proto path :param transport: transport supported by the library @@ -417,24 +420,11 @@ def generate_prerequisite_files( # generate owlbot.py py_file = "owlbot.py" if not os.path.exists(f"{library_path}/{py_file}"): - template_excludes = [ - ".github/*", - ".kokoro/*", - "samples/*", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "java.header", - "license-checks.xml", - "renovate.json", - ".gitignore", - ] __render( template_name="owlbot.py.j2", output_name=f"{library_path}/{py_file}", should_include_templates=True, - template_excludes=template_excludes, + template_excludes=config.template_excludes, ) From dc4039aedca71db44baf08de13d5b38e8706bf9b Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Fri, 9 Feb 2024 18:33:56 +0000 Subject: [PATCH 51/75] fix: Apiary Host returns user set host if set (#2455) Bug: https://github.com/googleapis/java-bigquery/issues/3125 (Removing `Fixes:` as I don't want to close the ticket until BigQuery is able to pull in a new version of shared-deps). Following guidance in doc for Apiary (ping me internally for link). If the user configures the host to be the `DEFAULT_HOST` (a non-valid endpoint for any service using java-core), then it should construct a valid service endpoint back using the universe domain. --- .../main/java/com/google/cloud/ServiceOptions.java | 11 +++++++++-- .../java/com/google/cloud/ServiceOptionsTest.java | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/java-core/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java b/java-core/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java index 9384e7823d..985fac4804 100644 --- a/java-core/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java +++ b/java-core/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java @@ -851,17 +851,24 @@ public String getResolvedHost(String serviceName) { } /** - * Temporarily used for BigQuery and Storage Apiary Wrapped Libraries. To be removed in the future - * when Apiary clients can resolve their endpoints. Returns the host to be used as the rootUrl. + * Returns a host value to be used for BigQuery and Storage Apiary Wrapped Libraries. To be + * removed in the future when Apiary clients can resolve their endpoints. Returns the host to be + * used as the rootUrl. * *

The resolved host will be in `https://{serviceName}.{resolvedUniverseDomain}/` format. The * resolvedUniverseDomain will be set to `googleapis.com` if universeDomain is null. * + *

The host value is set to DEFAULT_HOST if the user didn't configure a host. Returns the host + * value the user set, otherwise constructs the host for the user. + * * @see rootUrl */ @InternalApi public String getResolvedApiaryHost(String serviceName) { + if (!DEFAULT_HOST.equals(host)) { + return host; + } String resolvedUniverseDomain = universeDomain != null ? universeDomain : Credentials.GOOGLE_DEFAULT_UNIVERSE; return "https://" + serviceName + "." + resolvedUniverseDomain + "/"; diff --git a/java-core/google-cloud-core/src/test/java/com/google/cloud/ServiceOptionsTest.java b/java-core/google-cloud-core/src/test/java/com/google/cloud/ServiceOptionsTest.java index 3d5ca3eef5..1b79e48ddc 100644 --- a/java-core/google-cloud-core/src/test/java/com/google/cloud/ServiceOptionsTest.java +++ b/java-core/google-cloud-core/src/test/java/com/google/cloud/ServiceOptionsTest.java @@ -566,10 +566,10 @@ public void testGetResolvedApiaryHost_customUniverseDomain_customHost() { TestServiceOptions options = TestServiceOptions.newBuilder() .setUniverseDomain("test.com") - .setHost("https://service.random.com") + .setHost("https://service.random.com/") .setProjectId("project-id") .build(); - assertThat(options.getResolvedApiaryHost("service")).isEqualTo("https://service.test.com/"); + assertThat(options.getResolvedApiaryHost("service")).isEqualTo("https://service.random.com/"); } // No User Configuration = GDU, Default Credentials = GDU From 2e50f2a60dcb76efb21f077197b1475e26125724 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 12 Feb 2024 15:56:56 -0500 Subject: [PATCH 52/75] chore: remove beta api annotation from client header customization surface (#2311) Fixes https://github.com/googleapis/sdk-platform-java/issues/2100 --- .../common/AbstractServiceSettingsClassComposer.java | 8 -------- .../common/AbstractServiceStubSettingsClassComposer.java | 8 -------- .../grpc/goldens/DeprecatedServiceSettings.golden | 2 -- .../grpc/goldens/DeprecatedServiceStubSettings.golden | 2 -- .../gapic/composer/grpc/goldens/EchoSettings.golden | 1 - .../gapic/composer/grpc/goldens/EchoStubSettings.golden | 1 - .../grpc/goldens/LoggingServiceV2StubSettings.golden | 2 -- .../composer/grpc/goldens/PublisherStubSettings.golden | 2 -- .../gapic/composer/grpcrest/goldens/EchoSettings.golden | 1 - .../composer/grpcrest/goldens/EchoStubSettings.golden | 2 -- .../gapic/composer/grpcrest/goldens/WickedSettings.golden | 1 - .../composer/grpcrest/goldens/WickedStubSettings.golden | 1 - .../gapic/composer/rest/goldens/ComplianceSettings.golden | 1 - .../composer/rest/goldens/ComplianceStubSettings.golden | 1 - .../com/google/showcase/v1beta1/ComplianceSettings.java | 1 - .../java/com/google/showcase/v1beta1/EchoSettings.java | 1 - .../com/google/showcase/v1beta1/IdentitySettings.java | 1 - .../com/google/showcase/v1beta1/MessagingSettings.java | 1 - .../google/showcase/v1beta1/SequenceServiceSettings.java | 1 - .../java/com/google/showcase/v1beta1/TestingSettings.java | 1 - .../showcase/v1beta1/stub/ComplianceStubSettings.java | 2 -- .../google/showcase/v1beta1/stub/EchoStubSettings.java | 2 -- .../showcase/v1beta1/stub/IdentityStubSettings.java | 2 -- .../showcase/v1beta1/stub/MessagingStubSettings.java | 2 -- .../v1beta1/stub/SequenceServiceStubSettings.java | 2 -- .../google/showcase/v1beta1/stub/TestingStubSettings.java | 2 -- .../cloud/apigeeconnect/v1/ConnectionServiceSettings.java | 1 - .../com/google/cloud/apigeeconnect/v1/TetherSettings.java | 2 -- .../v1/stub/ConnectionServiceStubSettings.java | 2 -- .../cloud/apigeeconnect/v1/stub/TetherStubSettings.java | 2 -- .../com/google/cloud/asset/v1/AssetServiceSettings.java | 1 - .../cloud/asset/v1/stub/AssetServiceStubSettings.java | 2 -- .../cloud/bigtable/data/v2/BaseBigtableDataSettings.java | 2 -- .../cloud/bigtable/data/v2/stub/BigtableStubSettings.java | 2 -- .../google/cloud/compute/v1small/AddressesSettings.java | 2 -- .../cloud/compute/v1small/RegionOperationsSettings.java | 2 -- .../cloud/compute/v1small/stub/AddressesStubSettings.java | 1 - .../v1small/stub/RegionOperationsStubSettings.java | 2 -- .../cloud/iam/credentials/v1/IamCredentialsSettings.java | 1 - .../credentials/v1/stub/IamCredentialsStubSettings.java | 2 -- .../iam/src/com/google/iam/v1/IAMPolicySettings.java | 2 -- .../src/com/google/iam/v1/stub/IAMPolicyStubSettings.java | 2 -- .../google/cloud/kms/v1/KeyManagementServiceSettings.java | 2 -- .../kms/v1/stub/KeyManagementServiceStubSettings.java | 2 -- .../cloud/example/library/v1/LibraryServiceSettings.java | 1 - .../library/v1/stub/LibraryServiceStubSettings.java | 2 -- .../src/com/google/cloud/logging/v2/ConfigSettings.java | 2 -- .../src/com/google/cloud/logging/v2/LoggingSettings.java | 2 -- .../src/com/google/cloud/logging/v2/MetricsSettings.java | 2 -- .../logging/v2/stub/ConfigServiceV2StubSettings.java | 1 - .../logging/v2/stub/LoggingServiceV2StubSettings.java | 2 -- .../logging/v2/stub/MetricsServiceV2StubSettings.java | 2 -- .../com/google/cloud/pubsub/v1/SchemaServiceSettings.java | 2 -- .../google/cloud/pubsub/v1/SubscriptionAdminSettings.java | 2 -- .../com/google/cloud/pubsub/v1/TopicAdminSettings.java | 2 -- .../cloud/pubsub/v1/stub/PublisherStubSettings.java | 2 -- .../cloud/pubsub/v1/stub/SchemaServiceStubSettings.java | 2 -- .../cloud/pubsub/v1/stub/SubscriberStubSettings.java | 2 -- .../google/cloud/redis/v1beta1/CloudRedisSettings.java | 1 - .../cloud/redis/v1beta1/stub/CloudRedisStubSettings.java | 2 -- .../src/com/google/storage/v2/StorageSettings.java | 2 -- .../com/google/storage/v2/stub/StorageStubSettings.java | 2 -- 62 files changed, 116 deletions(-) diff --git a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java index a395aafd61..c83bd54deb 100644 --- a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java +++ b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java @@ -430,14 +430,6 @@ private List createDefaultGetterMethods(Service service, TypeS "defaultApiClientHeaderProviderBuilder", TypeNode.withReference( ConcreteReference.withClazz(ApiClientHeaderProvider.Builder.class))) - .setAnnotations( - Arrays.asList( - AnnotationNode.builder() - .setType(FIXED_TYPESTORE.get("BetaApi")) - .setDescription( - "The surface for customizing headers is not stable yet and may" - + " change in the future.") - .build())) .build()); return javaMethods; } diff --git a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java index 4b0c88c3b4..4c7bf86f8c 100644 --- a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java +++ b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java @@ -370,15 +370,7 @@ protected MethodDefinition createApiClientHeaderProviderBuilderMethod( .setReturnType(returnType) .build(); - AnnotationNode annotation = - AnnotationNode.builder() - .setType(FIXED_TYPESTORE.get("BetaApi")) - .setDescription( - "The surface for customizing headers is not stable yet and may change in the" - + " future.") - .build(); return MethodDefinition.builder() - .setAnnotations(Arrays.asList(annotation)) .setScope(ScopeNode.PUBLIC) .setIsStatic(true) .setReturnType(returnType) diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden index 6debab4c44..76cd4cea9d 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden @@ -1,7 +1,6 @@ package com.google.testdata.v1; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -109,7 +108,6 @@ public class DeprecatedServiceSettings extends ClientSettings { return EchoStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return EchoStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden index 048f443890..597ed4d3ba 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden @@ -331,7 +331,6 @@ public class EchoStubSettings extends StubSettings { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(EchoStubSettings.class)) diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden index 7d42753c2b..9aafbdc9c9 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden @@ -7,7 +7,6 @@ import static com.google.logging.v2.LoggingServiceV2Client.ListMonitoredResource import com.google.api.MonitoredResourceDescriptor; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; import com.google.api.gax.batching.BatchingSettings; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; @@ -474,7 +473,6 @@ public class LoggingServiceV2StubSettings extends StubSettings { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden index dbc1892fc3..0abf62baec 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden @@ -167,7 +167,6 @@ public class EchoSettings extends ClientSettings { return EchoStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return EchoStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden index e3b473d84b..5cade6cd1b 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden @@ -354,7 +354,6 @@ public class EchoStubSettings extends StubSettings { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(EchoStubSettings.class)) @@ -362,7 +361,6 @@ public class EchoStubSettings extends StubSettings { GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(EchoStubSettings.class)) diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedSettings.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedSettings.golden index 28b2e47cf9..df69e9b644 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedSettings.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedSettings.golden @@ -105,7 +105,6 @@ public class WickedSettings extends ClientSettings { return WickedStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return WickedStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden index e5831824c0..216cf65dc3 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden @@ -145,7 +145,6 @@ public class WickedStubSettings extends StubSettings { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(WickedStubSettings.class)) diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden index 3730206623..e7cd104fff 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden @@ -130,7 +130,6 @@ public class ComplianceSettings extends ClientSettings { return ComplianceStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ComplianceStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden index abc4a1a750..9efb8395a1 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden @@ -177,7 +177,6 @@ public class ComplianceStubSettings extends StubSettings return defaultHttpJsonTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java index 9763f99a41..823f9ccb10 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java @@ -202,7 +202,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return ComplianceStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ComplianceStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java index 684a8956ae..360d136fff 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java @@ -218,7 +218,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return EchoStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return EchoStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java index 11e5b842e6..5b425ed700 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java @@ -180,7 +180,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return IdentityStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return IdentityStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java index f1c43003ff..a28bd4806a 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java @@ -238,7 +238,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return MessagingStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return MessagingStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java index 2069da8bf5..111119b942 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java @@ -190,7 +190,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return SequenceServiceStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return SequenceServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java index 1b687d20c2..13d6defe57 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java @@ -197,7 +197,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return TestingStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return TestingStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java index de660ce681..4b34015676 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java @@ -326,7 +326,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -335,7 +334,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java index c7d30b6007..f7ea1b5540 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java @@ -485,7 +485,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(EchoStubSettings.class)) @@ -493,7 +492,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(EchoStubSettings.class)) diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java index 24db00e832..69e1f50e23 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java @@ -356,7 +356,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(IdentityStubSettings.class)) @@ -364,7 +363,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(IdentityStubSettings.class)) diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java index 95cae44fc5..a45a6edc8d 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java @@ -498,7 +498,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(MessagingStubSettings.class)) @@ -506,7 +505,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(MessagingStubSettings.class)) diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java index 987b9b7ea7..f4ced6f389 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java @@ -321,7 +321,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -330,7 +329,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java index 812452a1d3..5239263cfd 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java @@ -438,7 +438,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(TestingStubSettings.class)) @@ -446,7 +445,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(TestingStubSettings.class)) diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java index bf11c5c4dd..6127ea2ae3 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java @@ -124,7 +124,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return ConnectionServiceStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ConnectionServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java index 7846d321d1..0487510362 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java @@ -17,7 +17,6 @@ package com.google.cloud.apigeeconnect.v1; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -110,7 +109,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return TetherStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return TetherStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java index 34d2d5d6fd..c0c4b6f1d2 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java @@ -241,7 +241,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -250,7 +249,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java index 5ff1f553c9..37975bc147 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java @@ -17,7 +17,6 @@ package com.google.cloud.apigeeconnect.v1.stub; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -154,7 +153,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(TetherStubSettings.class)) diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java index 3f2e571681..d490f6d679 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java @@ -252,7 +252,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return AssetServiceStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return AssetServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java index e66d1477ba..9d413c58cd 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java @@ -630,7 +630,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -639,7 +638,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java index b0c63eb9b9..a33ec9a500 100644 --- a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java +++ b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java @@ -17,7 +17,6 @@ package com.google.cloud.bigtable.data.v2; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -159,7 +158,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return BigtableStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return BigtableStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java index 9020f18a7a..c0957a1c5d 100644 --- a/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java +++ b/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java @@ -17,7 +17,6 @@ package com.google.cloud.bigtable.data.v2.stub; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -218,7 +217,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(BigtableStubSettings.class)) diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java index 6300d5d913..07e45ebf83 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java @@ -20,7 +20,6 @@ import static com.google.cloud.compute.v1small.AddressesClient.ListPagedResponse; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; @@ -144,7 +143,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return AddressesStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return AddressesStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java index 443a4c9bf2..6a599bdb7f 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java @@ -17,7 +17,6 @@ package com.google.cloud.compute.v1small; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; @@ -117,7 +116,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return RegionOperationsStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return RegionOperationsStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java index 0872d93367..9b77825c69 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java @@ -341,7 +341,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultHttpJsonTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(AddressesStubSettings.class)) diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java index d36444131b..77fb5672b3 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java @@ -17,7 +17,6 @@ package com.google.cloud.compute.v1small.stub; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -166,7 +165,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultHttpJsonTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java index c2fbad96c7..221ee9c4b8 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java @@ -137,7 +137,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return IamCredentialsStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return IamCredentialsStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java index 22c78bcf2c..a29f5a33e5 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java @@ -199,7 +199,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -208,7 +207,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java b/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java index b1ea0a8be9..1d8ac2780c 100644 --- a/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java +++ b/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java @@ -17,7 +17,6 @@ package com.google.iam.v1; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -120,7 +119,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return IAMPolicyStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return IAMPolicyStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java b/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java index 7f8bdcf147..7cd4b77680 100644 --- a/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java +++ b/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java @@ -17,7 +17,6 @@ package com.google.iam.v1.stub; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -171,7 +170,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(IAMPolicyStubSettings.class)) diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java index 7d7a6baaf9..8914ec9257 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java @@ -23,7 +23,6 @@ import static com.google.cloud.kms.v1.KeyManagementServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -277,7 +276,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return KeyManagementServiceStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return KeyManagementServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java index 6d7ba5c886..cffe8d0f1b 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java @@ -24,7 +24,6 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -691,7 +690,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java index 2b9e988e05..410830a7fe 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java @@ -192,7 +192,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return LibraryServiceStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return LibraryServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java index 32ff855eba..1a9e248aac 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java @@ -365,7 +365,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -374,7 +373,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java index e17580754b..c73cc438d2 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java @@ -22,7 +22,6 @@ import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -293,7 +292,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return ConfigServiceV2StubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ConfigServiceV2StubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java index 3abe909170..b50cf22405 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java @@ -21,7 +21,6 @@ import static com.google.cloud.logging.v2.LoggingClient.ListMonitoredResourceDescriptorsPagedResponse; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -163,7 +162,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return LoggingServiceV2StubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return LoggingServiceV2StubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java index 722443dfad..025d7bc7bc 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java @@ -19,7 +19,6 @@ import static com.google.cloud.logging.v2.MetricsClient.ListLogMetricsPagedResponse; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -142,7 +141,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return MetricsServiceV2StubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return MetricsServiceV2StubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java index 715f811382..8d53820dd7 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java @@ -599,7 +599,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java index 0c2e70f908..7f8e5453d8 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java @@ -23,7 +23,6 @@ import com.google.api.MonitoredResourceDescriptor; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; import com.google.api.gax.batching.BatchingSettings; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; @@ -490,7 +489,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java index 30cc3acdbe..8b15688099 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java @@ -20,7 +20,6 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -258,7 +257,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index a2b8ef1461..7108a832f8 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -20,7 +20,6 @@ import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -200,7 +199,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return SchemaServiceStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return SchemaServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index e9894a3bb8..1a3f87a03d 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -20,7 +20,6 @@ import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -239,7 +238,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return SubscriberStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return SubscriberStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 0221ba84dc..92db8c9f19 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -21,7 +21,6 @@ import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -199,7 +198,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return PublisherStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return PublisherStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index d3592189ab..2906f095e2 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -22,7 +22,6 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; import com.google.api.gax.batching.BatchingSettings; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; @@ -524,7 +523,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 79d271fdfd..b94de2050a 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -21,7 +21,6 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -383,7 +382,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 5c928fd7e8..8de5f77641 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -21,7 +21,6 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -429,7 +428,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java index 2841402813..f3045607b8 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java @@ -226,7 +226,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return CloudRedisStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return CloudRedisStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java index 582f9b76c6..937ab5700a 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java @@ -382,7 +382,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -391,7 +390,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java b/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java index b390af0933..9fa448bf07 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java @@ -22,7 +22,6 @@ import static com.google.storage.v2.StorageClient.ListObjectsPagedResponse; import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; @@ -278,7 +277,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return StorageStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return StorageStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java b/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java index 80b747d9d8..253690acea 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java @@ -23,7 +23,6 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -641,7 +640,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(StorageStubSettings.class)) From 45a8e5022163c03fd3df4902a4e1ac010917d548 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Tue, 13 Feb 2024 16:00:07 +0000 Subject: [PATCH 53/75] chore: parallel run --- .github/workflows/ci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 64b648607d..713c314fee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -219,7 +219,8 @@ jobs: mvn verify \ -P enable-integration-tests \ --batch-mode \ - --no-transfer-progress + --no-transfer-progress \ + -T 2 showcase-native: runs-on: ubuntu-22.04 From 62d16707008573719eb97dedfc1ec2242aa7d5ac Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Tue, 13 Feb 2024 18:30:16 +0000 Subject: [PATCH 54/75] remove all yamls --- .../showcase/v1beta1/it/ITOtelMetrics.java | 150 ++++++++++++------ .../configs/testGrpc_OperationCancelled.yaml | 17 -- .../configs/testGrpc_OperationFailed.yaml | 17 -- .../configs/testGrpc_OperationSucceeded.yaml | 17 -- ...estGrpc_attemptFailedRetriesExhausted.yaml | 17 -- .../testGrpc_attemptPermanentFailure.yaml | 17 -- .../testHttpJson_OperationCancelled.yaml | 17 -- .../configs/testHttpJson_OperationFailed.yaml | 17 -- .../testHttpJson_OperationSucceeded.yaml | 17 -- ...ttpjson_attemptFailedRetriesExhausted.yaml | 17 -- .../testHttpjson_attemptPermanentFailure.yaml | 17 -- showcase/pom.xml | 4 - showcase/scripts/generate_otelcol_yaml.sh | 40 +++++ 13 files changed, 138 insertions(+), 226 deletions(-) delete mode 100644 showcase/opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testGrpc_OperationFailed.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml delete mode 100644 showcase/opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml create mode 100755 showcase/scripts/generate_otelcol_yaml.sh diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index 524ec8c070..da620cf532 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -43,53 +43,60 @@ import io.opentelemetry.sdk.resources.Resource; import java.io.IOException; import java.util.concurrent.TimeUnit; +import org.junit.AfterClass; import org.junit.Test; public class ITOtelMetrics { - // @AfterClass - // public static void cleanup_otelcol() throws Exception { - // Process process = Runtime.getRuntime().exec("../scripts/cleanup_otelcol.sh"); - // process.waitFor(); - // } - - @Test - public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { - - // initialize the otel-collector - setupOtelCollector("../opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml"); - - EchoClient client = - TestClientInitializer.createHttpJsonEchoClientOpentelemetry( - createOpenTelemetryTracerFactory("4317")); - - EchoRequest requestWithNoError = - EchoRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) - .build(); - - client.echo(requestWithNoError); - - // wait for the metrics to get uploaded - Thread.sleep(5000); - - String filePath = "../test_data/testHttpJson_OperationSucceeded_metrics.txt"; - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"OK\"}}]"; - - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - client.close(); - client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + @AfterClass + public static void cleanup_otelcol() throws Exception { + Process process = Runtime.getRuntime().exec("../scripts/cleanup_otelcol.sh"); + process.waitFor(); } + // This test is currently giving an error about requestId. will ask Alice and resolve it. + // @Test + // public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { + // generate_otelcol_config("4317", + // "../test_data/testHttpJson_OperationSucceeded_metrics.txt","../test_data/testHttpJson_OperationSucceeded.yaml"); + // // initialize the otel-collector + // setupOtelCollector("../test_data/testHttpJson_OperationSucceeded.yaml"); + // + // EchoClient client = + // TestClientInitializer.createHttpJsonEchoClientOpentelemetry( + // createOpenTelemetryTracerFactory("4317")); + // + // EchoRequest requestWithNoError = + // EchoRequest.newBuilder() + // .setContent("successful httpJson request") + // .build(); + // + // client.echo(requestWithNoError); + // + // // wait for the metrics to get uploaded + // Thread.sleep(5000); + // + // String filePath = "../test_data/testHttpJson_OperationSucceeded_metrics.txt"; + // String attribute1 = + // + // "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"OK\"}}]"; + // + // String[] params = {filePath, attribute1}; + // int result = verify_metrics(params); + // Truth.assertThat(result).isEqualTo(0); + // + // client.close(); + // client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + // } + @Test public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { - // initialize the otel-collector - setupOtelCollector("../opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml"); + generate_otelcol_config( + "4318", + "../test_data/testGrpc_OperationSucceeded_metrics.txt", + "../test_data/testGrpc_OperationSucceeded.yaml"); + setupOtelCollector("../test_data/testGrpc_OperationSucceeded.yaml"); EchoClient client = TestClientInitializer.createGrpcEchoClientOpentelemetry( @@ -118,8 +125,12 @@ public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { @Test public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { + generate_otelcol_config( + "4319", + "../test_data/testHttpJson_OperationCancelled_metrics.txt", + "../test_data/testHttpJson_OperationCancelled.yaml"); // initialize the otel-collector - setupOtelCollector("../opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml"); + setupOtelCollector("../test_data/testHttpJson_OperationCancelled.yaml"); EchoClient client = TestClientInitializer.createHttpJsonEchoClientOpentelemetry( @@ -151,8 +162,12 @@ public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { @Test public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { + generate_otelcol_config( + "4320", + "../test_data/testGrpc_OperationCancelled_metrics.txt", + "../test_data/testGrpc_OperationCancelled.yaml"); // initialize the otel-collector - setupOtelCollector("../opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml"); + setupOtelCollector("../test_data/testGrpc_OperationCancelled.yaml"); EchoClient client = TestClientInitializer.createGrpcEchoClientOpentelemetry( @@ -183,8 +198,13 @@ public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { @Test public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { + generate_otelcol_config( + "4321", + "../test_data/testHttpJson_OperationFailed_metrics.txt", + "../test_data/testHttpJson_OperationFailed.yaml"); + // initialize the otel-collector - setupOtelCollector("../opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml"); + setupOtelCollector("../test_data/testHttpJson_OperationFailed.yaml"); EchoClient client = TestClientInitializer.createHttpJsonEchoClientOpentelemetry( @@ -215,8 +235,12 @@ public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { @Test public void testGrpc_OperationFailed_recordsMetrics() throws Exception { + generate_otelcol_config( + "4322", + "../test_data/testGrpc_OperationFailed_metrics.txt", + "../test_data/testGrpc_OperationFailed.yaml"); // initialize the otel-collector - setupOtelCollector("../opentelemetry-helper/configs/testGrpc_OperationFailed.yaml"); + setupOtelCollector("../test_data/testGrpc_OperationFailed.yaml"); EchoClient client = TestClientInitializer.createGrpcEchoClientOpentelemetry( @@ -247,8 +271,11 @@ public void testGrpc_OperationFailed_recordsMetrics() throws Exception { @Test public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Exception { - setupOtelCollector( - "../opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml"); + generate_otelcol_config( + "4323", + "../test_data/testGrpc_attemptFailedRetriesExhausted_metrics.txt", + "../test_data/testGrpc_attemptFailedRetriesExhausted.yaml"); + setupOtelCollector("../test_data/testGrpc_attemptFailedRetriesExhausted.yaml"); RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(5).build(); @@ -306,8 +333,11 @@ public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Excep @Test public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws Exception { - setupOtelCollector( - "../opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml"); + generate_otelcol_config( + "4324", + "../test_data/testHttpjson_attemptFailedRetriesExhausted_metrics.txt", + "../test_data/testHttpjson_attemptFailedRetriesExhausted.yaml"); + setupOtelCollector("../test_data/testHttpjson_attemptFailedRetriesExhausted.yaml"); RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(3).build(); @@ -359,22 +389,26 @@ public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws E @Test public void testGrpc_attemptPermanentFailure_recordsMetrics() throws Exception { - setupOtelCollector("../opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml"); + generate_otelcol_config( + "4325", + "../test_data/testGrpc_attemptPermanentFailure_metrics.txt", + "../test_data/testGrpc_attemptPermanentFailure.yaml"); + setupOtelCollector("../test_data/testGrpc_attemptPermanentFailure.yaml"); - RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(6).build(); + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(4).build(); EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newBuilder(); grpcEchoSettingsBuilder .blockSettings() .setRetrySettings(retrySettings) - .setRetryableCodes(ImmutableSet.of(Code.NOT_FOUND)); + .setRetryableCodes(ImmutableSet.of(Code.ALREADY_EXISTS)); EchoSettings grpcEchoSettings = EchoSettings.create(grpcEchoSettingsBuilder.build()); grpcEchoSettings = grpcEchoSettings .toBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4326")) + .setTracerFactory(createOpenTelemetryTracerFactory("4325")) .setTransportChannelProvider( EchoSettings.defaultGrpcTransportProviderBuilder() .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) @@ -457,10 +491,10 @@ private void setupOtelCollector(String configPath) throws Exception { public static int verify_metrics(String... parameters) throws IOException, InterruptedException { - String SCRIPT_PATH = "../scripts/verify_metrics.sh"; + String scriptPath = "../scripts/verify_metrics.sh"; // Construct the command to execute the script with parameters - StringBuilder command = new StringBuilder(SCRIPT_PATH); + StringBuilder command = new StringBuilder(scriptPath); for (String parameter : parameters) { command.append(" ").append(parameter); } @@ -468,4 +502,16 @@ public static int verify_metrics(String... parameters) throws IOException, Inter Process process = Runtime.getRuntime().exec(command.toString()); return process.waitFor(); } + + public static void generate_otelcol_config( + String endpoint, String filepath, String configFilePath) + throws IOException, InterruptedException { + + String scriptPath = "../scripts/generate_otelcol_yaml.sh"; + + Process process = + Runtime.getRuntime() + .exec(scriptPath + " " + endpoint + " " + filepath + " " + configFilePath); + process.waitFor(); + } } diff --git a/showcase/opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml b/showcase/opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml deleted file mode 100644 index 0b08825f22..0000000000 --- a/showcase/opentelemetry-helper/configs/testGrpc_OperationCancelled.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4320" - -exporters: - file: - path: "testGrpc_OperationCancelled_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testGrpc_OperationFailed.yaml b/showcase/opentelemetry-helper/configs/testGrpc_OperationFailed.yaml deleted file mode 100644 index e1443054fb..0000000000 --- a/showcase/opentelemetry-helper/configs/testGrpc_OperationFailed.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4322" - -exporters: - file: - path: "testGrpc_OperationFailed_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml b/showcase/opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml deleted file mode 100644 index 426141f8a0..0000000000 --- a/showcase/opentelemetry-helper/configs/testGrpc_OperationSucceeded.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4318" - -exporters: - file: - path: "testGrpc_OperationSucceeded_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml b/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml deleted file mode 100644 index c7be9642b8..0000000000 --- a/showcase/opentelemetry-helper/configs/testGrpc_attemptFailedRetriesExhausted.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4323" - -exporters: - file: - path: "testGrpc_attemptFailedRetriesExhausted_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml b/showcase/opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml deleted file mode 100644 index 6b385a4c05..0000000000 --- a/showcase/opentelemetry-helper/configs/testGrpc_attemptPermanentFailure.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4326" - -exporters: - file: - path: "testGrpc_attemptPermanentFailure_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml deleted file mode 100644 index c7c2332ff5..0000000000 --- a/showcase/opentelemetry-helper/configs/testHttpJson_OperationCancelled.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4319" - -exporters: - file: - path: "testHttpJson_OperationCancelled_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml deleted file mode 100644 index 83cc77a5ef..0000000000 --- a/showcase/opentelemetry-helper/configs/testHttpJson_OperationFailed.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4321" - -exporters: - file: - path: "testHttpJson_OperationFailed_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml b/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml deleted file mode 100644 index 2138d0bb06..0000000000 --- a/showcase/opentelemetry-helper/configs/testHttpJson_OperationSucceeded.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4317" - -exporters: - file: - path: "testHttpJson_OperationSucceeded_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml b/showcase/opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml deleted file mode 100644 index e8933efa97..0000000000 --- a/showcase/opentelemetry-helper/configs/testHttpjson_attemptFailedRetriesExhausted.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4324" - -exporters: - file: - path: "testHttpjson_attemptFailedRetriesExhausted_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml b/showcase/opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml deleted file mode 100644 index 4ee529dc65..0000000000 --- a/showcase/opentelemetry-helper/configs/testHttpjson_attemptPermanentFailure.yaml +++ /dev/null @@ -1,17 +0,0 @@ -receivers: - otlp: - protocols: - grpc: - endpoint: "localhost:4325" - -exporters: - file: - path: "testHttpjson_attemptPermanentFailure_metrics.txt" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file] \ No newline at end of file diff --git a/showcase/pom.xml b/showcase/pom.xml index 933e231f92..f11f4ed95b 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -78,10 +78,6 @@ io.opentelemetry opentelemetry-sdk - - io.opentelemetry - opentelemetry-api - io.opentelemetry opentelemetry-exporter-otlp diff --git a/showcase/scripts/generate_otelcol_yaml.sh b/showcase/scripts/generate_otelcol_yaml.sh new file mode 100755 index 0000000000..032258eec8 --- /dev/null +++ b/showcase/scripts/generate_otelcol_yaml.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# Check if both endpoint and file path are provided +if [ "$#" -ne 3 ]; then + echo "Usage: $0 " + exit 1 +fi + +localhost_port="$1" +file_path="$2" +output_file="$3" + +# Define YAML template +yaml_template="receivers: + otlp: + protocols: + grpc: + endpoint: \"localhost:$localhost_port\" + +exporters: + file: + path: \"$file_path\" + +service: + extensions: [] + pipelines: + metrics: + receivers: [otlp] + processors: [] + exporters: [file]" + +# Replace the port number after "localhost:" +yaml_content=$(echo "$yaml_template" | sed "s|localhost:[0-9]*|localhost:$localhost_port|") + +mkdir -p "../test_data" + +# Write the modified YAML content to a file +echo "$yaml_content" > "$output_file" + +echo "YAML file successfully generated." \ No newline at end of file From d5c99a175164c0e0039dd101c606d84a7a1193e0 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Thu, 15 Feb 2024 21:42:04 +0000 Subject: [PATCH 55/75] using in-memory reader --- .../showcase/v1beta1/it/ITOtelMetrics.java | 542 ++++++++---------- showcase/pom.xml | 5 + showcase/scripts/cleanup_otelcol.sh | 5 - showcase/scripts/generate_otelcol_yaml.sh | 40 -- showcase/scripts/start_otelcol.sh | 24 - showcase/scripts/verify_metrics.sh | 55 -- 6 files changed, 242 insertions(+), 429 deletions(-) delete mode 100755 showcase/scripts/cleanup_otelcol.sh delete mode 100755 showcase/scripts/generate_otelcol_yaml.sh delete mode 100755 showcase/scripts/start_otelcol.sh delete mode 100755 showcase/scripts/verify_metrics.sh diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index da620cf532..be6b998e08 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -21,7 +21,6 @@ import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.StatusCode.Code; -import com.google.api.gax.tracing.ApiTracerFactory; import com.google.api.gax.tracing.MetricsTracerFactory; import com.google.api.gax.tracing.OpentelemetryMetricsRecorder; import com.google.common.collect.ImmutableSet; @@ -35,143 +34,125 @@ import com.google.showcase.v1beta1.stub.EchoStubSettings; import io.grpc.ManagedChannelBuilder; import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.common.AttributeKey; import io.opentelemetry.api.metrics.Meter; -import io.opentelemetry.exporter.otlp.metrics.OtlpGrpcMetricExporter; import io.opentelemetry.sdk.OpenTelemetrySdk; import io.opentelemetry.sdk.metrics.SdkMeterProvider; -import io.opentelemetry.sdk.metrics.export.PeriodicMetricReader; +import io.opentelemetry.sdk.metrics.data.HistogramData; +import io.opentelemetry.sdk.metrics.data.HistogramPointData; +import io.opentelemetry.sdk.metrics.data.MetricData; import io.opentelemetry.sdk.resources.Resource; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import org.junit.AfterClass; +import io.opentelemetry.sdk.testing.exporter.InMemoryMetricExporter; +import io.opentelemetry.sdk.testing.exporter.InMemoryMetricReader; +import java.util.ArrayList; +import java.util.List; import org.junit.Test; public class ITOtelMetrics { - @AfterClass - public static void cleanup_otelcol() throws Exception { - Process process = Runtime.getRuntime().exec("../scripts/cleanup_otelcol.sh"); - process.waitFor(); - } - - // This test is currently giving an error about requestId. will ask Alice and resolve it. - // @Test - // public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { - // generate_otelcol_config("4317", - // "../test_data/testHttpJson_OperationSucceeded_metrics.txt","../test_data/testHttpJson_OperationSucceeded.yaml"); - // // initialize the otel-collector - // setupOtelCollector("../test_data/testHttpJson_OperationSucceeded.yaml"); - // - // EchoClient client = - // TestClientInitializer.createHttpJsonEchoClientOpentelemetry( - // createOpenTelemetryTracerFactory("4317")); - // - // EchoRequest requestWithNoError = - // EchoRequest.newBuilder() - // .setContent("successful httpJson request") - // .build(); - // - // client.echo(requestWithNoError); - // - // // wait for the metrics to get uploaded - // Thread.sleep(5000); - // - // String filePath = "../test_data/testHttpJson_OperationSucceeded_metrics.txt"; - // String attribute1 = - // - // "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"OK\"}}]"; - // - // String[] params = {filePath, attribute1}; - // int result = verify_metrics(params); - // Truth.assertThat(result).isEqualTo(0); - // - // client.close(); - // client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); - // } - @Test - public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { - - generate_otelcol_config( - "4318", - "../test_data/testGrpc_OperationSucceeded_metrics.txt", - "../test_data/testGrpc_OperationSucceeded.yaml"); - setupOtelCollector("../test_data/testGrpc_OperationSucceeded.yaml"); + public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { - EchoClient client = - TestClientInitializer.createGrpcEchoClientOpentelemetry( - createOpenTelemetryTracerFactory("4318")); + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); - EchoRequest requestWithNoError = - EchoRequest.newBuilder().setContent("test_grpc_operation_succeeded").build(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); - client.echo(requestWithNoError); + EchoClient client = + TestClientInitializer.createHttpJsonEchoClientOpentelemetry( + new MetricsTracerFactory(otelMetricsRecorder)); + + client.echo(EchoRequest.newBuilder().setContent("test_http_operation_succeeded").build()); + + Thread.sleep(1000); + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("google.showcase.v1beta1.Echo/Echo"); + Truth.assertThat(status).isEqualTo("CANCELLED"); + } + } + } + } - // wait for the metrics to get uploaded - Thread.sleep(5000); + @Test + public void testGrpc_OperationSucceded_recordsMetrics() throws Exception { - String filePath = "../test_data/testGrpc_OperationSucceeded_metrics.txt"; - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"OK\"}}]"; + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + InMemoryMetricExporter exporter = InMemoryMetricExporter.create(); - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); - client.close(); - client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + EchoClient client = + TestClientInitializer.createGrpcEchoClientOpentelemetry( + new MetricsTracerFactory(otelMetricsRecorder)); + + client.echo(EchoRequest.newBuilder().setContent("test_grpc_operation_succeeded").build()); + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("Echo.Echo"); + Truth.assertThat(status).isEqualTo("OK"); + } + } + } } @Test public void testHttpJson_OperationCancelled_recordsMetrics() throws Exception { - generate_otelcol_config( - "4319", - "../test_data/testHttpJson_OperationCancelled_metrics.txt", - "../test_data/testHttpJson_OperationCancelled.yaml"); - // initialize the otel-collector - setupOtelCollector("../test_data/testHttpJson_OperationCancelled.yaml"); + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); EchoClient client = TestClientInitializer.createHttpJsonEchoClientOpentelemetry( - createOpenTelemetryTracerFactory("4319")); - - EchoRequest requestWithNoError = - EchoRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.OK.ordinal()).build()) - .build(); - - // explicitly cancel the request - client.echoCallable().futureCall(requestWithNoError).cancel(true); - - // wait for the metrics to get uploaded - Thread.sleep(5000); - - String filePath = "../test_data/testHttpJson_OperationCancelled_metrics.txt"; - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"CANCELLED\"}}]"; - - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - client.close(); - client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + new MetricsTracerFactory(otelMetricsRecorder)); + + client + .echoCallable() + .futureCall(EchoRequest.newBuilder().setContent("test_http_operation_cancelled").build()) + .cancel(true); + + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("google.showcase.v1beta1.Echo/Echo"); + Truth.assertThat(status).isEqualTo("CANCELLED"); + } + } + } } @Test public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { - generate_otelcol_config( - "4320", - "../test_data/testGrpc_OperationCancelled_metrics.txt", - "../test_data/testGrpc_OperationCancelled.yaml"); - // initialize the otel-collector - setupOtelCollector("../test_data/testGrpc_OperationCancelled.yaml"); - + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); EchoClient client = TestClientInitializer.createGrpcEchoClientOpentelemetry( - createOpenTelemetryTracerFactory("4320")); + new MetricsTracerFactory(otelMetricsRecorder)); EchoRequest requestWithNoError = EchoRequest.newBuilder() @@ -179,105 +160,97 @@ public void testGrpc_OperationCancelled_recordsMetrics() throws Exception { .build(); client.echoCallable().futureCall(requestWithNoError).cancel(true); - - // wait for the metrics to get uploaded - Thread.sleep(5000); - - String filePath = "../test_data/testGrpc_OperationCancelled_metrics.txt"; - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"CANCELLED\"}}]"; - - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - client.close(); - client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("Echo.Echo"); + Truth.assertThat(status).isEqualTo("CANCELLED"); + } + } + } } @Test public void testHttpJson_OperationFailed_recordsMetrics() throws Exception { - generate_otelcol_config( - "4321", - "../test_data/testHttpJson_OperationFailed_metrics.txt", - "../test_data/testHttpJson_OperationFailed.yaml"); - - // initialize the otel-collector - setupOtelCollector("../test_data/testHttpJson_OperationFailed.yaml"); - + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); EchoClient client = TestClientInitializer.createHttpJsonEchoClientOpentelemetry( - createOpenTelemetryTracerFactory("4321")); + new MetricsTracerFactory(otelMetricsRecorder)); - EchoRequest requestWithError = + EchoRequest requestWithNoError = EchoRequest.newBuilder() .setError(Status.newBuilder().setCode(Code.UNKNOWN.ordinal()).build()) .build(); - client.echoCallable().futureCall(requestWithError).isDone(); - - // wait for the metrics to get uploaded - Thread.sleep(5000); - - String filePath = "../test_data/testHttpJson_OperationFailed_metrics.txt"; - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"UNKNOWN\"}}]"; - - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - client.close(); - client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + client.echoCallable().futureCall(requestWithNoError); + Thread.sleep(1000); + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("google.showcase.v1beta1.Echo/Echo"); + Truth.assertThat(status).isEqualTo("UNKNOWN"); + } + } + } } @Test public void testGrpc_OperationFailed_recordsMetrics() throws Exception { - generate_otelcol_config( - "4322", - "../test_data/testGrpc_OperationFailed_metrics.txt", - "../test_data/testGrpc_OperationFailed.yaml"); - // initialize the otel-collector - setupOtelCollector("../test_data/testGrpc_OperationFailed.yaml"); - + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); EchoClient client = TestClientInitializer.createGrpcEchoClientOpentelemetry( - createOpenTelemetryTracerFactory("4322")); + new MetricsTracerFactory(otelMetricsRecorder)); - EchoRequest requestWithError = + EchoRequest requestWithNoError = EchoRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.UNAUTHENTICATED.ordinal()).build()) + .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) .build(); - client.echoCallable().futureCall(requestWithError).isDone(); - - // wait for the metrics to get uploaded - Thread.sleep(5000); - - String filePath = "../test_data/testGrpc_OperationFailed_metrics.txt"; - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Echo\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"UNAUTHENTICATED\"}}]"; - - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - client.close(); - client.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + client.echoCallable().futureCall(requestWithNoError); + Thread.sleep(1000); + + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("Echo.Echo"); + Truth.assertThat(status).isEqualTo("INVALID_ARGUMENT"); + } + } + } } @Test public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Exception { - generate_otelcol_config( - "4323", - "../test_data/testGrpc_attemptFailedRetriesExhausted_metrics.txt", - "../test_data/testGrpc_attemptFailedRetriesExhausted.yaml"); - setupOtelCollector("../test_data/testGrpc_attemptFailedRetriesExhausted.yaml"); + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); - RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(5).build(); + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(7).build(); EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newBuilder(); grpcEchoSettingsBuilder @@ -290,7 +263,7 @@ public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Excep grpcEchoSettings .toBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4323")) + .setTracerFactory(new MetricsTracerFactory(otelMetricsRecorder)) .setTransportChannelProvider( EchoSettings.defaultGrpcTransportProviderBuilder() .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) @@ -307,52 +280,54 @@ public void testGrpc_attemptFailedRetriesExhausted_recordsMetrics() throws Excep grpcClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); - Thread.sleep(5000); - - String filePath = "../test_data/testGrpc_attemptFailedRetriesExhausted_metrics.txt"; - - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Block\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"INVALID_ARGUMENT\"}}]"; - - // additionally verify that 5 attempts were made - // when we make 'x' attempts, attempt_count.asInt = 'x' and there are 'x' datapoints in - // attempt_latency histogram -> (count : x} - // String attribute2 = "\"asInt\":\"5\""; - String attribute2 = "\"asInt\":\"5\""; - String attribute3 = "\"count\":\"5\""; - - String[] params = {filePath, attribute1, attribute2, attribute3}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - grpcClientWithRetrySetting.close(); - grpcClientWithRetrySetting.awaitTermination( - TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + Thread.sleep(1000); + + inMemoryMetricReader.flush(); + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + + System.out.println(pointData); + + // add a comment why I am doing this + double max = pointData.getMax(); + double min = pointData.getMin(); + if (max != min) { + Truth.assertThat(pointData.getCount()).isEqualTo(7); + } + Truth.assertThat(method).isEqualTo("Echo.Block"); + Truth.assertThat(status).isEqualTo("INVALID_ARGUMENT"); + } + } + } } @Test public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws Exception { - generate_otelcol_config( - "4324", - "../test_data/testHttpjson_attemptFailedRetriesExhausted_metrics.txt", - "../test_data/testHttpjson_attemptFailedRetriesExhausted.yaml"); - setupOtelCollector("../test_data/testHttpjson_attemptFailedRetriesExhausted.yaml"); + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(5).build(); - RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(3).build(); + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); EchoStubSettings.Builder httpJsonEchoSettingsBuilder = EchoStubSettings.newHttpJsonBuilder(); httpJsonEchoSettingsBuilder .blockSettings() .setRetrySettings(retrySettings) - .setRetryableCodes(ImmutableSet.of(Code.UNKNOWN)); + .setRetryableCodes(ImmutableSet.of(Code.INVALID_ARGUMENT)); EchoSettings httpJsonEchoSettings = EchoSettings.create(httpJsonEchoSettingsBuilder.build()); httpJsonEchoSettings = httpJsonEchoSettings .toBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4324")) + .setTracerFactory(new MetricsTracerFactory(otelMetricsRecorder)) .setTransportChannelProvider( EchoSettings.defaultHttpJsonTransportProviderBuilder() .setHttpTransport( @@ -365,50 +340,53 @@ public void testHttpjson_attemptFailedRetriesExhausted_recordsMetrics() throws E BlockRequest blockRequest = BlockRequest.newBuilder() - .setError(Status.newBuilder().setCode(Code.UNKNOWN.ordinal()).build()) + .setError(Status.newBuilder().setCode(Code.INVALID_ARGUMENT.ordinal()).build()) .build(); - httpJsonClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); - - Thread.sleep(5000); - - String filePath = "../test_data/testHttpjson_attemptFailedRetriesExhausted_metrics.txt"; - - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"google.showcase.v1beta1.Echo/Block\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"UNKNOWN\"}}]"; - - String[] params = {filePath, attribute1}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - httpJsonClientWithRetrySetting.close(); - httpJsonClientWithRetrySetting.awaitTermination( - TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + httpJsonClientWithRetrySetting.blockCallable().futureCall(blockRequest); + + Thread.sleep(1000); + inMemoryMetricReader.flush(); + + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String language = pointData.getAttributes().get(AttributeKey.stringKey("language")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("google.showcase.v1beta1.Echo/Block"); + Truth.assertThat(language).isEqualTo("Java"); + Truth.assertThat(status).isEqualTo("UNKNOWN"); + Truth.assertThat(pointData.getCount()).isEqualTo(5); + } + } + } } @Test public void testGrpc_attemptPermanentFailure_recordsMetrics() throws Exception { - generate_otelcol_config( - "4325", - "../test_data/testGrpc_attemptPermanentFailure_metrics.txt", - "../test_data/testGrpc_attemptPermanentFailure.yaml"); - setupOtelCollector("../test_data/testGrpc_attemptPermanentFailure.yaml"); + InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create(); + OpentelemetryMetricsRecorder otelMetricsRecorder = + createOtelMetricsRecorder(inMemoryMetricReader); - RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(4).build(); + RetrySettings retrySettings = RetrySettings.newBuilder().setMaxAttempts(3).build(); EchoStubSettings.Builder grpcEchoSettingsBuilder = EchoStubSettings.newBuilder(); grpcEchoSettingsBuilder .blockSettings() .setRetrySettings(retrySettings) - .setRetryableCodes(ImmutableSet.of(Code.ALREADY_EXISTS)); + .setRetryableCodes(ImmutableSet.of(Code.PERMISSION_DENIED)); EchoSettings grpcEchoSettings = EchoSettings.create(grpcEchoSettingsBuilder.build()); grpcEchoSettings = grpcEchoSettings .toBuilder() .setCredentialsProvider(NoCredentialsProvider.create()) - .setTracerFactory(createOpenTelemetryTracerFactory("4325")) + .setTracerFactory(new MetricsTracerFactory(otelMetricsRecorder)) .setTransportChannelProvider( EchoSettings.defaultGrpcTransportProviderBuilder() .setChannelConfigurator(ManagedChannelBuilder::usePlaintext) @@ -425,44 +403,36 @@ public void testGrpc_attemptPermanentFailure_recordsMetrics() throws Exception { grpcClientWithRetrySetting.blockCallable().futureCall(blockRequest).isDone(); - Thread.sleep(5000); - - String filePath = "../test_data/testGrpc_attemptPermanentFailure_metrics.txt"; - - String attribute1 = - "\"attributes\":[{\"key\":\"language\",\"value\":{\"stringValue\":\"Java\"}},{\"key\":\"method_name\",\"value\":{\"stringValue\":\"Echo.Block\"}},{\"key\":\"status\",\"value\":{\"stringValue\":\"INVALID_ARGUMENT\"}}]"; - // additionally verify that only 1 attempt was made - String attribute2 = "\"asInt\":\"1\""; - String attribute3 = "\"count\":\"1\""; - - String[] params = {filePath, attribute1, attribute2, attribute3}; - int result = verify_metrics(params); - Truth.assertThat(result).isEqualTo(0); - - grpcClientWithRetrySetting.close(); - grpcClientWithRetrySetting.awaitTermination( - TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS); + Thread.sleep(1000); + inMemoryMetricReader.flush(); + + List metricDataList = new ArrayList<>(inMemoryMetricReader.collectAllMetrics()); + + for (MetricData metricData : metricDataList) { + HistogramData histogramData = metricData.getHistogramData(); + if (!histogramData.getPoints().isEmpty()) { + for (HistogramPointData pointData : histogramData.getPoints()) { + String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); + String language = pointData.getAttributes().get(AttributeKey.stringKey("language")); + String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); + Truth.assertThat(method).isEqualTo("Echo.Block"); + Truth.assertThat(language).isEqualTo("Java"); + Truth.assertThat(status).isEqualTo("INVALID_ARGUMENT"); + Truth.assertThat(pointData.getCount()).isEqualTo(1); + } + } + } } - // Helper function for creating Opentelemetry object with a different port for exporter for every - // test - // this ensures that logs for each test are collected separately - private static ApiTracerFactory createOpenTelemetryTracerFactory(String port) { - // OTLP Metric Exporter setup - String endpoint = "http://localhost:" + port; - OtlpGrpcMetricExporter metricExporter = - OtlpGrpcMetricExporter.builder().setEndpoint(endpoint).build(); - - // Periodic Metric Reader configuration - PeriodicMetricReader metricReader = - PeriodicMetricReader.builder(metricExporter) - .setInterval(java.time.Duration.ofSeconds(3)) - .build(); + private OpentelemetryMetricsRecorder createOtelMetricsRecorder( + InMemoryMetricReader inMemoryMetricReader) { - // OpenTelemetry SDK Configuration - Resource resource = Resource.builder().build(); + Resource resource = Resource.getDefault(); SdkMeterProvider sdkMeterProvider = - SdkMeterProvider.builder().registerMetricReader(metricReader).setResource(resource).build(); + SdkMeterProvider.builder() + .setResource(resource) + .registerMetricReader(inMemoryMetricReader) + .build(); OpenTelemetry openTelemetry = OpenTelemetrySdk.builder().setMeterProvider(sdkMeterProvider).build(); @@ -473,45 +443,7 @@ private static ApiTracerFactory createOpenTelemetryTracerFactory(String port) { .meterBuilder("gax") .setInstrumentationVersion(GaxProperties.getGaxVersion()) .build(); - // OpenTelemetry Metrics Recorder - OpentelemetryMetricsRecorder otelMetricsRecorder = new OpentelemetryMetricsRecorder(meter); - - // Finally, create the Tracer Factory - return new MetricsTracerFactory(otelMetricsRecorder); - } - - private void setupOtelCollector(String configPath) throws Exception { - String scriptPath = "../scripts/start_otelcol.sh"; - String test_dataPath = "../test_data"; - Process process = - Runtime.getRuntime().exec(scriptPath + " " + test_dataPath + " " + configPath); - process.waitFor(); - } - - public static int verify_metrics(String... parameters) throws IOException, InterruptedException { - - String scriptPath = "../scripts/verify_metrics.sh"; - - // Construct the command to execute the script with parameters - StringBuilder command = new StringBuilder(scriptPath); - for (String parameter : parameters) { - command.append(" ").append(parameter); - } - // Execute the command - Process process = Runtime.getRuntime().exec(command.toString()); - return process.waitFor(); - } - - public static void generate_otelcol_config( - String endpoint, String filepath, String configFilePath) - throws IOException, InterruptedException { - - String scriptPath = "../scripts/generate_otelcol_yaml.sh"; - - Process process = - Runtime.getRuntime() - .exec(scriptPath + " " + endpoint + " " + filepath + " " + configFilePath); - process.waitFor(); + return new OpentelemetryMetricsRecorder(meter); } } diff --git a/showcase/pom.xml b/showcase/pom.xml index f11f4ed95b..17514fcae2 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -82,6 +82,11 @@ io.opentelemetry opentelemetry-exporter-otlp + + io.opentelemetry + opentelemetry-sdk-metrics-testing + 1.13.0-alpha + diff --git a/showcase/scripts/cleanup_otelcol.sh b/showcase/scripts/cleanup_otelcol.sh deleted file mode 100755 index 58ccda50f2..0000000000 --- a/showcase/scripts/cleanup_otelcol.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -rm -rf "../test_data" - -exit 0 \ No newline at end of file diff --git a/showcase/scripts/generate_otelcol_yaml.sh b/showcase/scripts/generate_otelcol_yaml.sh deleted file mode 100755 index 032258eec8..0000000000 --- a/showcase/scripts/generate_otelcol_yaml.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -# Check if both endpoint and file path are provided -if [ "$#" -ne 3 ]; then - echo "Usage: $0 " - exit 1 -fi - -localhost_port="$1" -file_path="$2" -output_file="$3" - -# Define YAML template -yaml_template="receivers: - otlp: - protocols: - grpc: - endpoint: \"localhost:$localhost_port\" - -exporters: - file: - path: \"$file_path\" - -service: - extensions: [] - pipelines: - metrics: - receivers: [otlp] - processors: [] - exporters: [file]" - -# Replace the port number after "localhost:" -yaml_content=$(echo "$yaml_template" | sed "s|localhost:[0-9]*|localhost:$localhost_port|") - -mkdir -p "../test_data" - -# Write the modified YAML content to a file -echo "$yaml_content" > "$output_file" - -echo "YAML file successfully generated." \ No newline at end of file diff --git a/showcase/scripts/start_otelcol.sh b/showcase/scripts/start_otelcol.sh deleted file mode 100755 index 90bb29bb81..0000000000 --- a/showcase/scripts/start_otelcol.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -killall otelcol - -# Define the directory where you want to install everything -install_dir="$1" - -# Create the install directory if it doesn't exist -mkdir -p "$install_dir" - -# Change directory to the install directory -cd "$install_dir" - -## in future iterations/improvement, make this version dynamic -curl --proto '=https' --tlsv1.2 -fOL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.93.0/otelcol_0.93.0_linux_amd64.tar.gz -tar -xvf otelcol_0.93.0_linux_amd64.tar.gz - -killall otelcol - -## Start OpenTelemetry Collector with the updated config file -echo "Starting OpenTelemetry Collector with the updated config file: $2" -nohup ./otelcol --config "$2" > /dev/null 2>&1 & - -exit 0 diff --git a/showcase/scripts/verify_metrics.sh b/showcase/scripts/verify_metrics.sh deleted file mode 100755 index 320d5938bf..0000000000 --- a/showcase/scripts/verify_metrics.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash - -file_exists_and_non_empty() { - if [ -s "$1" ]; then - return 0 # File exists and is non-empty - else - return 1 # File does not exist or is empty - fi -} - -# Function to check if the JSON file contains the given string -metrics_contains_string() { - local file="$1" - local str="$2" - if grep -qF "$str" "$file"; then - return 0 # String found in the JSON file - else - return 1 # String not found in the JSON file - fi -} - -if [ "$#" -lt 2 ]; then - echo "Usage: $0 [ ...]" - exit 1 -fi - -# Check for valid json structure -if jq '.' "$1" >/dev/null 2>&1; then - echo "Valid JSON" -else - echo "Invalid JSON" -fi - -metrics_file="$1" -shift - -if ! file_exists_and_non_empty "$metrics_file"; then - echo "Error: File '$metrics_file' does not exist or is empty." - exit 1 -fi - -all_found=true -for search_string in "$@"; do - if ! metrics_contains_string "$metrics_file" "$search_string"; then - echo "The metrics file does not contain the attribute '$search_string'." - all_found=false - fi -done - -if [ "$all_found" = false ]; then - echo "The metrics file does not contain all of the given attributes." - exit 1 -else - echo "All search attributes found in the metrics file." -fi \ No newline at end of file From 8b0bd4e8515ee51d837840667002e1e0494bfaeb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 13 Feb 2024 17:41:00 +0100 Subject: [PATCH 56/75] deps: update grpc dependencies to v1.61.1 (#2463) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.grpc:grpc-core](https://togithub.com/grpc/grpc-java) | `1.61.0` -> `1.61.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.grpc:grpc-core/1.61.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.grpc:grpc-core/1.61.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.grpc:grpc-core/1.61.0/1.61.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.grpc:grpc-core/1.61.0/1.61.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.grpc:grpc-bom](https://togithub.com/grpc/grpc-java) | `1.61.0` -> `1.61.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.grpc:grpc-bom/1.61.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.grpc:grpc-bom/1.61.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.grpc:grpc-bom/1.61.0/1.61.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.grpc:grpc-bom/1.61.0/1.61.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes

grpc/grpc-java (io.grpc:grpc-core) ### [`v1.61.1`](https://togithub.com/grpc/grpc-java/releases/tag/v1.61.1) [Compare Source](https://togithub.com/grpc/grpc-java/compare/v1.61.0...v1.61.1) ##### Bug Fixes xds: Fix a bug in `WeightedRoundRobinLoadBalancer` policy that could raise `NullPointerException` and further cause channel panic when picking a subchannel. This bug can only be triggered when connection can not be established and the channel reports `TRANSIENT_FAILURE` state. ([#​10868](https://togithub.com/grpc/grpc-java/issues/10868))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/sdk-platform-java). --- gapic-generator-java-pom-parent/pom.xml | 2 +- gax-java/dependencies.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gapic-generator-java-pom-parent/pom.xml b/gapic-generator-java-pom-parent/pom.xml index cfd7e48a4e..f7efb1c652 100644 --- a/gapic-generator-java-pom-parent/pom.xml +++ b/gapic-generator-java-pom-parent/pom.xml @@ -26,7 +26,7 @@ 1.3.2 - 1.61.0 + 1.61.1 1.22.0 1.43.3 2.10.1 diff --git a/gax-java/dependencies.properties b/gax-java/dependencies.properties index c9049af005..36db3702c6 100644 --- a/gax-java/dependencies.properties +++ b/gax-java/dependencies.properties @@ -28,7 +28,7 @@ version.gax_httpjson=2.42.1-SNAPSHOT version.com_google_protobuf=3.25.2 version.google_java_format=1.15.0 -version.io_grpc=1.61.0 +version.io_grpc=1.61.1 # Maven artifacts. # Note, the actual name of each property matters (bazel build scripts depend on it). From a3d334586e0fb856fcaa92ca4010474e53aa8d90 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:05:29 -0500 Subject: [PATCH 57/75] chore: [common-protos,common-protos] set packed = false on field_behavior extension (#2436) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 604675854 Source-Link: https://github.com/googleapis/googleapis/commit/42c04fea4338ba626095ec2cde5ea75827191581 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1ed8a97a00d02fe456f6ebd4160c5b2b000ad75 Copy-Tag: eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJhMWVkOGE5N2EwMGQwMmZlNDU2ZjZlYmQ0MTYwYzViMmIwMDBhZDc1In0= chore: set packed = false on field_behavior extension PiperOrigin-RevId: 604675854 Source-Link: https://github.com/googleapis/googleapis/commit/42c04fea4338ba626095ec2cde5ea75827191581 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1ed8a97a00d02fe456f6ebd4160c5b2b000ad75 Copy-Tag: eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJhMWVkOGE5N2EwMGQwMmZlNDU2ZjZlYmQ0MTYwYzViMmIwMDBhZDc1In0= build: Update protobuf to 25.2 in WORKSPACE build: Update grpc to 1.60.0 in WORKSPACE build: Remove pin for boringssl in WORKSPACE build: Update bazel to 6.3.0 in .bazeliskrc PiperOrigin-RevId: 603226138 Source-Link: https://github.com/googleapis/googleapis/commit/2aec9e178dab3427c0ad5654c94a069e0bc7224c Source-Link: https://github.com/googleapis/googleapis-gen/commit/e9a5c2ef37b4d69c93e39141d87aae0b193c00b1 Copy-Tag: eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJlOWE1YzJlZjM3YjRkNjljOTNlMzkxNDFkODdhYWUwYjE5M2MwMGIxIn0= build: Update protobuf to 25.2 in WORKSPACE build: Update grpc to 1.60.0 in WORKSPACE build: Remove pin for boringssl in WORKSPACE build: Update bazel to 6.3.0 in .bazeliskrc PiperOrigin-RevId: 603226138 Source-Link: https://github.com/googleapis/googleapis/commit/2aec9e178dab3427c0ad5654c94a069e0bc7224c Source-Link: https://github.com/googleapis/googleapis-gen/commit/e9a5c2ef37b4d69c93e39141d87aae0b193c00b1 Copy-Tag: eyJwIjoiamF2YS1jb21tb24tcHJvdG9zLy5Pd2xCb3QueWFtbCIsImgiOiJlOWE1YzJlZjM3YjRkNjljOTNlMzkxNDFkODdhYWUwYjE5M2MwMGIxIn0= --------- Co-authored-by: Owl Bot --- java-common-protos/README.md | 184 ++++++++-- .../src/main/java/com/google/api/Advice.java | 1 + .../java/com/google/api/AdviceOrBuilder.java | 1 + .../java/com/google/api/AnnotationsProto.java | 1 + .../main/java/com/google/api/AuthProto.java | 1 + .../java/com/google/api/AuthProvider.java | 1 + .../com/google/api/AuthProviderOrBuilder.java | 1 + .../java/com/google/api/AuthRequirement.java | 1 + .../google/api/AuthRequirementOrBuilder.java | 1 + .../java/com/google/api/Authentication.java | 1 + .../google/api/AuthenticationOrBuilder.java | 1 + .../com/google/api/AuthenticationRule.java | 29 +- .../api/AuthenticationRuleOrBuilder.java | 1 + .../src/main/java/com/google/api/Backend.java | 1 + .../java/com/google/api/BackendOrBuilder.java | 1 + .../java/com/google/api/BackendProto.java | 1 + .../main/java/com/google/api/BackendRule.java | 125 +++++-- .../com/google/api/BackendRuleOrBuilder.java | 1 + .../src/main/java/com/google/api/Billing.java | 1 + .../java/com/google/api/BillingOrBuilder.java | 1 + .../java/com/google/api/BillingProto.java | 1 + .../main/java/com/google/api/ChangeType.java | 1 + .../google/api/ClientLibraryDestination.java | 1 + .../google/api/ClientLibraryOrganization.java | 1 + .../com/google/api/ClientLibrarySettings.java | 126 ++++--- .../api/ClientLibrarySettingsOrBuilder.java | 1 + .../main/java/com/google/api/ClientProto.java | 1 + .../google/api/CommonLanguageSettings.java | 1 + .../api/CommonLanguageSettingsOrBuilder.java | 1 + .../java/com/google/api/ConfigChange.java | 1 + .../com/google/api/ConfigChangeOrBuilder.java | 1 + .../com/google/api/ConfigChangeProto.java | 1 + .../java/com/google/api/ConsumerProto.java | 1 + .../src/main/java/com/google/api/Context.java | 1 + .../java/com/google/api/ContextOrBuilder.java | 1 + .../java/com/google/api/ContextProto.java | 1 + .../main/java/com/google/api/ContextRule.java | 1 + .../com/google/api/ContextRuleOrBuilder.java | 1 + .../src/main/java/com/google/api/Control.java | 1 + .../java/com/google/api/ControlOrBuilder.java | 1 + .../java/com/google/api/ControlProto.java | 1 + .../main/java/com/google/api/CppSettings.java | 28 +- .../com/google/api/CppSettingsOrBuilder.java | 1 + .../com/google/api/CustomHttpPattern.java | 1 + .../api/CustomHttpPatternOrBuilder.java | 1 + .../java/com/google/api/Distribution.java | 142 +++++--- .../com/google/api/DistributionOrBuilder.java | 1 + .../com/google/api/DistributionProto.java | 1 + .../java/com/google/api/Documentation.java | 1 + .../google/api/DocumentationOrBuilder.java | 1 + .../com/google/api/DocumentationProto.java | 1 + .../com/google/api/DocumentationRule.java | 1 + .../api/DocumentationRuleOrBuilder.java | 1 + .../java/com/google/api/DotnetSettings.java | 37 ++- .../google/api/DotnetSettingsOrBuilder.java | 1 + .../main/java/com/google/api/Endpoint.java | 1 + .../com/google/api/EndpointOrBuilder.java | 1 + .../java/com/google/api/EndpointProto.java | 1 + .../main/java/com/google/api/ErrorReason.java | 1 + .../java/com/google/api/ErrorReasonProto.java | 1 + .../java/com/google/api/FieldBehavior.java | 1 + .../com/google/api/FieldBehaviorProto.java | 11 +- .../main/java/com/google/api/FieldInfo.java | 1 + .../com/google/api/FieldInfoOrBuilder.java | 1 + .../java/com/google/api/FieldInfoProto.java | 1 + .../main/java/com/google/api/FieldPolicy.java | 1 + .../com/google/api/FieldPolicyOrBuilder.java | 1 + .../main/java/com/google/api/GoSettings.java | 28 +- .../com/google/api/GoSettingsOrBuilder.java | 1 + .../src/main/java/com/google/api/Http.java | 1 + .../main/java/com/google/api/HttpBody.java | 1 + .../com/google/api/HttpBodyOrBuilder.java | 1 + .../java/com/google/api/HttpBodyProto.java | 1 + .../java/com/google/api/HttpOrBuilder.java | 1 + .../main/java/com/google/api/HttpProto.java | 1 + .../main/java/com/google/api/HttpRule.java | 1 + .../com/google/api/HttpRuleOrBuilder.java | 1 + .../java/com/google/api/JavaSettings.java | 37 ++- .../com/google/api/JavaSettingsOrBuilder.java | 1 + .../main/java/com/google/api/JwtLocation.java | 1 + .../com/google/api/JwtLocationOrBuilder.java | 1 + .../java/com/google/api/LabelDescriptor.java | 1 + .../google/api/LabelDescriptorOrBuilder.java | 1 + .../main/java/com/google/api/LabelProto.java | 1 + .../main/java/com/google/api/LaunchStage.java | 1 + .../java/com/google/api/LaunchStageProto.java | 1 + .../java/com/google/api/LogDescriptor.java | 1 + .../google/api/LogDescriptorOrBuilder.java | 1 + .../main/java/com/google/api/LogProto.java | 1 + .../src/main/java/com/google/api/Logging.java | 1 + .../java/com/google/api/LoggingOrBuilder.java | 1 + .../java/com/google/api/LoggingProto.java | 1 + .../java/com/google/api/MethodPolicy.java | 1 + .../com/google/api/MethodPolicyOrBuilder.java | 1 + .../java/com/google/api/MethodSettings.java | 83 +++-- .../google/api/MethodSettingsOrBuilder.java | 1 + .../src/main/java/com/google/api/Metric.java | 10 +- .../java/com/google/api/MetricDescriptor.java | 70 +++- .../google/api/MetricDescriptorOrBuilder.java | 1 + .../java/com/google/api/MetricOrBuilder.java | 1 + .../main/java/com/google/api/MetricProto.java | 1 + .../main/java/com/google/api/MetricRule.java | 10 +- .../com/google/api/MetricRuleOrBuilder.java | 1 + .../com/google/api/MonitoredResource.java | 10 +- .../api/MonitoredResourceDescriptor.java | 1 + .../MonitoredResourceDescriptorOrBuilder.java | 1 + .../google/api/MonitoredResourceMetadata.java | 37 ++- .../MonitoredResourceMetadataOrBuilder.java | 1 + .../api/MonitoredResourceOrBuilder.java | 1 + .../google/api/MonitoredResourceProto.java | 1 + .../main/java/com/google/api/Monitoring.java | 1 + .../com/google/api/MonitoringOrBuilder.java | 1 + .../java/com/google/api/MonitoringProto.java | 1 + .../java/com/google/api/NodeSettings.java | 28 +- .../com/google/api/NodeSettingsOrBuilder.java | 1 + .../com/google/api/OAuthRequirements.java | 1 + .../api/OAuthRequirementsOrBuilder.java | 1 + .../src/main/java/com/google/api/Page.java | 1 + .../java/com/google/api/PageOrBuilder.java | 1 + .../main/java/com/google/api/PhpSettings.java | 28 +- .../com/google/api/PhpSettingsOrBuilder.java | 1 + .../main/java/com/google/api/PolicyProto.java | 1 + .../com/google/api/ProjectProperties.java | 1 + .../api/ProjectPropertiesOrBuilder.java | 1 + .../main/java/com/google/api/Property.java | 1 + .../com/google/api/PropertyOrBuilder.java | 1 + .../main/java/com/google/api/Publishing.java | 1 + .../com/google/api/PublishingOrBuilder.java | 1 + .../java/com/google/api/PythonSettings.java | 28 +- .../google/api/PythonSettingsOrBuilder.java | 1 + .../src/main/java/com/google/api/Quota.java | 1 + .../main/java/com/google/api/QuotaLimit.java | 10 +- .../com/google/api/QuotaLimitOrBuilder.java | 1 + .../java/com/google/api/QuotaOrBuilder.java | 1 + .../main/java/com/google/api/QuotaProto.java | 1 + .../com/google/api/ResourceDescriptor.java | 1 + .../api/ResourceDescriptorOrBuilder.java | 1 + .../java/com/google/api/ResourceProto.java | 1 + .../com/google/api/ResourceReference.java | 1 + .../api/ResourceReferenceOrBuilder.java | 1 + .../java/com/google/api/RoutingParameter.java | 1 + .../google/api/RoutingParameterOrBuilder.java | 1 + .../java/com/google/api/RoutingProto.java | 1 + .../main/java/com/google/api/RoutingRule.java | 1 + .../com/google/api/RoutingRuleOrBuilder.java | 1 + .../java/com/google/api/RubySettings.java | 28 +- .../com/google/api/RubySettingsOrBuilder.java | 1 + .../src/main/java/com/google/api/Service.java | 231 ++++++++----- .../java/com/google/api/ServiceOrBuilder.java | 1 + .../java/com/google/api/ServiceProto.java | 1 + .../main/java/com/google/api/SourceInfo.java | 1 + .../com/google/api/SourceInfoOrBuilder.java | 1 + .../java/com/google/api/SourceInfoProto.java | 1 + .../java/com/google/api/SystemParameter.java | 1 + .../google/api/SystemParameterOrBuilder.java | 1 + .../com/google/api/SystemParameterProto.java | 1 + .../com/google/api/SystemParameterRule.java | 1 + .../api/SystemParameterRuleOrBuilder.java | 1 + .../java/com/google/api/SystemParameters.java | 1 + .../google/api/SystemParametersOrBuilder.java | 1 + .../src/main/java/com/google/api/Usage.java | 1 + .../java/com/google/api/UsageOrBuilder.java | 1 + .../main/java/com/google/api/UsageProto.java | 1 + .../main/java/com/google/api/UsageRule.java | 1 + .../com/google/api/UsageRuleOrBuilder.java | 1 + .../main/java/com/google/api/Visibility.java | 1 + .../com/google/api/VisibilityOrBuilder.java | 1 + .../java/com/google/api/VisibilityProto.java | 1 + .../java/com/google/api/VisibilityRule.java | 1 + .../google/api/VisibilityRuleOrBuilder.java | 1 + .../google/cloud/ExtendedOperationsProto.java | 1 + .../cloud/OperationResponseMapping.java | 1 + .../java/com/google/cloud/audit/AuditLog.java | 155 ++++++--- .../google/cloud/audit/AuditLogOrBuilder.java | 1 + .../com/google/cloud/audit/AuditLogProto.java | 37 ++- .../cloud/audit/AuthenticationInfo.java | 29 +- .../audit/AuthenticationInfoOrBuilder.java | 1 + .../google/cloud/audit/AuthorizationInfo.java | 28 +- .../audit/AuthorizationInfoOrBuilder.java | 1 + .../cloud/audit/OrgPolicyViolationInfo.java | 38 ++- .../OrgPolicyViolationInfoOrBuilder.java | 1 + .../cloud/audit/PolicyViolationInfo.java | 28 +- .../audit/PolicyViolationInfoOrBuilder.java | 1 + .../google/cloud/audit/RequestMetadata.java | 42 ++- .../cloud/audit/RequestMetadataOrBuilder.java | 1 + .../google/cloud/audit/ResourceLocation.java | 1 + .../audit/ResourceLocationOrBuilder.java | 1 + .../audit/ServiceAccountDelegationInfo.java | 55 ++- ...ServiceAccountDelegationInfoOrBuilder.java | 1 + .../com/google/cloud/audit/ViolationInfo.java | 1 + .../cloud/audit/ViolationInfoOrBuilder.java | 1 + .../cloud/location/GetLocationRequest.java | 1 + .../location/GetLocationRequestOrBuilder.java | 1 + .../cloud/location/ListLocationsRequest.java | 1 + .../ListLocationsRequestOrBuilder.java | 1 + .../cloud/location/ListLocationsResponse.java | 1 + .../ListLocationsResponseOrBuilder.java | 1 + .../com/google/cloud/location/Location.java | 37 ++- .../cloud/location/LocationOrBuilder.java | 1 + .../google/cloud/location/LocationsProto.java | 1 + .../java/com/google/geo/type/Viewport.java | 42 ++- .../google/geo/type/ViewportOrBuilder.java | 1 + .../com/google/geo/type/ViewportProto.java | 1 + .../com/google/logging/type/HttpRequest.java | 28 +- .../logging/type/HttpRequestOrBuilder.java | 1 + .../google/logging/type/HttpRequestProto.java | 1 + .../com/google/logging/type/LogSeverity.java | 1 + .../google/logging/type/LogSeverityProto.java | 1 + .../longrunning/CancelOperationRequest.java | 1 + .../CancelOperationRequestOrBuilder.java | 1 + .../longrunning/DeleteOperationRequest.java | 1 + .../DeleteOperationRequestOrBuilder.java | 1 + .../longrunning/GetOperationRequest.java | 1 + .../GetOperationRequestOrBuilder.java | 1 + .../longrunning/ListOperationsRequest.java | 1 + .../ListOperationsRequestOrBuilder.java | 1 + .../longrunning/ListOperationsResponse.java | 1 + .../ListOperationsResponseOrBuilder.java | 1 + .../com/google/longrunning/Operation.java | 28 +- .../com/google/longrunning/OperationInfo.java | 1 + .../longrunning/OperationInfoOrBuilder.java | 1 + .../longrunning/OperationOrBuilder.java | 1 + .../google/longrunning/OperationsProto.java | 1 + .../longrunning/WaitOperationRequest.java | 28 +- .../WaitOperationRequestOrBuilder.java | 1 + .../main/java/com/google/rpc/BadRequest.java | 1 + .../com/google/rpc/BadRequestOrBuilder.java | 1 + .../src/main/java/com/google/rpc/Code.java | 1 + .../main/java/com/google/rpc/CodeProto.java | 1 + .../main/java/com/google/rpc/DebugInfo.java | 1 + .../com/google/rpc/DebugInfoOrBuilder.java | 1 + .../com/google/rpc/ErrorDetailsProto.java | 1 + .../main/java/com/google/rpc/ErrorInfo.java | 10 +- .../com/google/rpc/ErrorInfoOrBuilder.java | 1 + .../src/main/java/com/google/rpc/Help.java | 1 + .../java/com/google/rpc/HelpOrBuilder.java | 1 + .../java/com/google/rpc/LocalizedMessage.java | 1 + .../google/rpc/LocalizedMessageOrBuilder.java | 1 + .../com/google/rpc/PreconditionFailure.java | 1 + .../rpc/PreconditionFailureOrBuilder.java | 1 + .../java/com/google/rpc/QuotaFailure.java | 1 + .../com/google/rpc/QuotaFailureOrBuilder.java | 1 + .../main/java/com/google/rpc/RequestInfo.java | 1 + .../com/google/rpc/RequestInfoOrBuilder.java | 1 + .../java/com/google/rpc/ResourceInfo.java | 1 + .../com/google/rpc/ResourceInfoOrBuilder.java | 1 + .../main/java/com/google/rpc/RetryInfo.java | 28 +- .../com/google/rpc/RetryInfoOrBuilder.java | 1 + .../src/main/java/com/google/rpc/Status.java | 1 + .../java/com/google/rpc/StatusOrBuilder.java | 1 + .../main/java/com/google/rpc/StatusProto.java | 1 + .../google/rpc/context/AttributeContext.java | 313 +++++++++++++----- .../context/AttributeContextOrBuilder.java | 1 + .../rpc/context/AttributeContextProto.java | 1 + .../com/google/rpc/context/AuditContext.java | 42 ++- .../rpc/context/AuditContextOrBuilder.java | 1 + .../google/rpc/context/AuditContextProto.java | 1 + .../java/com/google/type/CalendarPeriod.java | 1 + .../com/google/type/CalendarPeriodProto.java | 1 + .../src/main/java/com/google/type/Color.java | 28 +- .../java/com/google/type/ColorOrBuilder.java | 1 + .../main/java/com/google/type/ColorProto.java | 1 + .../src/main/java/com/google/type/Date.java | 1 + .../java/com/google/type/DateOrBuilder.java | 1 + .../main/java/com/google/type/DateProto.java | 1 + .../main/java/com/google/type/DateTime.java | 1 + .../com/google/type/DateTimeOrBuilder.java | 1 + .../java/com/google/type/DateTimeProto.java | 1 + .../main/java/com/google/type/DayOfWeek.java | 1 + .../java/com/google/type/DayOfWeekProto.java | 1 + .../main/java/com/google/type/Decimal.java | 1 + .../com/google/type/DecimalOrBuilder.java | 1 + .../java/com/google/type/DecimalProto.java | 1 + .../src/main/java/com/google/type/Expr.java | 1 + .../java/com/google/type/ExprOrBuilder.java | 1 + .../main/java/com/google/type/ExprProto.java | 1 + .../main/java/com/google/type/Fraction.java | 1 + .../com/google/type/FractionOrBuilder.java | 1 + .../java/com/google/type/FractionProto.java | 1 + .../main/java/com/google/type/Interval.java | 42 ++- .../com/google/type/IntervalOrBuilder.java | 1 + .../java/com/google/type/IntervalProto.java | 1 + .../src/main/java/com/google/type/LatLng.java | 1 + .../java/com/google/type/LatLngOrBuilder.java | 1 + .../java/com/google/type/LatLngProto.java | 1 + .../java/com/google/type/LocalizedText.java | 1 + .../google/type/LocalizedTextOrBuilder.java | 1 + .../com/google/type/LocalizedTextProto.java | 1 + .../src/main/java/com/google/type/Money.java | 1 + .../java/com/google/type/MoneyOrBuilder.java | 1 + .../main/java/com/google/type/MoneyProto.java | 1 + .../src/main/java/com/google/type/Month.java | 1 + .../main/java/com/google/type/MonthProto.java | 1 + .../java/com/google/type/PhoneNumber.java | 1 + .../com/google/type/PhoneNumberOrBuilder.java | 1 + .../com/google/type/PhoneNumberProto.java | 1 + .../java/com/google/type/PostalAddress.java | 1 + .../google/type/PostalAddressOrBuilder.java | 1 + .../com/google/type/PostalAddressProto.java | 1 + .../main/java/com/google/type/Quaternion.java | 1 + .../com/google/type/QuaternionOrBuilder.java | 1 + .../java/com/google/type/QuaternionProto.java | 1 + .../main/java/com/google/type/TimeOfDay.java | 1 + .../com/google/type/TimeOfDayOrBuilder.java | 1 + .../java/com/google/type/TimeOfDayProto.java | 1 + .../main/java/com/google/type/TimeZone.java | 1 + .../com/google/type/TimeZoneOrBuilder.java | 1 + .../proto/google/api/field_behavior.proto | 2 +- 308 files changed, 1991 insertions(+), 635 deletions(-) diff --git a/java-common-protos/README.md b/java-common-protos/README.md index cfbe54dc39..e518cb2350 100644 --- a/java-common-protos/README.md +++ b/java-common-protos/README.md @@ -1,22 +1,138 @@ -# Google Common Protos +# Google Common Protos Client for Java -Java protobuf classes for Google's common protos. +Java idiomatic client for [Common Protos][product-docs]. [![Maven][maven-version-image]][maven-version-link] ![Stability][stability-image] +- [Product Documentation][product-docs] - [Client Library Documentation][javadocs] -## Java Versions -Java 7 or above is required for using this client. +## Quickstart + + +If you are using Maven, add this to your pom.xml file: + + +```xml + + com.google.api.grpc + proto-google-common-protos + 2.33.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.api.grpc:proto-google-common-protos:2.33.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.api.grpc" % "proto-google-common-protos" % "2.33.0" +``` + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Common Protos APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Common Protos API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the Common Protos [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Common Protos. +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +### Installation and setup + +You'll need to obtain the `proto-google-common-protos` library. See the [Quickstart](#quickstart) section +to add `proto-google-common-protos` as a dependency in your code. + +## About Common Protos + + +[Common Protos][product-docs] Protobuf classes for Google's common protos. + +See the [Common Protos client library docs][javadocs] to learn how to +use this Common Protos Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +Common Protos uses gRPC for the transport layer. + +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. ## Versioning + This library follows [Semantic Versioning](http://semver.org/). + + ## Contributing + Contributions to this library are always welcome and highly encouraged. See [CONTRIBUTING][contributing] for more information how to get started. @@ -25,41 +141,55 @@ Please note that this project is released with a Contributor Code of Conduct. By this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. + ## License Apache 2.0 - See [LICENSE][license] for more information. ## CI Status -| Java Version | Status | -| -------------- | --------------------------------------------------------- | -| Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1] | -| Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] | -| Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] | -| Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] | -| Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] | - -[javadocs]: https://cloud.google.com/java/docs/reference/proto-google-common-protos/latest/overview -[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-common-protos/java7.svg -[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-common-protos/java7.html -[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-common-protos/java8.svg -[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-common-protos/java8.html -[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-common-protos/java8-osx.svg -[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-common-protos/java8-osx.html -[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-common-protos/java8-win.svg -[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-common-protos/java8-win.html -[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-common-protos/java11.svg -[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-common-protos/java11.html -[stability-image]: https://img.shields.io/badge/stability-ga-green +Java Version | Status +------------ | ------ +Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] +Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] +Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] +Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://github.com/googleapis/api-common-protos +[javadocs]: https://cloud.google.com/java/docs/reference/proto-google-common-protos/latest/history +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/sdk-platform-java/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/sdk-platform-java/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/sdk-platform-java/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/sdk-platform-java/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/sdk-platform-java/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/sdk-platform-java/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/sdk-platform-java/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/sdk-platform-java/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/sdk-platform-java/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/sdk-platform-java/java11.html +[stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api.grpc/proto-google-common-protos.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.api.grpc%20AND%20a:proto-google-common-protos&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ [troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting -[contributing]: https://github.com/googleapis/java-common-protos/blob/main/CONTRIBUTING.md -[code-of-conduct]: https://github.com/googleapis/java-common-protos/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-common-protos/blob/main/LICENSE +[contributing]: https://github.com/googleapis/sdk-platform-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/sdk-platform-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/sdk-platform-java/blob/main/LICENSE [enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing + [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java index b6660f50a2..59a7fae191 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Advice.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/config_change.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java index 313e6ff8d9..2a09815610 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AdviceOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/config_change.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface AdviceOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java index fb7f8ed52d..36a6cf219d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AnnotationsProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/annotations.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class AnnotationsProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java index 61f9e9c64d..6e9e869dc7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class AuthProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java index 8e667869e9..187656b135 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProvider.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java index ac0f0426ee..9739f5dcdd 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthProviderOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface AuthProviderOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java index 4a23308b2f..623095e2b6 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirement.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java index 86a8a37c7c..72c6dc8342 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthRequirementOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface AuthRequirementOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java index eecc174580..fcc5f26a96 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Authentication.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java index 148735aae4..4d65b3b0b9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface AuthenticationOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java index adbd6d1c9e..ef744e2d5b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.AuthenticationRule.Builder.class); } + private int bitField0_; public static final int SELECTOR_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -141,7 +143,7 @@ public com.google.protobuf.ByteString getSelectorBytes() { */ @java.lang.Override public boolean hasOauth() { - return oauth_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -279,7 +281,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_); } - if (oauth_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getOauth()); } if (allowWithoutCredential_ != false) { @@ -300,7 +302,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selector_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_); } - if (oauth_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOauth()); } if (allowWithoutCredential_ != false) { @@ -489,10 +491,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.AuthenticationRule.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOauthFieldBuilder(); + getRequirementsFieldBuilder(); + } } @java.lang.Override @@ -563,12 +575,15 @@ private void buildPartial0(com.google.api.AuthenticationRule result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.selector_ = selector_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.oauth_ = oauthBuilder_ == null ? oauth_ : oauthBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.allowWithoutCredential_ = allowWithoutCredential_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -950,8 +965,10 @@ public Builder mergeOauth(com.google.api.OAuthRequirements value) { } else { oauthBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (oauth_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java index fdcffb5e88..186ea4a98a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/AuthenticationRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface AuthenticationRuleOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java index 597e6c6646..96d27f8ed9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Backend.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/backend.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java index 9649071c93..dfd38e7733 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/backend.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface BackendOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java index 3cc5ae6575..9602ca2793 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/backend.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class BackendProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java index 625569117e..e88352689b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/backend.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -56,7 +57,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 10: return internalGetOverridesByRequestProtocol(); @@ -1202,7 +1204,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 10: return internalGetOverridesByRequestProtocol(); @@ -1212,7 +1215,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 10: return internalGetMutableOverridesByRequestProtocol(); @@ -1307,8 +1311,9 @@ private void buildPartial0(com.google.api.BackendRule result) { result.protocol_ = protocol_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.overridesByRequestProtocol_ = internalGetOverridesByRequestProtocol(); - result.overridesByRequestProtocol_.makeImmutable(); + result.overridesByRequestProtocol_ = + internalGetOverridesByRequestProtocol() + .build(OverridesByRequestProtocolDefaultEntryHolder.defaultEntry); } } @@ -1500,7 +1505,7 @@ public Builder mergeFrom( .getParserForType(), extensionRegistry); internalGetMutableOverridesByRequestProtocol() - .getMutableMap() + .ensureBuilderMap() .put( overridesByRequestProtocol__.getKey(), overridesByRequestProtocol__.getValue()); @@ -2530,27 +2535,55 @@ public Builder setProtocolBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField + private static final class OverridesByRequestProtocolConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, com.google.api.BackendRuleOrBuilder, com.google.api.BackendRule> { + @java.lang.Override + public com.google.api.BackendRule build(com.google.api.BackendRuleOrBuilder val) { + if (val instanceof com.google.api.BackendRule) { + return (com.google.api.BackendRule) val; + } + return ((com.google.api.BackendRule.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry + defaultEntry() { + return OverridesByRequestProtocolDefaultEntryHolder.defaultEntry; + } + }; + + private static final OverridesByRequestProtocolConverter overridesByRequestProtocolConverter = + new OverridesByRequestProtocolConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.api.BackendRuleOrBuilder, + com.google.api.BackendRule, + com.google.api.BackendRule.Builder> overridesByRequestProtocol_; - private com.google.protobuf.MapField + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.api.BackendRuleOrBuilder, + com.google.api.BackendRule, + com.google.api.BackendRule.Builder> internalGetOverridesByRequestProtocol() { if (overridesByRequestProtocol_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OverridesByRequestProtocolDefaultEntryHolder.defaultEntry); + return new com.google.protobuf.MapFieldBuilder<>(overridesByRequestProtocolConverter); } return overridesByRequestProtocol_; } - private com.google.protobuf.MapField + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.api.BackendRuleOrBuilder, + com.google.api.BackendRule, + com.google.api.BackendRule.Builder> internalGetMutableOverridesByRequestProtocol() { if (overridesByRequestProtocol_ == null) { overridesByRequestProtocol_ = - com.google.protobuf.MapField.newMapField( - OverridesByRequestProtocolDefaultEntryHolder.defaultEntry); - } - if (!overridesByRequestProtocol_.isMutable()) { - overridesByRequestProtocol_ = overridesByRequestProtocol_.copy(); + new com.google.protobuf.MapFieldBuilder<>(overridesByRequestProtocolConverter); } bitField0_ |= 0x00000200; onChanged(); @@ -2558,7 +2591,7 @@ public Builder setProtocolBytes(com.google.protobuf.ByteString value) { } public int getOverridesByRequestProtocolCount() { - return internalGetOverridesByRequestProtocol().getMap().size(); + return internalGetOverridesByRequestProtocol().ensureBuilderMap().size(); } /** * @@ -2574,7 +2607,7 @@ public boolean containsOverridesByRequestProtocol(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - return internalGetOverridesByRequestProtocol().getMap().containsKey(key); + return internalGetOverridesByRequestProtocol().ensureBuilderMap().containsKey(key); } /** Use {@link #getOverridesByRequestProtocolMap()} instead. */ @java.lang.Override @@ -2595,7 +2628,7 @@ public boolean containsOverridesByRequestProtocol(java.lang.String key) { @java.lang.Override public java.util.Map getOverridesByRequestProtocolMap() { - return internalGetOverridesByRequestProtocol().getMap(); + return internalGetOverridesByRequestProtocol().getImmutableMap(); } /** * @@ -2614,9 +2647,11 @@ public boolean containsOverridesByRequestProtocol(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetOverridesByRequestProtocol().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + java.util.Map map = + internalGetMutableOverridesByRequestProtocol().ensureBuilderMap(); + return map.containsKey(key) + ? overridesByRequestProtocolConverter.build(map.get(key)) + : defaultValue; } /** * @@ -2632,17 +2667,17 @@ public com.google.api.BackendRule getOverridesByRequestProtocolOrThrow(java.lang if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetOverridesByRequestProtocol().getMap(); + java.util.Map map = + internalGetMutableOverridesByRequestProtocol().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } - return map.get(key); + return overridesByRequestProtocolConverter.build(map.get(key)); } public Builder clearOverridesByRequestProtocol() { bitField0_ = (bitField0_ & ~0x00000200); - internalGetMutableOverridesByRequestProtocol().getMutableMap().clear(); + internalGetMutableOverridesByRequestProtocol().clear(); return this; } /** @@ -2658,7 +2693,7 @@ public Builder removeOverridesByRequestProtocol(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableOverridesByRequestProtocol().getMutableMap().remove(key); + internalGetMutableOverridesByRequestProtocol().ensureBuilderMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @@ -2666,7 +2701,7 @@ public Builder removeOverridesByRequestProtocol(java.lang.String key) { public java.util.Map getMutableOverridesByRequestProtocol() { bitField0_ |= 0x00000200; - return internalGetMutableOverridesByRequestProtocol().getMutableMap(); + return internalGetMutableOverridesByRequestProtocol().ensureMessageMap(); } /** * @@ -2685,7 +2720,7 @@ public Builder putOverridesByRequestProtocol( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableOverridesByRequestProtocol().getMutableMap().put(key, value); + internalGetMutableOverridesByRequestProtocol().ensureBuilderMap().put(key, value); bitField0_ |= 0x00000200; return this; } @@ -2700,10 +2735,40 @@ public Builder putOverridesByRequestProtocol( */ public Builder putAllOverridesByRequestProtocol( java.util.Map values) { - internalGetMutableOverridesByRequestProtocol().getMutableMap().putAll(values); + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableOverridesByRequestProtocol().ensureBuilderMap().putAll(values); bitField0_ |= 0x00000200; return this; } + /** + * + * + *
+     * The map between request protocol and the backend address.
+     * 
+ * + * map<string, .google.api.BackendRule> overrides_by_request_protocol = 10; + */ + public com.google.api.BackendRule.Builder putOverridesByRequestProtocolBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = + internalGetMutableOverridesByRequestProtocol().ensureBuilderMap(); + com.google.api.BackendRuleOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.api.BackendRule.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.api.BackendRule) { + entry = ((com.google.api.BackendRule) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.api.BackendRule.Builder) entry; + } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java index e1cc5b2630..25e7e607bc 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/backend.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface BackendRuleOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java index b349f9bde7..4fd7b6ecde 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Billing.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/billing.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingOrBuilder.java index 2828912e18..c2b44d723a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/billing.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface BillingOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java index b03896654d..bf70067752 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/BillingProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/billing.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class BillingProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ChangeType.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ChangeType.java index e8342671d3..9c1db3263e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ChangeType.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ChangeType.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/config_change.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryDestination.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryDestination.java index 77b7122ab1..7c4105aad8 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryDestination.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryDestination.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryOrganization.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryOrganization.java index 0294768338..15d0c386b1 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryOrganization.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibraryOrganization.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java index d2a4d3105a..79978fd73a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.ClientLibrarySettings.Builder.class); } + private int bitField0_; public static final int VERSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -185,7 +187,7 @@ public boolean getRestNumericEnums() { */ @java.lang.Override public boolean hasJavaSettings() { - return javaSettings_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -231,7 +233,7 @@ public com.google.api.JavaSettingsOrBuilder getJavaSettingsOrBuilder() { */ @java.lang.Override public boolean hasCppSettings() { - return cppSettings_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -277,7 +279,7 @@ public com.google.api.CppSettingsOrBuilder getCppSettingsOrBuilder() { */ @java.lang.Override public boolean hasPhpSettings() { - return phpSettings_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -323,7 +325,7 @@ public com.google.api.PhpSettingsOrBuilder getPhpSettingsOrBuilder() { */ @java.lang.Override public boolean hasPythonSettings() { - return pythonSettings_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -373,7 +375,7 @@ public com.google.api.PythonSettingsOrBuilder getPythonSettingsOrBuilder() { */ @java.lang.Override public boolean hasNodeSettings() { - return nodeSettings_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -419,7 +421,7 @@ public com.google.api.NodeSettingsOrBuilder getNodeSettingsOrBuilder() { */ @java.lang.Override public boolean hasDotnetSettings() { - return dotnetSettings_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -469,7 +471,7 @@ public com.google.api.DotnetSettingsOrBuilder getDotnetSettingsOrBuilder() { */ @java.lang.Override public boolean hasRubySettings() { - return rubySettings_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -515,7 +517,7 @@ public com.google.api.RubySettingsOrBuilder getRubySettingsOrBuilder() { */ @java.lang.Override public boolean hasGoSettings() { - return goSettings_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -569,28 +571,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (restNumericEnums_ != false) { output.writeBool(3, restNumericEnums_); } - if (javaSettings_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(21, getJavaSettings()); } - if (cppSettings_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(22, getCppSettings()); } - if (phpSettings_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(23, getPhpSettings()); } - if (pythonSettings_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(24, getPythonSettings()); } - if (nodeSettings_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(25, getNodeSettings()); } - if (dotnetSettings_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(26, getDotnetSettings()); } - if (rubySettings_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(27, getRubySettings()); } - if (goSettings_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(28, getGoSettings()); } getUnknownFields().writeTo(output); @@ -611,28 +613,28 @@ public int getSerializedSize() { if (restNumericEnums_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, restNumericEnums_); } - if (javaSettings_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getJavaSettings()); } - if (cppSettings_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getCppSettings()); } - if (phpSettings_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getPhpSettings()); } - if (pythonSettings_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getPythonSettings()); } - if (nodeSettings_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getNodeSettings()); } - if (dotnetSettings_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getDotnetSettings()); } - if (rubySettings_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getRubySettings()); } - if (goSettings_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getGoSettings()); } size += getUnknownFields().getSerializedSize(); @@ -861,10 +863,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.ClientLibrarySettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getJavaSettingsFieldBuilder(); + getCppSettingsFieldBuilder(); + getPhpSettingsFieldBuilder(); + getPythonSettingsFieldBuilder(); + getNodeSettingsFieldBuilder(); + getDotnetSettingsFieldBuilder(); + getRubySettingsFieldBuilder(); + getGoSettingsFieldBuilder(); + } } @java.lang.Override @@ -957,37 +975,47 @@ private void buildPartial0(com.google.api.ClientLibrarySettings result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.restNumericEnums_ = restNumericEnums_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.javaSettings_ = javaSettingsBuilder_ == null ? javaSettings_ : javaSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.cppSettings_ = cppSettingsBuilder_ == null ? cppSettings_ : cppSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.phpSettings_ = phpSettingsBuilder_ == null ? phpSettings_ : phpSettingsBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.pythonSettings_ = pythonSettingsBuilder_ == null ? pythonSettings_ : pythonSettingsBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { result.nodeSettings_ = nodeSettingsBuilder_ == null ? nodeSettings_ : nodeSettingsBuilder_.build(); + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000100) != 0)) { result.dotnetSettings_ = dotnetSettingsBuilder_ == null ? dotnetSettings_ : dotnetSettingsBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000200) != 0)) { result.rubySettings_ = rubySettingsBuilder_ == null ? rubySettings_ : rubySettingsBuilder_.build(); + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000400) != 0)) { result.goSettings_ = goSettingsBuilder_ == null ? goSettings_ : goSettingsBuilder_.build(); + to_bitField0_ |= 0x00000080; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1544,8 +1572,10 @@ public Builder mergeJavaSettings(com.google.api.JavaSettings value) { } else { javaSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (javaSettings_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1727,8 +1757,10 @@ public Builder mergeCppSettings(com.google.api.CppSettings value) { } else { cppSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (cppSettings_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -1910,8 +1942,10 @@ public Builder mergePhpSettings(com.google.api.PhpSettings value) { } else { phpSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (phpSettings_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** @@ -2093,8 +2127,10 @@ public Builder mergePythonSettings(com.google.api.PythonSettings value) { } else { pythonSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (pythonSettings_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** @@ -2276,8 +2312,10 @@ public Builder mergeNodeSettings(com.google.api.NodeSettings value) { } else { nodeSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (nodeSettings_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -2459,8 +2497,10 @@ public Builder mergeDotnetSettings(com.google.api.DotnetSettings value) { } else { dotnetSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (dotnetSettings_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** @@ -2642,8 +2682,10 @@ public Builder mergeRubySettings(com.google.api.RubySettings value) { } else { rubySettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; - onChanged(); + if (rubySettings_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** @@ -2823,8 +2865,10 @@ public Builder mergeGoSettings(com.google.api.GoSettings value) { } else { goSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000400; - onChanged(); + if (goSettings_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettingsOrBuilder.java index e44a81fa71..905ac6a8f6 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientLibrarySettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface ClientLibrarySettingsOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java index 8c8f14f0e7..892ea5e27a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ClientProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class ClientProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java index 03c8121546..efed26fbe1 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettingsOrBuilder.java index 1dbffe6651..1760875411 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CommonLanguageSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface CommonLanguageSettingsOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java index df71d42187..4a311b4346 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChange.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/config_change.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeOrBuilder.java index 3d2f557da0..780d30255c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/config_change.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface ConfigChangeOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeProto.java index d9573bcdfd..8d837e5b61 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConfigChangeProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/config_change.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class ConfigChangeProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConsumerProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConsumerProto.java index 474e18306c..2a18cec66b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConsumerProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ConsumerProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/consumer.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class ConsumerProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java index 3350e8f149..e2c0d2bfb5 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Context.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/context.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java index 8a776db816..4c6b7fcdd3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/context.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface ContextOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextProto.java index c06990e8c2..69246ba875 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/context.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class ContextProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java index d9386c71e0..077d169a8f 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/context.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRuleOrBuilder.java index e45c5edf07..4a9adc9d93 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ContextRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/context.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface ContextRuleOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java index f5522a01b7..d48d753e22 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Control.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/control.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java index 0cf9413df8..4cac4ebfe8 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/control.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface ControlOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlProto.java index 47802a784d..95d9730a82 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ControlProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/control.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class ControlProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java index 2c7c14d208..13395b87c6 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -57,6 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.CppSettings.class, com.google.api.CppSettings.Builder.class); } + private int bitField0_; public static final int COMMON_FIELD_NUMBER = 1; private com.google.api.CommonLanguageSettings common_; /** @@ -72,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasCommon() { - return common_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -117,7 +119,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommon()); } getUnknownFields().writeTo(output); @@ -129,7 +131,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); } size += getUnknownFields().getSerializedSize(); @@ -291,10 +293,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.CppSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommonFieldBuilder(); + } } @java.lang.Override @@ -340,9 +351,12 @@ public com.google.api.CppSettings buildPartial() { private void buildPartial0(com.google.api.CppSettings result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -546,8 +560,10 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) { } else { commonBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (common_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettingsOrBuilder.java index f10fd5458c..78ddf71039 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CppSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface CppSettingsOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java index 8b1b07a164..309b04fe5e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPattern.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/http.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPatternOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPatternOrBuilder.java index e33130b009..3a779b7453 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPatternOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/CustomHttpPatternOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/http.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface CustomHttpPatternOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java index 15b4718339..c9487c23b6 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Distribution.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/distribution.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -2544,7 +2545,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int BOUNDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.Internal.DoubleList bounds_; + private com.google.protobuf.Internal.DoubleList bounds_ = emptyDoubleList(); /** * * @@ -2845,7 +2846,6 @@ public com.google.api.Distribution.BucketOptions.Explicit build() { public com.google.api.Distribution.BucketOptions.Explicit buildPartial() { com.google.api.Distribution.BucketOptions.Explicit result = new com.google.api.Distribution.BucketOptions.Explicit(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -2853,17 +2853,12 @@ public com.google.api.Distribution.BucketOptions.Explicit buildPartial() { return result; } - private void buildPartialRepeatedFields( - com.google.api.Distribution.BucketOptions.Explicit result) { - if (((bitField0_ & 0x00000001) != 0)) { - bounds_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.bounds_ = bounds_; - } - private void buildPartial0(com.google.api.Distribution.BucketOptions.Explicit result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + bounds_.makeImmutable(); + result.bounds_ = bounds_; + } } @java.lang.Override @@ -2917,7 +2912,8 @@ public Builder mergeFrom(com.google.api.Distribution.BucketOptions.Explicit othe if (!other.bounds_.isEmpty()) { if (bounds_.isEmpty()) { bounds_ = other.bounds_; - bitField0_ = (bitField0_ & ~0x00000001); + bounds_.makeImmutable(); + bitField0_ |= 0x00000001; } else { ensureBoundsIsMutable(); bounds_.addAll(other.bounds_); @@ -2961,7 +2957,8 @@ public Builder mergeFrom( { int length = input.readRawVarint32(); int limit = input.pushLimit(length); - ensureBoundsIsMutable(); + int alloc = length > 4096 ? 4096 : length; + ensureBoundsIsMutable(alloc / 8); while (input.getBytesUntilLimit() > 0) { bounds_.addDouble(input.readDouble()); } @@ -2990,10 +2987,17 @@ public Builder mergeFrom( private com.google.protobuf.Internal.DoubleList bounds_ = emptyDoubleList(); private void ensureBoundsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - bounds_ = mutableCopy(bounds_); - bitField0_ |= 0x00000001; + if (!bounds_.isModifiable()) { + bounds_ = makeMutableCopy(bounds_); + } + bitField0_ |= 0x00000001; + } + + private void ensureBoundsIsMutable(int capacity) { + if (!bounds_.isModifiable()) { + bounds_ = makeMutableCopy(bounds_, capacity); } + bitField0_ |= 0x00000001; } /** * @@ -3007,9 +3011,8 @@ private void ensureBoundsIsMutable() { * @return A list containing the bounds. */ public java.util.List getBoundsList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(bounds_) - : bounds_; + bounds_.makeImmutable(); + return bounds_; } /** * @@ -3057,6 +3060,7 @@ public Builder setBounds(int index, double value) { ensureBoundsIsMutable(); bounds_.setDouble(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3076,6 +3080,7 @@ public Builder addBounds(double value) { ensureBoundsIsMutable(); bounds_.addDouble(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3094,6 +3099,7 @@ public Builder addBounds(double value) { public Builder addAllBounds(java.lang.Iterable values) { ensureBoundsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bounds_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4760,6 +4766,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.Distribution.Exemplar.Builder.class); } + private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private double value_ = 0D; /** @@ -4794,7 +4801,7 @@ public double getValue() { */ @java.lang.Override public boolean hasTimestamp() { - return timestamp_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -4963,7 +4970,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Double.doubleToRawLongBits(value_) != 0) { output.writeDouble(1, value_); } - if (timestamp_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTimestamp()); } for (int i = 0; i < attachments_.size(); i++) { @@ -4981,7 +4988,7 @@ public int getSerializedSize() { if (java.lang.Double.doubleToRawLongBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, value_); } - if (timestamp_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimestamp()); } for (int i = 0; i < attachments_.size(); i++) { @@ -5168,10 +5175,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.Distribution.Exemplar.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTimestampFieldBuilder(); + getAttachmentsFieldBuilder(); + } } @java.lang.Override @@ -5243,9 +5260,12 @@ private void buildPartial0(com.google.api.Distribution.Exemplar result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.value_ = value_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -5555,8 +5575,10 @@ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { } else { timestampBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (timestamp_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -6229,6 +6251,7 @@ public com.google.api.Distribution.Exemplar getDefaultInstanceForType() { } } + private int bitField0_; public static final int COUNT_FIELD_NUMBER = 1; private long count_ = 0L; /** @@ -6310,7 +6333,7 @@ public double getSumOfSquaredDeviation() { */ @java.lang.Override public boolean hasRange() { - return range_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -6359,7 +6382,7 @@ public com.google.api.Distribution.RangeOrBuilder getRangeOrBuilder() { */ @java.lang.Override public boolean hasBucketOptions() { - return bucketOptions_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -6399,7 +6422,7 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil public static final int BUCKET_COUNTS_FIELD_NUMBER = 7; @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList bucketCounts_; + private com.google.protobuf.Internal.LongList bucketCounts_ = emptyLongList(); /** * * @@ -6584,10 +6607,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Double.doubleToRawLongBits(sumOfSquaredDeviation_) != 0) { output.writeDouble(3, sumOfSquaredDeviation_); } - if (range_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getRange()); } - if (bucketOptions_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getBucketOptions()); } if (getBucketCountsList().size() > 0) { @@ -6618,10 +6641,10 @@ public int getSerializedSize() { if (java.lang.Double.doubleToRawLongBits(sumOfSquaredDeviation_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, sumOfSquaredDeviation_); } - if (range_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRange()); } - if (bucketOptions_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBucketOptions()); } { @@ -6847,10 +6870,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.Distribution.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRangeFieldBuilder(); + getBucketOptionsFieldBuilder(); + getExemplarsFieldBuilder(); + } } @java.lang.Override @@ -6912,11 +6946,6 @@ public com.google.api.Distribution buildPartial() { } private void buildPartialRepeatedFields(com.google.api.Distribution result) { - if (((bitField0_ & 0x00000020) != 0)) { - bucketCounts_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.bucketCounts_ = bucketCounts_; if (exemplarsBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { exemplars_ = java.util.Collections.unmodifiableList(exemplars_); @@ -6939,13 +6968,21 @@ private void buildPartial0(com.google.api.Distribution result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.sumOfSquaredDeviation_ = sumOfSquaredDeviation_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.range_ = rangeBuilder_ == null ? range_ : rangeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.bucketOptions_ = bucketOptionsBuilder_ == null ? bucketOptions_ : bucketOptionsBuilder_.build(); + to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000020) != 0)) { + bucketCounts_.makeImmutable(); + result.bucketCounts_ = bucketCounts_; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -7011,7 +7048,8 @@ public Builder mergeFrom(com.google.api.Distribution other) { if (!other.bucketCounts_.isEmpty()) { if (bucketCounts_.isEmpty()) { bucketCounts_ = other.bucketCounts_; - bitField0_ = (bitField0_ & ~0x00000020); + bucketCounts_.makeImmutable(); + bitField0_ |= 0x00000020; } else { ensureBucketCountsIsMutable(); bucketCounts_.addAll(other.bucketCounts_); @@ -7448,8 +7486,10 @@ public Builder mergeRange(com.google.api.Distribution.Range value) { } else { rangeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (range_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -7639,8 +7679,10 @@ public Builder mergeBucketOptions(com.google.api.Distribution.BucketOptions valu } else { bucketOptionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (bucketOptions_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -7727,10 +7769,10 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil private com.google.protobuf.Internal.LongList bucketCounts_ = emptyLongList(); private void ensureBucketCountsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - bucketCounts_ = mutableCopy(bucketCounts_); - bitField0_ |= 0x00000020; + if (!bucketCounts_.isModifiable()) { + bucketCounts_ = makeMutableCopy(bucketCounts_); } + bitField0_ |= 0x00000020; } /** * @@ -7758,9 +7800,8 @@ private void ensureBucketCountsIsMutable() { * @return A list containing the bucketCounts. */ public java.util.List getBucketCountsList() { - return ((bitField0_ & 0x00000020) != 0) - ? java.util.Collections.unmodifiableList(bucketCounts_) - : bucketCounts_; + bucketCounts_.makeImmutable(); + return bucketCounts_; } /** * @@ -7850,6 +7891,7 @@ public Builder setBucketCounts(int index, long value) { ensureBucketCountsIsMutable(); bucketCounts_.setLong(index, value); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7883,6 +7925,7 @@ public Builder addBucketCounts(long value) { ensureBucketCountsIsMutable(); bucketCounts_.addLong(value); + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7915,6 +7958,7 @@ public Builder addBucketCounts(long value) { public Builder addAllBucketCounts(java.lang.Iterable values) { ensureBucketCountsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bucketCounts_); + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java index 1b6d60c622..89f4af4755 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/distribution.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface DistributionOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionProto.java index 3237218949..eb1821def7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DistributionProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/distribution.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class DistributionProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java index 523c13c027..16b510bbde 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Documentation.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/documentation.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java index b8dbbb9cb6..99c65088cd 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/documentation.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface DocumentationOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java index e15d06447c..0247dd7fb9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/documentation.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class DocumentationProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java index 6a974936ab..35437e5c00 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/documentation.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRuleOrBuilder.java index 29fae9e03c..28e1c71212 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DocumentationRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/documentation.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface DocumentationRuleOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java index 88b15fd8ec..68af8f13fd 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -55,7 +56,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetRenamedServices(); @@ -74,6 +76,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.api.DotnetSettings.class, com.google.api.DotnetSettings.Builder.class); } + private int bitField0_; public static final int COMMON_FIELD_NUMBER = 1; private com.google.api.CommonLanguageSettings common_; /** @@ -89,7 +92,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { */ @java.lang.Override public boolean hasCommon() { - return common_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -594,7 +597,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommon()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -621,7 +624,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); } for (java.util.Map.Entry entry : @@ -845,7 +848,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetRenamedServices(); @@ -857,7 +861,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableRenamedServices(); @@ -877,10 +882,19 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.api.DotnetSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommonFieldBuilder(); + } } @java.lang.Override @@ -931,8 +945,10 @@ public com.google.api.DotnetSettings buildPartial() { private void buildPartial0(com.google.api.DotnetSettings result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.renamedServices_ = internalGetRenamedServices(); @@ -954,6 +970,7 @@ private void buildPartial0(com.google.api.DotnetSettings result) { handwrittenSignatures_.makeImmutable(); result.handwrittenSignatures_ = handwrittenSignatures_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1237,8 +1254,10 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) { } else { commonBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (common_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettingsOrBuilder.java index 39f1b7133d..a94b019a76 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/DotnetSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface DotnetSettingsOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java index f68556c597..d646bd5f94 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Endpoint.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/endpoint.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java index 0eb9aa6dc4..e851d25caf 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/endpoint.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface EndpointOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java index 196f1b64f6..6421e0a5cf 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/EndpointProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/endpoint.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class EndpointProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java index a848229cfb..ff8d334d6b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReason.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/error_reason.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReasonProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReasonProto.java index 6642221913..6df5def6d9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReasonProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ErrorReasonProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/error_reason.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class ErrorReasonProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java index 239d98d180..ec16bbd5df 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehavior.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/field_behavior.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java index 5305eb275b..e8b5275299 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldBehaviorProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/field_behavior.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class FieldBehaviorProto { @@ -71,12 +72,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ECIFIED\020\000\022\014\n\010OPTIONAL\020\001\022\014\n\010REQUIRED\020\002\022\017\n" + "\013OUTPUT_ONLY\020\003\022\016\n\nINPUT_ONLY\020\004\022\r\n\tIMMUTA" + "BLE\020\005\022\022\n\016UNORDERED_LIST\020\006\022\025\n\021NON_EMPTY_D" - + "EFAULT\020\007\022\016\n\nIDENTIFIER\020\010:Q\n\016field_behavi" + + "EFAULT\020\007\022\016\n\nIDENTIFIER\020\010:U\n\016field_behavi" + "or\022\035.google.protobuf.FieldOptions\030\234\010 \003(\016" - + "2\031.google.api.FieldBehaviorBp\n\016com.googl" - + "e.apiB\022FieldBehaviorProtoP\001ZAgoogle.gola" - + "ng.org/genproto/googleapis/api/annotatio" - + "ns;annotations\242\002\004GAPIb\006proto3" + + "2\031.google.api.FieldBehaviorB\002\020\000Bp\n\016com.g" + + "oogle.apiB\022FieldBehaviorProtoP\001ZAgoogle." + + "golang.org/genproto/googleapis/api/annot" + + "ations;annotations\242\002\004GAPIb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfo.java index e2ccfd2008..9ef1359378 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/field_info.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoOrBuilder.java index f736d260b0..69bd09645b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/field_info.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface FieldInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoProto.java index 08f6abd13b..56e6dfbfea 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldInfoProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/field_info.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class FieldInfoProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicy.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicy.java index bed8a148ea..e96d01ba56 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicy.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicyOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicyOrBuilder.java index beadd43b06..b8e3a047fa 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicyOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/FieldPolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface FieldPolicyOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java index 3ec52d7c49..192b31f537 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -57,6 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.GoSettings.class, com.google.api.GoSettings.Builder.class); } + private int bitField0_; public static final int COMMON_FIELD_NUMBER = 1; private com.google.api.CommonLanguageSettings common_; /** @@ -72,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasCommon() { - return common_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -117,7 +119,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommon()); } getUnknownFields().writeTo(output); @@ -129,7 +131,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); } size += getUnknownFields().getSerializedSize(); @@ -291,10 +293,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.GoSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommonFieldBuilder(); + } } @java.lang.Override @@ -340,9 +351,12 @@ public com.google.api.GoSettings buildPartial() { private void buildPartial0(com.google.api.GoSettings result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -546,8 +560,10 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) { } else { commonBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (common_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettingsOrBuilder.java index b5a41ca0d9..06500efa61 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/GoSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface GoSettingsOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java index a64c315ab4..cc0307b134 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Http.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/http.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java index 049302bcfc..e78be329a0 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBody.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/httpbody.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyOrBuilder.java index c1749af4f1..187a17d5d3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/httpbody.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface HttpBodyOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyProto.java index b136b6924b..a02235f0dd 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpBodyProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/httpbody.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class HttpBodyProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java index 2ddb68e8e0..aaa96a9fa4 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/http.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface HttpOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpProto.java index 02dfa316be..0c09c4ab11 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/http.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class HttpProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java index 1efbb92ca5..fa9977c4a2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/http.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java index 56b7fa79c9..1ce5f0a6ca 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/http.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface HttpRuleOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java index b30a9656b8..07ae250d7a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -53,7 +54,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetServiceClassNames(); @@ -70,6 +72,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.api.JavaSettings.class, com.google.api.JavaSettings.Builder.class); } + private int bitField0_; public static final int LIBRARY_PACKAGE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -312,7 +315,7 @@ public java.lang.String getServiceClassNamesOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasCommon() { - return common_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -365,7 +368,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io internalGetServiceClassNames(), ServiceClassNamesDefaultEntryHolder.defaultEntry, 2); - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getCommon()); } getUnknownFields().writeTo(output); @@ -390,7 +393,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, serviceClassNames__); } - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCommon()); } size += getUnknownFields().getSerializedSize(); @@ -552,7 +555,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetServiceClassNames(); @@ -562,7 +566,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableServiceClassNames(); @@ -580,10 +585,19 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.api.JavaSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommonFieldBuilder(); + } } @java.lang.Override @@ -638,9 +652,12 @@ private void buildPartial0(com.google.api.JavaSettings result) { result.serviceClassNames_ = internalGetServiceClassNames(); result.serviceClassNames_.makeImmutable(); } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1287,8 +1304,10 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) { } else { commonBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (common_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java index 72a860c07e..ae3a9dc83a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JavaSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface JavaSettingsOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java index bfbcb69bfe..619c1fcf49 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java index cd6fff9f5b..b1582318fd 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface JwtLocationOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java index 66324c3b4c..62ba75dc34 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptor.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/label.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptorOrBuilder.java index dbfe91154e..618b51b519 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptorOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelDescriptorOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/label.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface LabelDescriptorOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelProto.java index 4a32bc4b8a..501e04cb7a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LabelProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/label.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class LabelProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStage.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStage.java index c0c42e10d0..4aa670ab0c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStage.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStage.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/launch_stage.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java index acc85f9403..f8ecefea85 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LaunchStageProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/launch_stage.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class LaunchStageProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java index a9ea01924a..ba3e381d2a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptor.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/log.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptorOrBuilder.java index 6a08375afd..d7df3fe64c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptorOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogDescriptorOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/log.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface LogDescriptorOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogProto.java index 2aaad09035..ccdc467e7c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LogProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/log.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class LogProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java index 37727149ad..9b2d95164d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Logging.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/logging.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingOrBuilder.java index af4857ba22..f7edc99175 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/logging.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface LoggingOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingProto.java index 43c8d73225..2502ad8a79 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/LoggingProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/logging.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class LoggingProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicy.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicy.java index c9aacf3b7a..c768094a0b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicy.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicyOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicyOrBuilder.java index f417591bea..b0351688c1 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicyOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodPolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface MethodPolicyOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java index 226b7d9264..34b177eaf7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -240,6 +241,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.MethodSettings.LongRunning.Builder.class); } + private int bitField0_; public static final int INITIAL_POLL_DELAY_FIELD_NUMBER = 1; private com.google.protobuf.Duration initialPollDelay_; /** @@ -256,7 +258,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasInitialPollDelay() { - return initialPollDelay_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -329,7 +331,7 @@ public float getPollDelayMultiplier() { */ @java.lang.Override public boolean hasMaxPollDelay() { - return maxPollDelay_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -382,7 +384,7 @@ public com.google.protobuf.DurationOrBuilder getMaxPollDelayOrBuilder() { */ @java.lang.Override public boolean hasTotalPollTimeout() { - return totalPollTimeout_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -433,16 +435,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (initialPollDelay_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInitialPollDelay()); } if (java.lang.Float.floatToRawIntBits(pollDelayMultiplier_) != 0) { output.writeFloat(2, pollDelayMultiplier_); } - if (maxPollDelay_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getMaxPollDelay()); } - if (totalPollTimeout_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getTotalPollTimeout()); } getUnknownFields().writeTo(output); @@ -454,16 +456,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (initialPollDelay_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInitialPollDelay()); } if (java.lang.Float.floatToRawIntBits(pollDelayMultiplier_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, pollDelayMultiplier_); } - if (maxPollDelay_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMaxPollDelay()); } - if (totalPollTimeout_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTotalPollTimeout()); } size += getUnknownFields().getSerializedSize(); @@ -656,10 +658,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.MethodSettings.LongRunning.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInitialPollDelayFieldBuilder(); + getMaxPollDelayFieldBuilder(); + getTotalPollTimeoutFieldBuilder(); + } } @java.lang.Override @@ -718,11 +731,13 @@ public com.google.api.MethodSettings.LongRunning buildPartial() { private void buildPartial0(com.google.api.MethodSettings.LongRunning result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.initialPollDelay_ = initialPollDelayBuilder_ == null ? initialPollDelay_ : initialPollDelayBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.pollDelayMultiplier_ = pollDelayMultiplier_; @@ -730,13 +745,16 @@ private void buildPartial0(com.google.api.MethodSettings.LongRunning result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.maxPollDelay_ = maxPollDelayBuilder_ == null ? maxPollDelay_ : maxPollDelayBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.totalPollTimeout_ = totalPollTimeoutBuilder_ == null ? totalPollTimeout_ : totalPollTimeoutBuilder_.build(); + to_bitField0_ |= 0x00000004; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -976,8 +994,10 @@ public Builder mergeInitialPollDelay(com.google.protobuf.Duration value) { } else { initialPollDelayBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (initialPollDelay_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -1227,8 +1247,10 @@ public Builder mergeMaxPollDelay(com.google.protobuf.Duration value) { } else { maxPollDelayBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (maxPollDelay_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1419,8 +1441,10 @@ public Builder mergeTotalPollTimeout(com.google.protobuf.Duration value) { } else { totalPollTimeoutBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (totalPollTimeout_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1568,6 +1592,7 @@ public com.google.api.MethodSettings.LongRunning getDefaultInstanceForType() { } } + private int bitField0_; public static final int SELECTOR_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1652,7 +1677,7 @@ public com.google.protobuf.ByteString getSelectorBytes() { */ @java.lang.Override public boolean hasLongRunning() { - return longRunning_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1840,7 +1865,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_); } - if (longRunning_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getLongRunning()); } for (int i = 0; i < autoPopulatedFields_.size(); i++) { @@ -1858,7 +1883,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selector_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_); } - if (longRunning_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLongRunning()); } { @@ -2036,10 +2061,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.MethodSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLongRunningFieldBuilder(); + } } @java.lang.Override @@ -2090,14 +2124,17 @@ private void buildPartial0(com.google.api.MethodSettings result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.selector_ = selector_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.longRunning_ = longRunningBuilder_ == null ? longRunning_ : longRunningBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { autoPopulatedFields_.makeImmutable(); result.autoPopulatedFields_ = autoPopulatedFields_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2521,8 +2558,10 @@ public Builder mergeLongRunning(com.google.api.MethodSettings.LongRunning value) } else { longRunningBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (longRunning_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java index f939599c7f..08df2b14cc 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MethodSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface MethodSettingsOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java index 25950526e9..1622fa7c79 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Metric.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/metric.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -54,7 +55,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -424,7 +426,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -434,7 +437,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableLabels(); diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java index 644c652c74..a296534985 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptor.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/metric.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -677,6 +678,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.MetricDescriptor.MetricDescriptorMetadata.Builder.class); } + private int bitField0_; public static final int LAUNCH_STAGE_FIELD_NUMBER = 1; private int launchStage_ = 0; /** @@ -739,7 +741,7 @@ public com.google.api.LaunchStage getLaunchStage() { */ @java.lang.Override public boolean hasSamplePeriod() { - return samplePeriod_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -797,7 +799,7 @@ public com.google.protobuf.DurationOrBuilder getSamplePeriodOrBuilder() { */ @java.lang.Override public boolean hasIngestDelay() { - return ingestDelay_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -853,10 +855,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { output.writeEnum(1, launchStage_); } - if (samplePeriod_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSamplePeriod()); } - if (ingestDelay_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getIngestDelay()); } getUnknownFields().writeTo(output); @@ -871,10 +873,10 @@ public int getSerializedSize() { if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, launchStage_); } - if (samplePeriod_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSamplePeriod()); } - if (ingestDelay_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIngestDelay()); } size += getUnknownFields().getSerializedSize(); @@ -1055,10 +1057,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.MetricDescriptor.MetricDescriptorMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSamplePeriodFieldBuilder(); + getIngestDelayFieldBuilder(); + } } @java.lang.Override @@ -1115,14 +1127,18 @@ private void buildPartial0(com.google.api.MetricDescriptor.MetricDescriptorMetad if (((from_bitField0_ & 0x00000001) != 0)) { result.launchStage_ = launchStage_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.samplePeriod_ = samplePeriodBuilder_ == null ? samplePeriod_ : samplePeriodBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.ingestDelay_ = ingestDelayBuilder_ == null ? ingestDelay_ : ingestDelayBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1476,8 +1492,10 @@ public Builder mergeSamplePeriod(com.google.protobuf.Duration value) { } else { samplePeriodBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (samplePeriod_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1681,8 +1699,10 @@ public Builder mergeIngestDelay(com.google.protobuf.Duration value) { } else { ingestDelayBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (ingestDelay_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -1834,6 +1854,7 @@ public com.google.api.MetricDescriptor.MetricDescriptorMetadata getDefaultInstan } } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -2496,7 +2517,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { */ @java.lang.Override public boolean hasMetadata() { - return metadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2689,7 +2710,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, type_); } - if (metadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(10, getMetadata()); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { @@ -2734,7 +2755,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, type_); } - if (metadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getMetadata()); } if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { @@ -2945,10 +2966,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.MetricDescriptor.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLabelsFieldBuilder(); + getMetadataFieldBuilder(); + } } @java.lang.Override @@ -3044,8 +3075,10 @@ private void buildPartial0(com.google.api.MetricDescriptor result) { if (((from_bitField0_ & 0x00000080) != 0)) { result.displayName_ = displayName_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000100) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000200) != 0)) { result.launchStage_ = launchStage_; @@ -3054,6 +3087,7 @@ private void buildPartial0(com.google.api.MetricDescriptor result) { monitoredResourceTypes_.makeImmutable(); result.monitoredResourceTypes_ = monitoredResourceTypes_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -5108,8 +5142,10 @@ public Builder mergeMetadata(com.google.api.MetricDescriptor.MetricDescriptorMet } else { metadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (metadata_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java index 0f949c13b0..3b44c84592 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricDescriptorOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/metric.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface MetricDescriptorOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricOrBuilder.java index a5756a7e21..db10c15083 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/metric.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface MetricOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricProto.java index 43d694522c..7266e9921f 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/metric.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class MetricProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java index 1096d20d5d..faa8d85355 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/quota.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -54,7 +55,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMetricCosts(); @@ -440,7 +442,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMetricCosts(); @@ -450,7 +453,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableMetricCosts(); diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java index 5aaac1d9eb..81e2a28605 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MetricRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/quota.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface MetricRuleOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java index b957e5d136..20d5ab0c78 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResource.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/monitored_resource.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -69,7 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -468,7 +470,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -478,7 +481,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableLabels(); diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java index 15c4732d6d..2bcb1c3c71 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptor.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/monitored_resource.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.java index 0bfc3aa309..71ab51540f 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceDescriptorOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/monitored_resource.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface MonitoredResourceDescriptorOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java index 5e673cc106..a1cbb88001 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/monitored_resource.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -57,7 +58,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetUserLabels(); @@ -76,6 +78,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.api.MonitoredResourceMetadata.Builder.class); } + private int bitField0_; public static final int SYSTEM_LABELS_FIELD_NUMBER = 1; private com.google.protobuf.Struct systemLabels_; /** @@ -100,7 +103,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { */ @java.lang.Override public boolean hasSystemLabels() { - return systemLabels_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -265,7 +268,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (systemLabels_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSystemLabels()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -279,7 +282,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (systemLabels_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSystemLabels()); } for (java.util.Map.Entry entry : @@ -455,7 +458,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetUserLabels(); @@ -465,7 +469,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableUserLabels(); @@ -485,10 +490,19 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.api.MonitoredResourceMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSystemLabelsFieldBuilder(); + } } @java.lang.Override @@ -537,14 +551,17 @@ public com.google.api.MonitoredResourceMetadata buildPartial() { private void buildPartial0(com.google.api.MonitoredResourceMetadata result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.systemLabels_ = systemLabelsBuilder_ == null ? systemLabels_ : systemLabelsBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.userLabels_ = internalGetUserLabels(); result.userLabels_.makeImmutable(); } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -807,8 +824,10 @@ public Builder mergeSystemLabels(com.google.protobuf.Struct value) { } else { systemLabelsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (systemLabels_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java index 8ad34a06bf..c90863b367 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/monitored_resource.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface MonitoredResourceMetadataOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceOrBuilder.java index 1a2e1a72b4..dac6252708 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/monitored_resource.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface MonitoredResourceOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceProto.java index 4d4a2321fd..d9b949ba21 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoredResourceProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/monitored_resource.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class MonitoredResourceProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java index b28f3c900e..ab2675ecfe 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Monitoring.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/monitoring.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringOrBuilder.java index 4a9cc51ca8..6397905e42 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/monitoring.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface MonitoringOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringProto.java index f71eac12f1..90677f6f21 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/MonitoringProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/monitoring.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class MonitoringProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java index c21feeb515..645e5c5581 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -57,6 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.NodeSettings.class, com.google.api.NodeSettings.Builder.class); } + private int bitField0_; public static final int COMMON_FIELD_NUMBER = 1; private com.google.api.CommonLanguageSettings common_; /** @@ -72,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasCommon() { - return common_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -117,7 +119,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommon()); } getUnknownFields().writeTo(output); @@ -129,7 +131,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); } size += getUnknownFields().getSerializedSize(); @@ -291,10 +293,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.NodeSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommonFieldBuilder(); + } } @java.lang.Override @@ -340,9 +351,12 @@ public com.google.api.NodeSettings buildPartial() { private void buildPartial0(com.google.api.NodeSettings result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -546,8 +560,10 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) { } else { commonBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (common_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettingsOrBuilder.java index 4689e7029a..2e669ddfde 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/NodeSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface NodeSettingsOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java index b216508b8a..1881b5b840 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirements.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java index 7415ca3162..d3ce3cef05 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/OAuthRequirementsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/auth.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface OAuthRequirementsOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java index 495af6988f..096e382f72 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Page.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/documentation.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PageOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PageOrBuilder.java index 126503118a..d3e2433687 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PageOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PageOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/documentation.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface PageOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java index 34e6ad948d..42a0846165 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -57,6 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.PhpSettings.class, com.google.api.PhpSettings.Builder.class); } + private int bitField0_; public static final int COMMON_FIELD_NUMBER = 1; private com.google.api.CommonLanguageSettings common_; /** @@ -72,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasCommon() { - return common_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -117,7 +119,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommon()); } getUnknownFields().writeTo(output); @@ -129,7 +131,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); } size += getUnknownFields().getSerializedSize(); @@ -291,10 +293,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.PhpSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommonFieldBuilder(); + } } @java.lang.Override @@ -340,9 +351,12 @@ public com.google.api.PhpSettings buildPartial() { private void buildPartial0(com.google.api.PhpSettings result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -546,8 +560,10 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) { } else { commonBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (common_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettingsOrBuilder.java index 09fa6be89a..4a40ff4e16 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PhpSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface PhpSettingsOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PolicyProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PolicyProto.java index 96f4f9abe8..de7ff2e60d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PolicyProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PolicyProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class PolicyProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java index 0d8c669193..97cf297206 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectProperties.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/consumer.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectPropertiesOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectPropertiesOrBuilder.java index 7662b29875..577601e9f2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectPropertiesOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ProjectPropertiesOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/consumer.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface ProjectPropertiesOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java index 404b8c05f6..5cffa2cec3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Property.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/consumer.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PropertyOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PropertyOrBuilder.java index c537871c93..313438fab5 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PropertyOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PropertyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/consumer.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface PropertyOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java index 50dc04a8e4..a3f47414a8 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Publishing.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PublishingOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PublishingOrBuilder.java index 5e78d789d7..427c64bbb8 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PublishingOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PublishingOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface PublishingOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java index f658940d62..932086a1ae 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -57,6 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.PythonSettings.class, com.google.api.PythonSettings.Builder.class); } + private int bitField0_; public static final int COMMON_FIELD_NUMBER = 1; private com.google.api.CommonLanguageSettings common_; /** @@ -72,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasCommon() { - return common_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -117,7 +119,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommon()); } getUnknownFields().writeTo(output); @@ -129,7 +131,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); } size += getUnknownFields().getSerializedSize(); @@ -291,10 +293,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.PythonSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommonFieldBuilder(); + } } @java.lang.Override @@ -340,9 +351,12 @@ public com.google.api.PythonSettings buildPartial() { private void buildPartial0(com.google.api.PythonSettings result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -546,8 +560,10 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) { } else { commonBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (common_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettingsOrBuilder.java index 9880ed0bfe..ea44a16ab1 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/PythonSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface PythonSettingsOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java index 5d2263e4d2..b6a74f173d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Quota.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/quota.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java index 52dbb2e8e9..5bec3e3947 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimit.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/quota.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -60,7 +61,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 10: return internalGetValues(); @@ -877,7 +879,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 10: return internalGetValues(); @@ -887,7 +890,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 10: return internalGetMutableValues(); diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java index 5a11650910..1dfa2e025a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaLimitOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/quota.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface QuotaLimitOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaOrBuilder.java index e54a0c5fd3..8d2bc9a436 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/quota.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface QuotaOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaProto.java index 33c663c8ef..73236ea531 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/QuotaProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/quota.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class QuotaProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java index c8e2e3d48f..82b68fbe21 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptor.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java index 2c0099fcda..0d97884f79 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceDescriptorOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface ResourceDescriptorOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceProto.java index 80c375e126..26cce2f902 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class ResourceProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java index 331230dfd9..53e8dc8402 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReference.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java index b056273f7c..8dec05c8f4 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ResourceReferenceOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/resource.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface ResourceReferenceOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameter.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameter.java index 3a03c2bbc4..4e095423aa 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameter.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameter.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/routing.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameterOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameterOrBuilder.java index 1d441400e9..ab94bb3f27 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameterOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingParameterOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/routing.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface RoutingParameterOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingProto.java index 31189bf5e6..a9f14db984 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/routing.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class RoutingProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java index 4af6dfb409..94d0e3bfed 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/routing.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRuleOrBuilder.java index 76b09e5eea..c5cb734d3a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RoutingRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/routing.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface RoutingRuleOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettings.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettings.java index cdefbec8e4..d95539f552 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettings.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -57,6 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.RubySettings.class, com.google.api.RubySettings.Builder.class); } + private int bitField0_; public static final int COMMON_FIELD_NUMBER = 1; private com.google.api.CommonLanguageSettings common_; /** @@ -72,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasCommon() { - return common_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -117,7 +119,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommon()); } getUnknownFields().writeTo(output); @@ -129,7 +131,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (common_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommon()); } size += getUnknownFields().getSerializedSize(); @@ -291,10 +293,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.RubySettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommonFieldBuilder(); + } } @java.lang.Override @@ -340,9 +351,12 @@ public com.google.api.RubySettings buildPartial() { private void buildPartial0(com.google.api.RubySettings result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -546,8 +560,10 @@ public Builder mergeCommon(com.google.api.CommonLanguageSettings value) { } else { commonBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (common_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettingsOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettingsOrBuilder.java index 65c7478ca4..0f9e7e2be3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettingsOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/RubySettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/client.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface RubySettingsOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java index a738c9c623..d55565cf9d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Service.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/service.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** @@ -101,6 +102,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.api.Service.class, com.google.api.Service.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -629,7 +631,7 @@ public com.google.protobuf.EnumOrBuilder getEnumsOrBuilder(int index) { */ @java.lang.Override public boolean hasDocumentation() { - return documentation_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -679,7 +681,7 @@ public com.google.api.DocumentationOrBuilder getDocumentationOrBuilder() { */ @java.lang.Override public boolean hasBackend() { - return backend_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -725,7 +727,7 @@ public com.google.api.BackendOrBuilder getBackendOrBuilder() { */ @java.lang.Override public boolean hasHttp() { - return http_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -771,7 +773,7 @@ public com.google.api.HttpOrBuilder getHttpOrBuilder() { */ @java.lang.Override public boolean hasQuota() { - return quota_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -817,7 +819,7 @@ public com.google.api.QuotaOrBuilder getQuotaOrBuilder() { */ @java.lang.Override public boolean hasAuthentication() { - return authentication_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -867,7 +869,7 @@ public com.google.api.AuthenticationOrBuilder getAuthenticationOrBuilder() { */ @java.lang.Override public boolean hasContext() { - return context_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -913,7 +915,7 @@ public com.google.api.ContextOrBuilder getContextOrBuilder() { */ @java.lang.Override public boolean hasUsage() { - return usage_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1039,7 +1041,7 @@ public com.google.api.EndpointOrBuilder getEndpointsOrBuilder(int index) { */ @java.lang.Override public boolean hasControl() { - return control_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -1308,7 +1310,7 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResources */ @java.lang.Override public boolean hasBilling() { - return billing_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -1354,7 +1356,7 @@ public com.google.api.BillingOrBuilder getBillingOrBuilder() { */ @java.lang.Override public boolean hasLogging() { - return logging_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -1400,7 +1402,7 @@ public com.google.api.LoggingOrBuilder getLoggingOrBuilder() { */ @java.lang.Override public boolean hasMonitoring() { - return monitoring_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -1446,7 +1448,7 @@ public com.google.api.MonitoringOrBuilder getMonitoringOrBuilder() { */ @java.lang.Override public boolean hasSystemParameters() { - return systemParameters_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -1496,7 +1498,7 @@ public com.google.api.SystemParametersOrBuilder getSystemParametersOrBuilder() { */ @java.lang.Override public boolean hasSourceInfo() { - return sourceInfo_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -1544,7 +1546,7 @@ public com.google.api.SourceInfoOrBuilder getSourceInfoOrBuilder() { */ @java.lang.Override public boolean hasPublishing() { - return publishing_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -1597,7 +1599,7 @@ public com.google.api.PublishingOrBuilder getPublishingOrBuilder() { */ @java.lang.Override public boolean hasConfigVersion() { - return configVersion_ != null; + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -1667,34 +1669,34 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < enums_.size(); i++) { output.writeMessage(5, enums_.get(i)); } - if (documentation_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getDocumentation()); } - if (backend_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getBackend()); } - if (http_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(9, getHttp()); } - if (quota_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getQuota()); } - if (authentication_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(11, getAuthentication()); } - if (context_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(12, getContext()); } - if (usage_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(15, getUsage()); } for (int i = 0; i < endpoints_.size(); i++) { output.writeMessage(18, endpoints_.get(i)); } - if (configVersion_ != null) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(20, getConfigVersion()); } - if (control_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(21, getControl()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producerProjectId_)) { @@ -1709,25 +1711,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < monitoredResources_.size(); i++) { output.writeMessage(25, monitoredResources_.get(i)); } - if (billing_ != null) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(26, getBilling()); } - if (logging_ != null) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(27, getLogging()); } - if (monitoring_ != null) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(28, getMonitoring()); } - if (systemParameters_ != null) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(29, getSystemParameters()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 33, id_); } - if (sourceInfo_ != null) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(37, getSourceInfo()); } - if (publishing_ != null) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(45, getPublishing()); } getUnknownFields().writeTo(output); @@ -1754,34 +1756,34 @@ public int getSerializedSize() { for (int i = 0; i < enums_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, enums_.get(i)); } - if (documentation_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDocumentation()); } - if (backend_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getBackend()); } - if (http_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getHttp()); } - if (quota_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getQuota()); } - if (authentication_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getAuthentication()); } - if (context_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getContext()); } - if (usage_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUsage()); } for (int i = 0; i < endpoints_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, endpoints_.get(i)); } - if (configVersion_ != null) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getConfigVersion()); } - if (control_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getControl()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producerProjectId_)) { @@ -1797,25 +1799,25 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, monitoredResources_.get(i)); } - if (billing_ != null) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getBilling()); } - if (logging_ != null) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getLogging()); } - if (monitoring_ != null) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getMonitoring()); } - if (systemParameters_ != null) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getSystemParameters()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, id_); } - if (sourceInfo_ != null) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getSourceInfo()); } - if (publishing_ != null) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(45, getPublishing()); } size += getUnknownFields().getSerializedSize(); @@ -2168,10 +2170,40 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.api.Service.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getApisFieldBuilder(); + getTypesFieldBuilder(); + getEnumsFieldBuilder(); + getDocumentationFieldBuilder(); + getBackendFieldBuilder(); + getHttpFieldBuilder(); + getQuotaFieldBuilder(); + getAuthenticationFieldBuilder(); + getContextFieldBuilder(); + getUsageFieldBuilder(); + getEndpointsFieldBuilder(); + getControlFieldBuilder(); + getLogsFieldBuilder(); + getMetricsFieldBuilder(); + getMonitoredResourcesFieldBuilder(); + getBillingFieldBuilder(); + getLoggingFieldBuilder(); + getMonitoringFieldBuilder(); + getSystemParametersFieldBuilder(); + getSourceInfoFieldBuilder(); + getPublishingFieldBuilder(); + getConfigVersionFieldBuilder(); + } } @java.lang.Override @@ -2419,55 +2451,72 @@ private void buildPartial0(com.google.api.Service result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.id_ = id_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { result.documentation_ = documentationBuilder_ == null ? documentation_ : documentationBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000100) != 0)) { result.backend_ = backendBuilder_ == null ? backend_ : backendBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000200) != 0)) { result.http_ = httpBuilder_ == null ? http_ : httpBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000400) != 0)) { result.quota_ = quotaBuilder_ == null ? quota_ : quotaBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000800) != 0)) { result.authentication_ = authenticationBuilder_ == null ? authentication_ : authenticationBuilder_.build(); + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00001000) != 0)) { result.context_ = contextBuilder_ == null ? context_ : contextBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00002000) != 0)) { result.usage_ = usageBuilder_ == null ? usage_ : usageBuilder_.build(); + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00008000) != 0)) { result.control_ = controlBuilder_ == null ? control_ : controlBuilder_.build(); + to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00080000) != 0)) { result.billing_ = billingBuilder_ == null ? billing_ : billingBuilder_.build(); + to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00100000) != 0)) { result.logging_ = loggingBuilder_ == null ? logging_ : loggingBuilder_.build(); + to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00200000) != 0)) { result.monitoring_ = monitoringBuilder_ == null ? monitoring_ : monitoringBuilder_.build(); + to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00400000) != 0)) { result.systemParameters_ = systemParametersBuilder_ == null ? systemParameters_ : systemParametersBuilder_.build(); + to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00800000) != 0)) { result.sourceInfo_ = sourceInfoBuilder_ == null ? sourceInfo_ : sourceInfoBuilder_.build(); + to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x01000000) != 0)) { result.publishing_ = publishingBuilder_ == null ? publishing_ : publishingBuilder_.build(); + to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x02000000) != 0)) { result.configVersion_ = configVersionBuilder_ == null ? configVersion_ : configVersionBuilder_.build(); + to_bitField0_ |= 0x00004000; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -4906,8 +4955,10 @@ public Builder mergeDocumentation(com.google.api.Documentation value) { } else { documentationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (documentation_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -5085,8 +5136,10 @@ public Builder mergeBackend(com.google.api.Backend value) { } else { backendBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (backend_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** @@ -5259,8 +5312,10 @@ public Builder mergeHttp(com.google.api.Http value) { } else { httpBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; - onChanged(); + if (http_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** @@ -5432,8 +5487,10 @@ public Builder mergeQuota(com.google.api.Quota value) { } else { quotaBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000400; - onChanged(); + if (quota_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } return this; } /** @@ -5609,8 +5666,10 @@ public Builder mergeAuthentication(com.google.api.Authentication value) { } else { authenticationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000800; - onChanged(); + if (authentication_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } return this; } /** @@ -5788,8 +5847,10 @@ public Builder mergeContext(com.google.api.Context value) { } else { contextBuilder_.mergeFrom(value); } - bitField0_ |= 0x00001000; - onChanged(); + if (context_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } return this; } /** @@ -5962,8 +6023,10 @@ public Builder mergeUsage(com.google.api.Usage value) { } else { usageBuilder_.mergeFrom(value); } - bitField0_ |= 0x00002000; - onChanged(); + if (usage_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } return this; } /** @@ -6513,8 +6576,10 @@ public Builder mergeControl(com.google.api.Control value) { } else { controlBuilder_.mergeFrom(value); } - bitField0_ |= 0x00008000; - onChanged(); + if (control_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } return this; } /** @@ -7771,8 +7836,10 @@ public Builder mergeBilling(com.google.api.Billing value) { } else { billingBuilder_.mergeFrom(value); } - bitField0_ |= 0x00080000; - onChanged(); + if (billing_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } return this; } /** @@ -7945,8 +8012,10 @@ public Builder mergeLogging(com.google.api.Logging value) { } else { loggingBuilder_.mergeFrom(value); } - bitField0_ |= 0x00100000; - onChanged(); + if (logging_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } return this; } /** @@ -8121,8 +8190,10 @@ public Builder mergeMonitoring(com.google.api.Monitoring value) { } else { monitoringBuilder_.mergeFrom(value); } - bitField0_ |= 0x00200000; - onChanged(); + if (monitoring_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } return this; } /** @@ -8302,8 +8373,10 @@ public Builder mergeSystemParameters(com.google.api.SystemParameters value) { } else { systemParametersBuilder_.mergeFrom(value); } - bitField0_ |= 0x00400000; - onChanged(); + if (systemParameters_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } return this; } /** @@ -8483,8 +8556,10 @@ public Builder mergeSourceInfo(com.google.api.SourceInfo value) { } else { sourceInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00800000; - onChanged(); + if (sourceInfo_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } return this; } /** @@ -8672,8 +8747,10 @@ public Builder mergePublishing(com.google.api.Publishing value) { } else { publishingBuilder_.mergeFrom(value); } - bitField0_ |= 0x01000000; - onChanged(); + if (publishing_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } return this; } /** @@ -8876,8 +8953,10 @@ public Builder mergeConfigVersion(com.google.protobuf.UInt32Value value) { } else { configVersionBuilder_.mergeFrom(value); } - bitField0_ |= 0x02000000; - onChanged(); + if (configVersion_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java index e390948dea..e4ff8b21eb 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/service.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface ServiceOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java index 1f5f57d815..874abf8f81 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/ServiceProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/service.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class ServiceProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java index 8d2349bc82..5c9c9b3b8e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/source_info.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfoOrBuilder.java index 48ca89ddb8..2f8bb5a6ab 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/source_info.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface SourceInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfoProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfoProto.java index 7c1b540d5b..4e17d4978a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfoProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SourceInfoProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/source_info.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class SourceInfoProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java index 6a447e35a9..fcab333c15 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/system_parameter.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterOrBuilder.java index 6460d9734e..a4bfea10ec 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/system_parameter.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface SystemParameterOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterProto.java index 1d1b9c28ff..f5fbe52250 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/system_parameter.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class SystemParameterProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java index d1e815de8f..057f259f2d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/system_parameter.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java index c3145cdd04..1e96fefbd2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameterRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/system_parameter.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface SystemParameterRuleOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java index 14804382cf..9b3b7c0b0e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParameters.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/system_parameter.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java index 3781566f93..37b99f53f7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/SystemParametersOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/system_parameter.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface SystemParametersOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Usage.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Usage.java index 112d52b680..e4d19ad34c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Usage.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Usage.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/usage.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java index d653c034c2..5dd9d1df88 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/usage.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface UsageOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageProto.java index 07163a828c..69b9c90559 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/usage.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class UsageProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java index fbd3ade075..2fc52b0b03 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/usage.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java index 77caf516d2..78cdac823a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/UsageRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/usage.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface UsageRuleOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Visibility.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Visibility.java index 03dce6017f..e060ff07b4 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Visibility.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/Visibility.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/visibility.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityOrBuilder.java index 658f91e87d..e45116fdda 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/visibility.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface VisibilityOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityProto.java index aaa371cf61..3c4e29c8da 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/visibility.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public final class VisibilityProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRule.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRule.java index 4a97b642e0..509c5e5db4 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRule.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/visibility.proto +// Protobuf Java Version: 3.25.2 package com.google.api; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRuleOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRuleOrBuilder.java index 575ab96a82..e376bec02d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRuleOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/api/VisibilityRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/visibility.proto +// Protobuf Java Version: 3.25.2 package com.google.api; public interface VisibilityRuleOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/ExtendedOperationsProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/ExtendedOperationsProto.java index e5215cdc96..9acad1e194 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/ExtendedOperationsProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/ExtendedOperationsProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/extended_operations.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud; public final class ExtendedOperationsProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/OperationResponseMapping.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/OperationResponseMapping.java index 212af822a1..47311030de 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/OperationResponseMapping.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/OperationResponseMapping.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/extended_operations.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java index 8e81963a54..c584a5eab6 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLog.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.audit.AuditLog.class, com.google.cloud.audit.AuditLog.Builder.class); } + private int bitField0_; public static final int SERVICE_NAME_FIELD_NUMBER = 7; @SuppressWarnings("serial") @@ -254,7 +256,7 @@ public com.google.protobuf.ByteString getResourceNameBytes() { */ @java.lang.Override public boolean hasResourceLocation() { - return resourceLocation_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -310,7 +312,7 @@ public com.google.cloud.audit.ResourceLocationOrBuilder getResourceLocationOrBui */ @java.lang.Override public boolean hasResourceOriginalState() { - return resourceOriginalState_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -391,7 +393,7 @@ public long getNumResponseItems() { */ @java.lang.Override public boolean hasStatus() { - return status_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -437,7 +439,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { */ @java.lang.Override public boolean hasAuthenticationInfo() { - return authenticationInfo_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -571,7 +573,7 @@ public com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrB */ @java.lang.Override public boolean hasPolicyViolationInfo() { - return policyViolationInfo_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -625,7 +627,7 @@ public com.google.cloud.audit.PolicyViolationInfoOrBuilder getPolicyViolationInf */ @java.lang.Override public boolean hasRequestMetadata() { - return requestMetadata_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -680,7 +682,7 @@ public com.google.cloud.audit.RequestMetadataOrBuilder getRequestMetadataOrBuild */ @java.lang.Override public boolean hasRequest() { - return request_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -741,7 +743,7 @@ public com.google.protobuf.StructOrBuilder getRequestOrBuilder() { */ @java.lang.Override public boolean hasResponse() { - return response_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -798,7 +800,7 @@ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { */ @java.lang.Override public boolean hasMetadata() { - return metadata_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -851,7 +853,7 @@ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { @java.lang.Override @java.lang.Deprecated public boolean hasServiceData() { - return serviceData_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -904,13 +906,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (status_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(2, getStatus()); } - if (authenticationInfo_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(3, getAuthenticationInfo()); } - if (requestMetadata_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(4, getRequestMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) { @@ -928,25 +930,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (numResponseItems_ != 0L) { output.writeInt64(12, numResponseItems_); } - if (serviceData_ != null) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(15, getServiceData()); } - if (request_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(16, getRequest()); } - if (response_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(17, getResponse()); } - if (metadata_ != null) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(18, getMetadata()); } - if (resourceOriginalState_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(19, getResourceOriginalState()); } - if (resourceLocation_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(20, getResourceLocation()); } - if (policyViolationInfo_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(25, getPolicyViolationInfo()); } getUnknownFields().writeTo(output); @@ -958,13 +960,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (status_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); } - if (authenticationInfo_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthenticationInfo()); } - if (requestMetadata_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRequestMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) { @@ -983,26 +985,26 @@ public int getSerializedSize() { if (numResponseItems_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, numResponseItems_); } - if (serviceData_ != null) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getServiceData()); } - if (request_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getRequest()); } - if (response_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getResponse()); } - if (metadata_ != null) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getMetadata()); } - if (resourceOriginalState_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getResourceOriginalState()); } - if (resourceLocation_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getResourceLocation()); } - if (policyViolationInfo_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getPolicyViolationInfo()); } @@ -1256,10 +1258,29 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.audit.AuditLog.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getResourceLocationFieldBuilder(); + getResourceOriginalStateFieldBuilder(); + getStatusFieldBuilder(); + getAuthenticationInfoFieldBuilder(); + getAuthorizationInfoFieldBuilder(); + getPolicyViolationInfoFieldBuilder(); + getRequestMetadataFieldBuilder(); + getRequestFieldBuilder(); + getResponseFieldBuilder(); + getMetadataFieldBuilder(); + getServiceDataFieldBuilder(); + } } @java.lang.Override @@ -1384,51 +1405,63 @@ private void buildPartial0(com.google.cloud.audit.AuditLog result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.resourceName_ = resourceName_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.resourceLocation_ = resourceLocationBuilder_ == null ? resourceLocation_ : resourceLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.resourceOriginalState_ = resourceOriginalStateBuilder_ == null ? resourceOriginalState_ : resourceOriginalStateBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.numResponseItems_ = numResponseItems_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.authenticationInfo_ = authenticationInfoBuilder_ == null ? authenticationInfo_ : authenticationInfoBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000200) != 0)) { result.policyViolationInfo_ = policyViolationInfoBuilder_ == null ? policyViolationInfo_ : policyViolationInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000400) != 0)) { result.requestMetadata_ = requestMetadataBuilder_ == null ? requestMetadata_ : requestMetadataBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000800) != 0)) { result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00001000) != 0)) { result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); + to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00002000) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00004000) != 0)) { result.serviceData_ = serviceDataBuilder_ == null ? serviceData_ : serviceDataBuilder_.build(); + to_bitField0_ |= 0x00000200; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2173,8 +2206,10 @@ public Builder mergeResourceLocation(com.google.cloud.audit.ResourceLocation val } else { resourceLocationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (resourceLocation_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -2386,8 +2421,10 @@ public Builder mergeResourceOriginalState(com.google.protobuf.Struct value) { } else { resourceOriginalStateBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (resourceOriginalState_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -2645,8 +2682,10 @@ public Builder mergeStatus(com.google.rpc.Status value) { } else { statusBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (status_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** @@ -2825,8 +2864,10 @@ public Builder mergeAuthenticationInfo(com.google.cloud.audit.AuthenticationInfo } else { authenticationInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (authenticationInfo_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -3411,8 +3452,10 @@ public Builder mergePolicyViolationInfo(com.google.cloud.audit.PolicyViolationIn } else { policyViolationInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; - onChanged(); + if (policyViolationInfo_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** @@ -3603,8 +3646,10 @@ public Builder mergeRequestMetadata(com.google.cloud.audit.RequestMetadata value } else { requestMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000400; - onChanged(); + if (requestMetadata_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } return this; } /** @@ -3809,8 +3854,10 @@ public Builder mergeRequest(com.google.protobuf.Struct value) { } else { requestBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000800; - onChanged(); + if (request_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } return this; } /** @@ -4033,8 +4080,10 @@ public Builder mergeResponse(com.google.protobuf.Struct value) { } else { responseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00001000; - onChanged(); + if (response_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } return this; } /** @@ -4237,8 +4286,10 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) { } else { metadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00002000; - onChanged(); + if (metadata_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } return this; } /** @@ -4439,8 +4490,10 @@ public Builder mergeServiceData(com.google.protobuf.Any value) { } else { serviceDataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00004000; - onChanged(); + if (serviceData_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java index 0c1f8bc18e..ede9a0a1d6 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; public interface AuditLogOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java index 40add613b7..db784a91be 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuditLogProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; public final class AuditLogProto { @@ -140,24 +141,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uf.StructB\013\n\tAuthority\"d\n\023PolicyViolatio" + "nInfo\022M\n\031org_policy_violation_info\030\001 \001(\013" + "2*.google.cloud.audit.OrgPolicyViolation" - + "Info\"\266\002\n\026OrgPolicyViolationInfo\022.\n\007paylo" - + "ad\030\001 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022" - + "\033\n\rresource_type\030\002 \001(\tB\004\342A\001\001\022Y\n\rresource" - + "_tags\030\003 \003(\0132<.google.cloud.audit.OrgPoli" - + "cyViolationInfo.ResourceTagsEntryB\004\342A\001\001\022" - + "?\n\016violation_info\030\004 \003(\0132!.google.cloud.a" - + "udit.ViolationInfoB\004\342A\001\001\0323\n\021ResourceTags" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\233\002" - + "\n\rViolationInfo\022\030\n\nconstraint\030\001 \001(\tB\004\342A\001" - + "\001\022\033\n\rerror_message\030\002 \001(\tB\004\342A\001\001\022\033\n\rchecke" - + "d_value\030\003 \001(\tB\004\342A\001\001\022G\n\013policy_type\030\004 \001(\016" - + "2,.google.cloud.audit.ViolationInfo.Poli" - + "cyTypeB\004\342A\001\001\"m\n\nPolicyType\022\033\n\027POLICY_TYP" - + "E_UNSPECIFIED\020\000\022\026\n\022BOOLEAN_CONSTRAINT\020\001\022" - + "\023\n\017LIST_CONSTRAINT\020\002\022\025\n\021CUSTOM_CONSTRAIN" - + "T\020\003Be\n\026com.google.cloud.auditB\rAuditLogP" - + "rotoP\001Z7google.golang.org/genproto/googl" - + "eapis/cloud/audit;audit\370\001\001b\006proto3" + + "Info\"\262\002\n\026OrgPolicyViolationInfo\022-\n\007paylo" + + "ad\030\001 \001(\0132\027.google.protobuf.StructB\003\340A\001\022\032" + + "\n\rresource_type\030\002 \001(\tB\003\340A\001\022X\n\rresource_t" + + "ags\030\003 \003(\0132<.google.cloud.audit.OrgPolicy" + + "ViolationInfo.ResourceTagsEntryB\003\340A\001\022>\n\016" + + "violation_info\030\004 \003(\0132!.google.cloud.audi" + + "t.ViolationInfoB\003\340A\001\0323\n\021ResourceTagsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\227\002\n\rVi" + + "olationInfo\022\027\n\nconstraint\030\001 \001(\tB\003\340A\001\022\032\n\r" + + "error_message\030\002 \001(\tB\003\340A\001\022\032\n\rchecked_valu" + + "e\030\003 \001(\tB\003\340A\001\022F\n\013policy_type\030\004 \001(\0162,.goog" + + "le.cloud.audit.ViolationInfo.PolicyTypeB" + + "\003\340A\001\"m\n\nPolicyType\022\033\n\027POLICY_TYPE_UNSPEC" + + "IFIED\020\000\022\026\n\022BOOLEAN_CONSTRAINT\020\001\022\023\n\017LIST_" + + "CONSTRAINT\020\002\022\025\n\021CUSTOM_CONSTRAINT\020\003Be\n\026c" + + "om.google.cloud.auditB\rAuditLogProtoP\001Z7" + + "google.golang.org/genproto/googleapis/cl" + + "oud/audit;audit\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java index 996af64ec8..57c2f9126b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; /** @@ -66,6 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.audit.AuthenticationInfo.Builder.class); } + private int bitField0_; public static final int PRINCIPAL_EMAIL_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -198,7 +200,7 @@ public com.google.protobuf.ByteString getAuthoritySelectorBytes() { */ @java.lang.Override public boolean hasThirdPartyPrincipal() { - return thirdPartyPrincipal_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -476,7 +478,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authoritySelector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, authoritySelector_); } - if (thirdPartyPrincipal_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getThirdPartyPrincipal()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountKeyName_)) { @@ -503,7 +505,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authoritySelector_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, authoritySelector_); } - if (thirdPartyPrincipal_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getThirdPartyPrincipal()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountKeyName_)) { @@ -699,10 +701,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.audit.AuthenticationInfo.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getThirdPartyPrincipalFieldBuilder(); + getServiceAccountDelegationInfoFieldBuilder(); + } } @java.lang.Override @@ -781,11 +793,13 @@ private void buildPartial0(com.google.cloud.audit.AuthenticationInfo result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.authoritySelector_ = authoritySelector_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.thirdPartyPrincipal_ = thirdPartyPrincipalBuilder_ == null ? thirdPartyPrincipal_ : thirdPartyPrincipalBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.serviceAccountKeyName_ = serviceAccountKeyName_; @@ -793,6 +807,7 @@ private void buildPartial0(com.google.cloud.audit.AuthenticationInfo result) { if (((from_bitField0_ & 0x00000020) != 0)) { result.principalSubject_ = principalSubject_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1340,8 +1355,10 @@ public Builder mergeThirdPartyPrincipal(com.google.protobuf.Struct value) { } else { thirdPartyPrincipalBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (thirdPartyPrincipal_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java index 1ae5ab45d5..aa1640bfc5 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthenticationInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; public interface AuthenticationInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java index 4fa47fa05f..2e7235e044 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.audit.AuthorizationInfo.Builder.class); } + private int bitField0_; public static final int RESOURCE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -214,7 +216,7 @@ public boolean getGranted() { */ @java.lang.Override public boolean hasResourceAttributes() { - return resourceAttributes_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -283,7 +285,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (granted_ != false) { output.writeBool(3, granted_); } - if (resourceAttributes_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getResourceAttributes()); } getUnknownFields().writeTo(output); @@ -304,7 +306,7 @@ public int getSerializedSize() { if (granted_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, granted_); } - if (resourceAttributes_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getResourceAttributes()); } size += getUnknownFields().getSerializedSize(); @@ -479,10 +481,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.audit.AuthorizationInfo.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getResourceAttributesFieldBuilder(); + } } @java.lang.Override @@ -542,12 +553,15 @@ private void buildPartial0(com.google.cloud.audit.AuthorizationInfo result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.granted_ = granted_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.resourceAttributes_ = resourceAttributesBuilder_ == null ? resourceAttributes_ : resourceAttributesBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1103,8 +1117,10 @@ public Builder mergeResourceAttributes(com.google.rpc.context.AttributeContext.R } else { resourceAttributesBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (resourceAttributes_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java index d07958d948..ea101277c0 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/AuthorizationInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; public interface AuthorizationInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfo.java index b3292ee10b..32dd34409e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; /** @@ -55,7 +56,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetResourceTags(); @@ -74,6 +76,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.audit.OrgPolicyViolationInfo.Builder.class); } + private int bitField0_; public static final int PAYLOAD_FIELD_NUMBER = 1; private com.google.protobuf.Struct payload_; /** @@ -91,7 +94,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { */ @java.lang.Override public boolean hasPayload() { - return payload_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -406,7 +409,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (payload_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPayload()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { @@ -426,7 +429,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (payload_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPayload()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { @@ -612,7 +615,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetResourceTags(); @@ -622,7 +626,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 3: return internalGetMutableResourceTags(); @@ -642,10 +647,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.audit.OrgPolicyViolationInfo.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPayloadFieldBuilder(); + getViolationInfoFieldBuilder(); + } } @java.lang.Override @@ -715,8 +730,10 @@ private void buildPartialRepeatedFields(com.google.cloud.audit.OrgPolicyViolatio private void buildPartial0(com.google.cloud.audit.OrgPolicyViolationInfo result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.resourceType_ = resourceType_; @@ -725,6 +742,7 @@ private void buildPartial0(com.google.cloud.audit.OrgPolicyViolationInfo result) result.resourceTags_ = internalGetResourceTags(); result.resourceTags_.makeImmutable(); } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1001,8 +1019,10 @@ public Builder mergePayload(com.google.protobuf.Struct value) { } else { payloadBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (payload_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfoOrBuilder.java index 0cb4a4412c..5078a0e202 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/OrgPolicyViolationInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; public interface OrgPolicyViolationInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfo.java index 51962845c0..a538c08191 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.audit.PolicyViolationInfo.Builder.class); } + private int bitField0_; public static final int ORG_POLICY_VIOLATION_INFO_FIELD_NUMBER = 1; private com.google.cloud.audit.OrgPolicyViolationInfo orgPolicyViolationInfo_; /** @@ -75,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasOrgPolicyViolationInfo() { - return orgPolicyViolationInfo_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -125,7 +127,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (orgPolicyViolationInfo_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOrgPolicyViolationInfo()); } getUnknownFields().writeTo(output); @@ -137,7 +139,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (orgPolicyViolationInfo_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrgPolicyViolationInfo()); } @@ -305,10 +307,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.audit.PolicyViolationInfo.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOrgPolicyViolationInfoFieldBuilder(); + } } @java.lang.Override @@ -356,12 +367,15 @@ public com.google.cloud.audit.PolicyViolationInfo buildPartial() { private void buildPartial0(com.google.cloud.audit.PolicyViolationInfo result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.orgPolicyViolationInfo_ = orgPolicyViolationInfoBuilder_ == null ? orgPolicyViolationInfo_ : orgPolicyViolationInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -569,8 +583,10 @@ public Builder mergeOrgPolicyViolationInfo( } else { orgPolicyViolationInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (orgPolicyViolationInfo_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfoOrBuilder.java index c0da04a1ae..550bdc06fa 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/PolicyViolationInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; public interface PolicyViolationInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java index 6bb3aabfba..0b1ad15297 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.audit.RequestMetadata.Builder.class); } + private int bitField0_; public static final int CALLER_IP_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -291,7 +293,7 @@ public com.google.protobuf.ByteString getCallerNetworkBytes() { */ @java.lang.Override public boolean hasRequestAttributes() { - return requestAttributes_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -359,7 +361,7 @@ public com.google.rpc.context.AttributeContext.RequestOrBuilder getRequestAttrib */ @java.lang.Override public boolean hasDestinationAttributes() { - return destinationAttributes_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -425,10 +427,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerNetwork_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, callerNetwork_); } - if (requestAttributes_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getRequestAttributes()); } - if (destinationAttributes_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getDestinationAttributes()); } getUnknownFields().writeTo(output); @@ -449,10 +451,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, callerNetwork_); } - if (requestAttributes_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRequestAttributes()); } - if (destinationAttributes_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDestinationAttributes()); } @@ -636,10 +638,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.audit.RequestMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRequestAttributesFieldBuilder(); + getDestinationAttributesFieldBuilder(); + } } @java.lang.Override @@ -704,18 +716,22 @@ private void buildPartial0(com.google.cloud.audit.RequestMetadata result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.callerNetwork_ = callerNetwork_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.requestAttributes_ = requestAttributesBuilder_ == null ? requestAttributes_ : requestAttributesBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.destinationAttributes_ = destinationAttributesBuilder_ == null ? destinationAttributes_ : destinationAttributesBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1448,8 +1464,10 @@ public Builder mergeRequestAttributes(com.google.rpc.context.AttributeContext.Re } else { requestAttributesBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (requestAttributes_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -1682,8 +1700,10 @@ public Builder mergeDestinationAttributes(com.google.rpc.context.AttributeContex } else { destinationAttributesBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (destinationAttributes_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java index 9bfaafe790..720e30d6aa 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/RequestMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; public interface RequestMetadataOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java index f6bf2ce07d..1e71d8fe53 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocation.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java index 7849d69394..6791213990 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ResourceLocationOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; public interface ResourceLocationOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java index d14a075b34..808681ecf7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; /** @@ -172,6 +173,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + private int bitField0_; public static final int PRINCIPAL_EMAIL_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -238,7 +240,7 @@ public com.google.protobuf.ByteString getPrincipalEmailBytes() { */ @java.lang.Override public boolean hasServiceMetadata() { - return serviceMetadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -290,7 +292,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(principalEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principalEmail_); } - if (serviceMetadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getServiceMetadata()); } getUnknownFields().writeTo(output); @@ -305,7 +307,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(principalEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principalEmail_); } - if (serviceMetadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getServiceMetadata()); } size += getUnknownFields().getSerializedSize(); @@ -482,10 +484,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getServiceMetadataFieldBuilder(); + } } @java.lang.Override @@ -542,10 +553,13 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.principalEmail_ = principalEmail_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.serviceMetadata_ = serviceMetadataBuilder_ == null ? serviceMetadata_ : serviceMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -874,8 +888,10 @@ public Builder mergeServiceMetadata(com.google.protobuf.Struct value) { } else { serviceMetadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (serviceMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1106,6 +1122,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + private int bitField0_; public static final int THIRD_PARTY_CLAIMS_FIELD_NUMBER = 1; private com.google.protobuf.Struct thirdPartyClaims_; /** @@ -1121,7 +1138,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasThirdPartyClaims() { - return thirdPartyClaims_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1170,7 +1187,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (thirdPartyClaims_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getThirdPartyClaims()); } getUnknownFields().writeTo(output); @@ -1182,7 +1199,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (thirdPartyClaims_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getThirdPartyClaims()); } size += getUnknownFields().getSerializedSize(); @@ -1356,10 +1373,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getThirdPartyClaimsFieldBuilder(); + } } @java.lang.Override @@ -1412,12 +1438,15 @@ public com.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal b private void buildPartial0( com.google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.thirdPartyClaims_ = thirdPartyClaimsBuilder_ == null ? thirdPartyClaims_ : thirdPartyClaimsBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1629,8 +1658,10 @@ public Builder mergeThirdPartyClaims(com.google.protobuf.Struct value) { } else { thirdPartyClaimsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (thirdPartyClaims_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java index eaad80e169..0254a0fc17 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ServiceAccountDelegationInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; public interface ServiceAccountDelegationInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfo.java index 4f5e13cdb3..14f37d0fa3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfoOrBuilder.java index 080151eff4..f13583c521 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/audit/ViolationInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/audit/audit_log.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.audit; public interface ViolationInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequest.java index 48e862c1ab..8c09e7fb87 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.location; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java index a8f3d0f9b5..49ce1fcaf8 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.location; public interface GetLocationRequestOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequest.java index 56ad5b9c80..da494731e7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.location; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java index 3a3f39a7f7..b7b9eb8f80 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.location; public interface ListLocationsRequestOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponse.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponse.java index 3080dc782a..7d4a6ff127 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponse.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.location; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java index 704771cc48..5d9e941cfb 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.location; public interface ListLocationsResponseOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/Location.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/Location.java index 7c414555de..716cd30875 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/Location.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/Location.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.location; /** @@ -56,7 +57,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -75,6 +77,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.location.Location.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -358,7 +361,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasMetadata() { - return metadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -410,7 +413,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); - if (metadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { @@ -441,7 +444,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); } - if (metadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) { @@ -616,7 +619,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -626,7 +630,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableLabels(); @@ -646,10 +651,19 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.location.Location.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + } } @java.lang.Override @@ -713,9 +727,12 @@ private void buildPartial0(com.google.cloud.location.Location result) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1474,8 +1491,10 @@ public Builder mergeMetadata(com.google.protobuf.Any value) { } else { metadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (metadata_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationOrBuilder.java index 4b358ed53d..9494505ba8 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.location; public interface LocationOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationsProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationsProto.java index d2b6da3066..ca03329e45 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationsProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/cloud/location/LocationsProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto +// Protobuf Java Version: 3.25.2 package com.google.cloud.location; public final class LocationsProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java index 0d118038df..1a190a9730 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/Viewport.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/geo/type/viewport.proto +// Protobuf Java Version: 3.25.2 package com.google.geo.type; /** @@ -92,6 +93,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.geo.type.Viewport.class, com.google.geo.type.Viewport.Builder.class); } + private int bitField0_; public static final int LOW_FIELD_NUMBER = 1; private com.google.type.LatLng low_; /** @@ -107,7 +109,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasLow() { - return low_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -153,7 +155,7 @@ public com.google.type.LatLngOrBuilder getLowOrBuilder() { */ @java.lang.Override public boolean hasHigh() { - return high_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -198,10 +200,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (low_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getLow()); } - if (high_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getHigh()); } getUnknownFields().writeTo(output); @@ -213,10 +215,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (low_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLow()); } - if (high_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHigh()); } size += getUnknownFields().getSerializedSize(); @@ -421,10 +423,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.geo.type.Viewport.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLowFieldBuilder(); + getHighFieldBuilder(); + } } @java.lang.Override @@ -475,12 +487,16 @@ public com.google.geo.type.Viewport buildPartial() { private void buildPartial0(com.google.geo.type.Viewport result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.low_ = lowBuilder_ == null ? low_ : lowBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.high_ = highBuilder_ == null ? high_ : highBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -689,8 +705,10 @@ public Builder mergeLow(com.google.type.LatLng value) { } else { lowBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (low_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -863,8 +881,10 @@ public Builder mergeHigh(com.google.type.LatLng value) { } else { highBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (high_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportOrBuilder.java index a0299e2517..3a5315a862 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/geo/type/viewport.proto +// Protobuf Java Version: 3.25.2 package com.google.geo.type; public interface ViewportOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportProto.java index 2d6c618e3a..1e2923b582 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/geo/type/ViewportProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/geo/type/viewport.proto +// Protobuf Java Version: 3.25.2 package com.google.geo.type; public final class ViewportProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java index 6c3555ebea..f83b080da6 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/type/http_request.proto +// Protobuf Java Version: 3.25.2 package com.google.logging.type; /** @@ -70,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.logging.type.HttpRequest.Builder.class); } + private int bitField0_; public static final int REQUEST_METHOD_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -469,7 +471,7 @@ public com.google.protobuf.ByteString getRefererBytes() { */ @java.lang.Override public boolean hasLatency() { - return latency_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -682,7 +684,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, serverIp_); } - if (latency_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(14, getLatency()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { @@ -738,7 +740,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, serverIp_); } - if (latency_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLatency()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { @@ -952,10 +954,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.logging.type.HttpRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLatencyFieldBuilder(); + } } @java.lang.Override @@ -1043,8 +1054,10 @@ private void buildPartial0(com.google.logging.type.HttpRequest result) { if (((from_bitField0_ & 0x00000100) != 0)) { result.referer_ = referer_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000200) != 0)) { result.latency_ = latencyBuilder_ == null ? latency_ : latencyBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000400) != 0)) { result.cacheLookup_ = cacheLookup_; @@ -1061,6 +1074,7 @@ private void buildPartial0(com.google.logging.type.HttpRequest result) { if (((from_bitField0_ & 0x00004000) != 0)) { result.protocol_ = protocol_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2261,8 +2275,10 @@ public Builder mergeLatency(com.google.protobuf.Duration value) { } else { latencyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; - onChanged(); + if (latency_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestOrBuilder.java index 2e57de87e6..9e86944b90 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/type/http_request.proto +// Protobuf Java Version: 3.25.2 package com.google.logging.type; public interface HttpRequestOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestProto.java index 39fdf74853..b6ba12043e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/HttpRequestProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/type/http_request.proto +// Protobuf Java Version: 3.25.2 package com.google.logging.type; public final class HttpRequestProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java index 7238de705c..28f2aeeaaa 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverity.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/type/log_severity.proto +// Protobuf Java Version: 3.25.2 package com.google.logging.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverityProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverityProto.java index 3f205fc516..1e576d6c51 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverityProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/logging/type/LogSeverityProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/type/log_severity.proto +// Protobuf Java Version: 3.25.2 package com.google.logging.type; public final class LogSeverityProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java index 9309c818ed..33bd8b640b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequestOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequestOrBuilder.java index 6dbf21a0f6..7df72a0818 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequestOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/CancelOperationRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; public interface CancelOperationRequestOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java index 37dad21528..9ee150c520 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequestOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequestOrBuilder.java index 3d39fee204..58f5e7e8c1 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequestOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/DeleteOperationRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; public interface DeleteOperationRequestOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java index c5008bae44..11bf63879c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequestOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequestOrBuilder.java index fb60fb1fa7..7f8ed0f9c8 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequestOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/GetOperationRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; public interface GetOperationRequestOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java index 5bc30149a5..747b68ba53 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequestOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequestOrBuilder.java index 1b2dbeea22..1bf75a8106 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequestOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; public interface ListOperationsRequestOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java index 40c6539d69..1f936f7154 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponseOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponseOrBuilder.java index 405051b914..4ec58de1d6 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponseOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; public interface ListOperationsResponseOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java index 92cdb06070..0b333256a0 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/Operation.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.longrunning.Operation.class, com.google.longrunning.Operation.Builder.class); } + private int bitField0_; private int resultCase_ = 0; @SuppressWarnings("serial") @@ -184,7 +186,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasMetadata() { - return metadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -381,7 +383,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (metadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getMetadata()); } if (done_ != false) { @@ -405,7 +407,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (metadata_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata()); } if (done_ != false) { @@ -613,10 +615,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.longrunning.Operation.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + } } @java.lang.Override @@ -677,12 +688,15 @@ private void buildPartial0(com.google.longrunning.Operation result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.done_ = done_; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.longrunning.Operation result) { @@ -1088,8 +1102,10 @@ public Builder mergeMetadata(com.google.protobuf.Any value) { } else { metadataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (metadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java index f96f4399f0..b5d4c5079d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java index e0d5a389f2..5da4e51ebd 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; public interface OperationInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java index 5ed218983d..dbfdddbac5 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; public interface OperationOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java index 18dae2a6fb..d4f5f068ca 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/OperationsProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; public final class OperationsProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java index 977afb0a08..070a694581 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.longrunning.WaitOperationRequest.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -130,7 +132,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasTimeout() { - return timeout_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -182,7 +184,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (timeout_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTimeout()); } getUnknownFields().writeTo(output); @@ -197,7 +199,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (timeout_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeout()); } size += getUnknownFields().getSerializedSize(); @@ -367,10 +369,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.longrunning.WaitOperationRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTimeoutFieldBuilder(); + } } @java.lang.Override @@ -422,9 +433,12 @@ private void buildPartial0(com.google.longrunning.WaitOperationRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -753,8 +767,10 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { } else { timeoutBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (timeout_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequestOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequestOrBuilder.java index 4fe1f938b9..09c952e6b9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequestOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/longrunning/WaitOperationRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto +// Protobuf Java Version: 3.25.2 package com.google.longrunning; public interface WaitOperationRequestOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java index 3a109711b9..7a499800ea 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequestOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequestOrBuilder.java index 46524361cc..1066984e51 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequestOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/BadRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public interface BadRequestOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Code.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Code.java index a762494b4c..b49f60d4ac 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Code.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Code.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/code.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/CodeProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/CodeProto.java index f63ced744c..0a95bdcd46 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/CodeProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/CodeProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/code.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public final class CodeProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java index 0397da4118..bcd541feb3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfoOrBuilder.java index 5be2796ee3..bd410f875d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/DebugInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public interface DebugInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorDetailsProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorDetailsProto.java index a62002a69f..a12e83221d 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorDetailsProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorDetailsProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public final class ErrorDetailsProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java index 72de0ffe5f..015720ab80 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; /** @@ -77,7 +78,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetMetadata(); @@ -568,7 +570,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetMetadata(); @@ -578,7 +581,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 3: return internalGetMutableMetadata(); diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java index f92f526b7f..d7356f4390 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ErrorInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public interface ErrorInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Help.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Help.java index 3c2774d924..951bc852bf 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Help.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Help.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HelpOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HelpOrBuilder.java index 57cd5e0d3f..23767ab64e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HelpOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/HelpOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public interface HelpOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java index c931a90820..c926cefb64 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessage.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessageOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessageOrBuilder.java index 307ab6887f..b96bbe43c9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessageOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/LocalizedMessageOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public interface LocalizedMessageOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java index 0a1fe4c86f..ef388d808a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailure.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailureOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailureOrBuilder.java index bb6e7756fd..ff8656ad5b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailureOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/PreconditionFailureOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public interface PreconditionFailureOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java index 4621e1347f..2b85bdd725 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailure.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailureOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailureOrBuilder.java index a5c1b5f176..cfae474ca4 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailureOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/QuotaFailureOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public interface QuotaFailureOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java index c1e7e4f080..7780f8cfb9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfoOrBuilder.java index aed43d732d..5816e9a214 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RequestInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public interface RequestInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java index 6d943f04b0..0953859d95 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfoOrBuilder.java index 17307c44c5..d44b03f727 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/ResourceInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public interface ResourceInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java index 1f318b97d6..19f1521734 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfo.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; /** @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.rpc.RetryInfo.class, com.google.rpc.RetryInfo.Builder.class); } + private int bitField0_; public static final int RETRY_DELAY_FIELD_NUMBER = 1; private com.google.protobuf.Duration retryDelay_; /** @@ -84,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasRetryDelay() { - return retryDelay_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -129,7 +131,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (retryDelay_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRetryDelay()); } getUnknownFields().writeTo(output); @@ -141,7 +143,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (retryDelay_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRetryDelay()); } size += getUnknownFields().getSerializedSize(); @@ -316,10 +318,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.rpc.RetryInfo.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRetryDelayFieldBuilder(); + } } @java.lang.Override @@ -365,9 +376,12 @@ public com.google.rpc.RetryInfo buildPartial() { private void buildPartial0(com.google.rpc.RetryInfo result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.retryDelay_ = retryDelayBuilder_ == null ? retryDelay_ : retryDelayBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -571,8 +585,10 @@ public Builder mergeRetryDelay(com.google.protobuf.Duration value) { } else { retryDelayBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (retryDelay_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfoOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfoOrBuilder.java index 08eddc2a1e..24240ad033 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfoOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/RetryInfoOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/error_details.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public interface RetryInfoOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Status.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Status.java index 5d7ae5e3f7..6aafd2e696 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Status.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/Status.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/status.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/StatusOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/StatusOrBuilder.java index 1b4159c6c2..d99f2bceca 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/StatusOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/StatusOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/status.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public interface StatusOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/StatusProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/StatusProto.java index 19260c0654..a2cacc3de2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/StatusProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/StatusProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/status.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc; public final class StatusProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java index b4f41721bf..fd719ace9c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContext.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/context/attribute_context.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc.context; /** @@ -278,7 +279,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 6: return internalGetLabels(); @@ -805,7 +807,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 6: return internalGetLabels(); @@ -815,7 +818,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 6: return internalGetMutableLabels(); @@ -3362,6 +3366,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.rpc.context.AttributeContext.Auth.Builder.class); } + private int bitField0_; public static final int PRINCIPAL_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -3623,7 +3628,7 @@ public com.google.protobuf.ByteString getPresenterBytes() { */ @java.lang.Override public boolean hasClaims() { - return claims_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -3793,7 +3798,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presenter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, presenter_); } - if (claims_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getClaims()); } for (int i = 0; i < accessLevels_.size(); i++) { @@ -3822,7 +3827,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presenter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, presenter_); } - if (claims_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getClaims()); } { @@ -4017,10 +4022,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.rpc.context.AttributeContext.Auth.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getClaimsFieldBuilder(); + } } @java.lang.Override @@ -4082,13 +4096,16 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Auth result) if (((from_bitField0_ & 0x00000004) != 0)) { result.presenter_ = presenter_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.claims_ = claimsBuilder_ == null ? claims_ : claimsBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { accessLevels_.makeImmutable(); result.accessLevels_ = accessLevels_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -4956,8 +4973,10 @@ public Builder mergeClaims(com.google.protobuf.Struct value) { } else { claimsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (claims_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -5804,7 +5823,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetHeaders(); @@ -5823,6 +5843,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.rpc.context.AttributeContext.Request.Builder.class); } + private int bitField0_; public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -6261,7 +6282,7 @@ public com.google.protobuf.ByteString getQueryBytes() { */ @java.lang.Override public boolean hasTime() { - return time_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -6438,7 +6459,7 @@ public com.google.protobuf.ByteString getReasonBytes() { */ @java.lang.Override public boolean hasAuth() { - return auth_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -6509,7 +6530,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, query_); } - if (time_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(9, getTime()); } if (size_ != 0L) { @@ -6521,7 +6542,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, reason_); } - if (auth_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(13, getAuth()); } getUnknownFields().writeTo(output); @@ -6561,7 +6582,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, query_); } - if (time_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTime()); } if (size_ != 0L) { @@ -6573,7 +6594,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, reason_); } - if (auth_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getAuth()); } size += getUnknownFields().getSerializedSize(); @@ -6774,7 +6795,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetHeaders(); @@ -6784,7 +6806,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 3: return internalGetMutableHeaders(); @@ -6804,10 +6827,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.rpc.context.AttributeContext.Request.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTimeFieldBuilder(); + getAuthFieldBuilder(); + } } @java.lang.Override @@ -6892,8 +6925,10 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Request resul if (((from_bitField0_ & 0x00000040) != 0)) { result.query_ = query_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { result.time_ = timeBuilder_ == null ? time_ : timeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000100) != 0)) { result.size_ = size_; @@ -6906,7 +6941,9 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Request resul } if (((from_bitField0_ & 0x00000800) != 0)) { result.auth_ = authBuilder_ == null ? auth_ : authBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -8066,8 +8103,10 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) { } else { timeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (time_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -8541,8 +8580,10 @@ public Builder mergeAuth(com.google.rpc.context.AttributeContext.Auth value) { } else { authBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000800; - onChanged(); + if (auth_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } return this; } /** @@ -8906,7 +8947,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetHeaders(); @@ -8925,6 +8967,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.rpc.context.AttributeContext.Response.Builder.class); } + private int bitField0_; public static final int CODE_FIELD_NUMBER = 1; private long code_ = 0L; /** @@ -9087,7 +9130,7 @@ public java.lang.String getHeadersOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasTime() { - return time_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -9138,7 +9181,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { */ @java.lang.Override public boolean hasBackendLatency() { - return backendLatency_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -9201,10 +9244,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 3); - if (time_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getTime()); } - if (backendLatency_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getBackendLatency()); } getUnknownFields().writeTo(output); @@ -9232,10 +9275,10 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, headers__); } - if (time_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTime()); } - if (backendLatency_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBackendLatency()); } size += getUnknownFields().getSerializedSize(); @@ -9414,7 +9457,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetHeaders(); @@ -9424,7 +9468,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 3: return internalGetMutableHeaders(); @@ -9444,10 +9489,20 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.rpc.context.AttributeContext.Response.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTimeFieldBuilder(); + getBackendLatencyFieldBuilder(); + } } @java.lang.Override @@ -9513,13 +9568,17 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Response resu result.headers_ = internalGetHeaders(); result.headers_.makeImmutable(); } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.time_ = timeBuilder_ == null ? time_ : timeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.backendLatency_ = backendLatencyBuilder_ == null ? backendLatency_ : backendLatencyBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -10056,8 +10115,10 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) { } else { timeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (time_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -10256,8 +10317,10 @@ public Builder mergeBackendLatency(com.google.protobuf.Duration value) { } else { backendLatencyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (backendLatency_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -10955,7 +11018,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 4: return internalGetLabels(); @@ -10976,6 +11040,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.rpc.context.AttributeContext.Resource.Builder.class); } + private int bitField0_; public static final int SERVICE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -11515,7 +11580,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -11565,7 +11630,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return updateTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -11616,7 +11681,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { */ @java.lang.Override public boolean hasDeleteTime() { - return deleteTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -11802,13 +11867,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(9, getUpdateTime()); } - if (deleteTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(10, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { @@ -11861,13 +11926,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); } - if (deleteTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { @@ -12081,7 +12146,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 4: return internalGetLabels(); @@ -12093,7 +12159,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 4: return internalGetMutableLabels(); @@ -12115,10 +12182,21 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.rpc.context.AttributeContext.Resource.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getDeleteTimeFieldBuilder(); + } } @java.lang.Override @@ -12208,17 +12286,21 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Resource resu if (((from_bitField0_ & 0x00000040) != 0)) { result.displayName_ = displayName_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000100) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000200) != 0)) { result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000400) != 0)) { result.etag_ = etag_; @@ -12226,6 +12308,7 @@ private void buildPartial0(com.google.rpc.context.AttributeContext.Resource resu if (((from_bitField0_ & 0x00000800) != 0)) { result.location_ = location_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -13559,8 +13642,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -13756,8 +13841,10 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (updateTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** @@ -13952,8 +14039,10 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { } else { deleteTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; - onChanged(); + if (deleteTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } /** @@ -14358,6 +14447,7 @@ public com.google.rpc.context.AttributeContext.Resource getDefaultInstanceForTyp } } + private int bitField0_; public static final int ORIGIN_FIELD_NUMBER = 7; private com.google.rpc.context.AttributeContext.Peer origin_; /** @@ -14375,7 +14465,7 @@ public com.google.rpc.context.AttributeContext.Resource getDefaultInstanceForTyp */ @java.lang.Override public boolean hasOrigin() { - return origin_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -14431,7 +14521,7 @@ public com.google.rpc.context.AttributeContext.PeerOrBuilder getOriginOrBuilder( */ @java.lang.Override public boolean hasSource() { - return source_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -14487,7 +14577,7 @@ public com.google.rpc.context.AttributeContext.PeerOrBuilder getSourceOrBuilder( */ @java.lang.Override public boolean hasDestination() { - return destination_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -14541,7 +14631,7 @@ public com.google.rpc.context.AttributeContext.PeerOrBuilder getDestinationOrBui */ @java.lang.Override public boolean hasRequest() { - return request_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -14591,7 +14681,7 @@ public com.google.rpc.context.AttributeContext.RequestOrBuilder getRequestOrBuil */ @java.lang.Override public boolean hasResponse() { - return response_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -14643,7 +14733,7 @@ public com.google.rpc.context.AttributeContext.ResponseOrBuilder getResponseOrBu */ @java.lang.Override public boolean hasResource() { - return resource_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -14697,7 +14787,7 @@ public com.google.rpc.context.AttributeContext.ResourceOrBuilder getResourceOrBu */ @java.lang.Override public boolean hasApi() { - return api_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -14812,25 +14902,25 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (source_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(1, getSource()); } - if (destination_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(2, getDestination()); } - if (request_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(3, getRequest()); } - if (response_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(4, getResponse()); } - if (resource_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(5, getResource()); } - if (api_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(6, getApi()); } - if (origin_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getOrigin()); } for (int i = 0; i < extensions_.size(); i++) { @@ -14845,25 +14935,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (source_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource()); } - if (destination_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDestination()); } - if (request_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequest()); } - if (response_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResponse()); } - if (resource_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getResource()); } - if (api_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getApi()); } - if (origin_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOrigin()); } for (int i = 0; i < extensions_.size(); i++) { @@ -15101,10 +15191,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.rpc.context.AttributeContext.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOriginFieldBuilder(); + getSourceFieldBuilder(); + getDestinationFieldBuilder(); + getRequestFieldBuilder(); + getResponseFieldBuilder(); + getResourceFieldBuilder(); + getApiFieldBuilder(); + getExtensionsFieldBuilder(); + } } @java.lang.Override @@ -15202,28 +15308,37 @@ private void buildPartialRepeatedFields(com.google.rpc.context.AttributeContext private void buildPartial0(com.google.rpc.context.AttributeContext result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.origin_ = originBuilder_ == null ? origin_ : originBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.destination_ = destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.api_ = apiBuilder_ == null ? api_ : apiBuilder_.build(); + to_bitField0_ |= 0x00000040; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -15530,8 +15645,10 @@ public Builder mergeOrigin(com.google.rpc.context.AttributeContext.Peer value) { } else { originBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (origin_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -15731,8 +15848,10 @@ public Builder mergeSource(com.google.rpc.context.AttributeContext.Peer value) { } else { sourceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (source_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -15933,8 +16052,10 @@ public Builder mergeDestination(com.google.rpc.context.AttributeContext.Peer val } else { destinationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (destination_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -16125,8 +16246,10 @@ public Builder mergeRequest(com.google.rpc.context.AttributeContext.Request valu } else { requestBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (request_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -16309,8 +16432,10 @@ public Builder mergeResponse(com.google.rpc.context.AttributeContext.Response va } else { responseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (response_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -16503,8 +16628,10 @@ public Builder mergeResource(com.google.rpc.context.AttributeContext.Resource va } else { resourceBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (resource_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** @@ -16694,8 +16821,10 @@ public Builder mergeApi(com.google.rpc.context.AttributeContext.Api value) { } else { apiBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (api_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextOrBuilder.java index c80e79e9d1..4ed495798e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/context/attribute_context.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc.context; public interface AttributeContextOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java index 0761c33a79..7dde5da2e3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AttributeContextProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/context/attribute_context.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc.context; public final class AttributeContextProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContext.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContext.java index 2a6e54b89d..1ba886b699 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContext.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContext.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/context/audit_context.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc.context; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.rpc.context.AuditContext.Builder.class); } + private int bitField0_; public static final int AUDIT_LOG_FIELD_NUMBER = 1; private com.google.protobuf.ByteString auditLog_ = com.google.protobuf.ByteString.EMPTY; /** @@ -99,7 +101,7 @@ public com.google.protobuf.ByteString getAuditLog() { */ @java.lang.Override public boolean hasScrubbedRequest() { - return scrubbedRequest_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -158,7 +160,7 @@ public com.google.protobuf.StructOrBuilder getScrubbedRequestOrBuilder() { */ @java.lang.Override public boolean hasScrubbedResponse() { - return scrubbedResponse_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -285,10 +287,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!auditLog_.isEmpty()) { output.writeBytes(1, auditLog_); } - if (scrubbedRequest_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getScrubbedRequest()); } - if (scrubbedResponse_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getScrubbedResponse()); } if (scrubbedResponseItemCount_ != 0) { @@ -309,10 +311,10 @@ public int getSerializedSize() { if (!auditLog_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, auditLog_); } - if (scrubbedRequest_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScrubbedRequest()); } - if (scrubbedResponse_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScrubbedResponse()); } if (scrubbedResponseItemCount_ != 0) { @@ -500,10 +502,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.rpc.context.AuditContext.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getScrubbedRequestFieldBuilder(); + getScrubbedResponseFieldBuilder(); + } } @java.lang.Override @@ -561,13 +573,16 @@ private void buildPartial0(com.google.rpc.context.AuditContext result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.auditLog_ = auditLog_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.scrubbedRequest_ = scrubbedRequestBuilder_ == null ? scrubbedRequest_ : scrubbedRequestBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.scrubbedResponse_ = scrubbedResponseBuilder_ == null ? scrubbedResponse_ : scrubbedResponseBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.scrubbedResponseItemCount_ = scrubbedResponseItemCount_; @@ -575,6 +590,7 @@ private void buildPartial0(com.google.rpc.context.AuditContext result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.targetResource_ = targetResource_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -887,8 +903,10 @@ public Builder mergeScrubbedRequest(com.google.protobuf.Struct value) { } else { scrubbedRequestBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (scrubbedRequest_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1097,8 +1115,10 @@ public Builder mergeScrubbedResponse(com.google.protobuf.Struct value) { } else { scrubbedResponseBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (scrubbedResponse_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContextOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContextOrBuilder.java index e92c0cdf94..2db858454e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContextOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContextOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/context/audit_context.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc.context; public interface AuditContextOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContextProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContextProto.java index 21195b3c4b..d4d30c1124 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContextProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/rpc/context/AuditContextProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/rpc/context/audit_context.proto +// Protobuf Java Version: 3.25.2 package com.google.rpc.context; public final class AuditContextProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriod.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriod.java index 6ff4490e35..0944fea1d7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriod.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriod.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/calendar_period.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriodProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriodProto.java index c4f038504c..4f213656dd 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriodProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/CalendarPeriodProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/calendar_period.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class CalendarPeriodProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java index 8773d55506..cc59bbecf2 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Color.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/color.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** @@ -180,6 +181,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.type.Color.class, com.google.type.Color.Builder.class); } + private int bitField0_; public static final int RED_FIELD_NUMBER = 1; private float red_ = 0F; /** @@ -259,7 +261,7 @@ public float getBlue() { */ @java.lang.Override public boolean hasAlpha() { - return alpha_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -333,7 +335,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Float.floatToRawIntBits(blue_) != 0) { output.writeFloat(3, blue_); } - if (alpha_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getAlpha()); } getUnknownFields().writeTo(output); @@ -354,7 +356,7 @@ public int getSerializedSize() { if (java.lang.Float.floatToRawIntBits(blue_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, blue_); } - if (alpha_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAlpha()); } size += getUnknownFields().getSerializedSize(); @@ -651,10 +653,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.type.Color.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAlphaFieldBuilder(); + } } @java.lang.Override @@ -712,9 +723,12 @@ private void buildPartial0(com.google.type.Color result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.blue_ = blue_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.alpha_ = alphaBuilder_ == null ? alpha_ : alphaBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1152,8 +1166,10 @@ public Builder mergeAlpha(com.google.protobuf.FloatValue value) { } else { alphaBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (alpha_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java index eb53a17bb9..f23c502de3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/color.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface ColorOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorProto.java index 1a93525b1c..61bd38ff31 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ColorProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/color.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class ColorProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java index 63ca592438..022a08947c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Date.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/date.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateOrBuilder.java index d3b2a3cb04..41d85c3fcd 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/date.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface DateOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateProto.java index f9fd29cc94..3279197ab0 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/date.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class DateProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java index 6613a68f9b..c6570e818a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTime.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/datetime.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java index 3d237dbb18..2f54676314 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/datetime.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface DateTimeOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeProto.java index 403e98100c..8fb02ef676 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DateTimeProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/datetime.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class DateTimeProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DayOfWeek.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DayOfWeek.java index a85fb321f5..4a4161a674 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DayOfWeek.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DayOfWeek.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/dayofweek.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DayOfWeekProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DayOfWeekProto.java index 010e7d2801..a96aa11467 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DayOfWeekProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DayOfWeekProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/dayofweek.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class DayOfWeekProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Decimal.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Decimal.java index 85c5e83914..04f0dfb506 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Decimal.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Decimal.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/decimal.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java index 73e0329eb2..39b40fb623 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/decimal.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface DecimalOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalProto.java index 56ac896667..2e192bebc8 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/DecimalProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/decimal.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class DecimalProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Expr.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Expr.java index 5c263f56db..98b8baf76e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Expr.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Expr.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/expr.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ExprOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ExprOrBuilder.java index 5d442ca063..0a66498cff 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ExprOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ExprOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/expr.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface ExprOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ExprProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ExprProto.java index bc47445ad3..51211bec78 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ExprProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ExprProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/expr.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class ExprProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Fraction.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Fraction.java index 318805a142..1f6fee1722 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Fraction.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Fraction.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/fraction.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/FractionOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/FractionOrBuilder.java index 57c5d51a29..fb997e0246 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/FractionOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/FractionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/fraction.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface FractionOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/FractionProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/FractionProto.java index dea8f4ea46..eb6aa483fb 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/FractionProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/FractionProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/fraction.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class FractionProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Interval.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Interval.java index 81ca0dc8cb..e64ddce88e 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Interval.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Interval.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/interval.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.type.Interval.class, com.google.type.Interval.Builder.class); } + private int bitField0_; public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** @@ -80,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasStartTime() { - return startTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -135,7 +137,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { */ @java.lang.Override public boolean hasEndTime() { - return endTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -186,10 +188,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getEndTime()); } getUnknownFields().writeTo(output); @@ -201,10 +203,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (startTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } - if (endTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } size += getUnknownFields().getSerializedSize(); @@ -379,10 +381,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.type.Interval.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } } @java.lang.Override @@ -433,12 +445,16 @@ public com.google.type.Interval buildPartial() { private void buildPartial0(com.google.type.Interval result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -664,8 +680,10 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -870,8 +888,10 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalOrBuilder.java index 0efe6bf8b5..08fc6b32ab 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/interval.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface IntervalOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalProto.java index ca3a9527b3..98192c9f3a 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/IntervalProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/interval.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class IntervalProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLng.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLng.java index e148349cfa..adb510eb1f 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLng.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLng.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/latlng.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLngOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLngOrBuilder.java index 978f42810e..a66e9062ef 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLngOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLngOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/latlng.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface LatLngOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLngProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLngProto.java index 5302d9e746..351b34c204 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLngProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LatLngProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/latlng.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class LatLngProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java index ee0799f976..80b45c925c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedText.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/localized_text.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java index ff8778cea4..06cf77c7f9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/localized_text.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface LocalizedTextOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextProto.java index 4d1559b6ae..cdabe1b2e3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/LocalizedTextProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/localized_text.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class LocalizedTextProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Money.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Money.java index 4d95a8264e..090e3531e7 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Money.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Money.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/money.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MoneyOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MoneyOrBuilder.java index 4495acb93a..56b0081b93 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MoneyOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MoneyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/money.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface MoneyOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MoneyProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MoneyProto.java index d6d549e9ef..bfd571494c 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MoneyProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MoneyProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/money.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class MoneyProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Month.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Month.java index 07bb37a9de..62f775547f 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Month.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Month.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/month.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MonthProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MonthProto.java index bfe5ee28ba..4900c221a3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MonthProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/MonthProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/month.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class MonthProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java index c4d446e5cc..719204cd11 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/phone_number.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java index a29bc63aa0..305c38ccf4 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/phone_number.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface PhoneNumberOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberProto.java index f69641eec3..3563cb87e3 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/phone_number.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class PhoneNumberProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java index 3acf78655f..b2a1edf759 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddress.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/postal_address.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java index e4822d0d4f..a15c32c984 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/postal_address.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface PostalAddressOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressProto.java index 1586e1a670..fca35cde05 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/PostalAddressProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/postal_address.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class PostalAddressProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java index 6106071ccb..c67bd5f460 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/Quaternion.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/quaternion.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/QuaternionOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/QuaternionOrBuilder.java index ed98241545..f8886d0ce1 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/QuaternionOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/QuaternionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/quaternion.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface QuaternionOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/QuaternionProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/QuaternionProto.java index 068b26b377..7ea367ff62 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/QuaternionProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/QuaternionProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/quaternion.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class QuaternionProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java index ed87299077..04612bc2be 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDay.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/timeofday.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayOrBuilder.java index 080bf80354..311d1127fc 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/timeofday.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface TimeOfDayOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayProto.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayProto.java index ffa69a4167..31a3724b73 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayProto.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeOfDayProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/timeofday.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public final class TimeOfDayProto { diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java index 6662588a79..28df7434d9 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZone.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/datetime.proto +// Protobuf Java Version: 3.25.2 package com.google.type; /** diff --git a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZoneOrBuilder.java b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZoneOrBuilder.java index 29c25159da..dacedfe61b 100644 --- a/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZoneOrBuilder.java +++ b/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/TimeZoneOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/type/datetime.proto +// Protobuf Java Version: 3.25.2 package com.google.type; public interface TimeZoneOrBuilder diff --git a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/field_behavior.proto b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/field_behavior.proto index 344cb0b1fc..21895bf552 100644 --- a/java-common-protos/proto-google-common-protos/src/main/proto/google/api/field_behavior.proto +++ b/java-common-protos/proto-google-common-protos/src/main/proto/google/api/field_behavior.proto @@ -37,7 +37,7 @@ extend google.protobuf.FieldOptions { // google.protobuf.Timestamp expire_time = 1 // [(google.api.field_behavior) = OUTPUT_ONLY, // (google.api.field_behavior) = IMMUTABLE]; - repeated google.api.FieldBehavior field_behavior = 1052; + repeated google.api.FieldBehavior field_behavior = 1052 [packed = false]; } // An indicator of the behavior of a given field (for example, that a field From 47b6ed761428b5f968742df2c911f9de8cc765bc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 13 Feb 2024 19:08:06 +0100 Subject: [PATCH 58/75] deps: update google auth library dependencies to v1.23.0 (#2466) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.auth:google-auth-library-credentials](https://togithub.com/googleapis/google-auth-library-java) | `1.22.0` -> `1.23.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.auth:google-auth-library-credentials/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.auth:google-auth-library-credentials/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.auth:google-auth-library-credentials/1.22.0/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.auth:google-auth-library-credentials/1.22.0/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [com.google.auth:google-auth-library-oauth2-http](https://togithub.com/googleapis/google-auth-library-java) | `1.22.0` -> `1.23.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.auth:google-auth-library-oauth2-http/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.auth:google-auth-library-oauth2-http/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.auth:google-auth-library-oauth2-http/1.22.0/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.auth:google-auth-library-oauth2-http/1.22.0/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [com.google.auth:google-auth-library-bom](https://togithub.com/googleapis/google-auth-library-java) | `1.22.0` -> `1.23.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.auth:google-auth-library-bom/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.auth:google-auth-library-bom/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.auth:google-auth-library-bom/1.22.0/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.auth:google-auth-library-bom/1.22.0/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes
googleapis/google-auth-library-java (com.google.auth:google-auth-library-credentials) ### [`v1.23.0`](https://togithub.com/googleapis/google-auth-library-java/blob/HEAD/CHANGELOG.md#1230-2024-02-05) [Compare Source](https://togithub.com/googleapis/google-auth-library-java/compare/v1.22.0...v1.23.0) ##### Features - Add context object to pass to supplier functions ([#​1363](https://togithub.com/googleapis/google-auth-library-java/issues/1363)) ([1d9efc7](https://togithub.com/googleapis/google-auth-library-java/commit/1d9efc78aa6ab24fc2aab5f081240a815c394c95)) - Adds support for user defined subject token suppliers in AWSCredentials and IdentityPoolCredentials ([#​1336](https://togithub.com/googleapis/google-auth-library-java/issues/1336)) ([64ce8a1](https://togithub.com/googleapis/google-auth-library-java/commit/64ce8a1fbb82cb19e17ca0c6713c7c187078c28b)) - Adds universe domain for DownscopedCredentials and ExternalAccountAuthorizedUserCredentials ([#​1355](https://togithub.com/googleapis/google-auth-library-java/issues/1355)) ([17ef707](https://togithub.com/googleapis/google-auth-library-java/commit/17ef70748aae4820f10694ae99c82ed7ca89dbce)) - Modify the refresh window to match go/async-token-refresh. Serverless tokens are cached until 4 minutes before expiration, so 4 minutes is the ideal refresh window. ([#​1352](https://togithub.com/googleapis/google-auth-library-java/issues/1352)) ([a7a8d7a](https://togithub.com/googleapis/google-auth-library-java/commit/a7a8d7a4102b0b7c1b83791947ccb662f060eca7)) ##### Bug Fixes - Add missing copyright header ([#​1364](https://togithub.com/googleapis/google-auth-library-java/issues/1364)) ([a24e563](https://togithub.com/googleapis/google-auth-library-java/commit/a24e5631b8198d988a7b82deab5453e43917b0d2)) - Issue [#​1347](https://togithub.com/googleapis/google-auth-library-java/issues/1347): ExternalAccountCredentials serialization is broken ([#​1358](https://togithub.com/googleapis/google-auth-library-java/issues/1358)) ([e3a2e9c](https://togithub.com/googleapis/google-auth-library-java/commit/e3a2e9cbdd767c4664d895f98f69d8b742d645f0)) - Refactor compute and cloudshell credentials to pass quota project to base class ([#​1284](https://togithub.com/googleapis/google-auth-library-java/issues/1284)) ([fb75239](https://togithub.com/googleapis/google-auth-library-java/commit/fb75239ead37b6677a392f38ea2ef2012b3f21e0))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/sdk-platform-java). Co-authored-by: Alice <65933803+alicejli@users.noreply.github.com> --- gax-java/dependencies.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gax-java/dependencies.properties b/gax-java/dependencies.properties index 36db3702c6..b6bbd6ca29 100644 --- a/gax-java/dependencies.properties +++ b/gax-java/dependencies.properties @@ -37,8 +37,8 @@ version.io_grpc=1.61.1 # 2) Replace all characters which are neither alphabetic nor digits with the underscore ('_') character maven.com_google_api_grpc_proto_google_common_protos=com.google.api.grpc:proto-google-common-protos:2.30.0 maven.com_google_api_grpc_grpc_google_common_protos=com.google.api.grpc:grpc-google-common-protos:2.30.0 -maven.com_google_auth_google_auth_library_oauth2_http=com.google.auth:google-auth-library-oauth2-http:1.22.0 -maven.com_google_auth_google_auth_library_credentials=com.google.auth:google-auth-library-credentials:1.22.0 +maven.com_google_auth_google_auth_library_oauth2_http=com.google.auth:google-auth-library-oauth2-http:1.23.0 +maven.com_google_auth_google_auth_library_credentials=com.google.auth:google-auth-library-credentials:1.23.0 maven.io_opencensus_opencensus_api=io.opencensus:opencensus-api:0.31.1 maven.io_opencensus_opencensus_contrib_grpc_metrics=io.opencensus:opencensus-contrib-grpc-metrics:0.31.1 maven.io_opencensus_opencensus_contrib_http_util=io.opencensus:opencensus-contrib-http-util:0.31.1 From 9ec415c00bd42fcfe4735a9b94c6adabba49ae0d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:08:31 -0500 Subject: [PATCH 59/75] chore: [iam,iam] set packed = false on field_behavior extension (#2435) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 604675854 Source-Link: https://github.com/googleapis/googleapis/commit/42c04fea4338ba626095ec2cde5ea75827191581 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1ed8a97a00d02fe456f6ebd4160c5b2b000ad75 Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6ImExZWQ4YTk3YTAwZDAyZmU0NTZmNmViZDQxNjBjNWIyYjAwMGFkNzUifQ== chore: set packed = false on field_behavior extension PiperOrigin-RevId: 604675854 Source-Link: https://github.com/googleapis/googleapis/commit/42c04fea4338ba626095ec2cde5ea75827191581 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1ed8a97a00d02fe456f6ebd4160c5b2b000ad75 Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6ImExZWQ4YTk3YTAwZDAyZmU0NTZmNmViZDQxNjBjNWIyYjAwMGFkNzUifQ== build: Update protobuf to 25.2 in WORKSPACE build: Update grpc to 1.60.0 in WORKSPACE build: Remove pin for boringssl in WORKSPACE build: Update bazel to 6.3.0 in .bazeliskrc PiperOrigin-RevId: 603226138 Source-Link: https://github.com/googleapis/googleapis/commit/2aec9e178dab3427c0ad5654c94a069e0bc7224c Source-Link: https://github.com/googleapis/googleapis-gen/commit/e9a5c2ef37b4d69c93e39141d87aae0b193c00b1 Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6ImU5YTVjMmVmMzdiNGQ2OWM5M2UzOTE0MWQ4N2FhZTBiMTkzYzAwYjEifQ== build: Update protobuf to 25.2 in WORKSPACE build: Update grpc to 1.60.0 in WORKSPACE build: Remove pin for boringssl in WORKSPACE build: Update bazel to 6.3.0 in .bazeliskrc PiperOrigin-RevId: 603226138 Source-Link: https://github.com/googleapis/googleapis/commit/2aec9e178dab3427c0ad5654c94a069e0bc7224c Source-Link: https://github.com/googleapis/googleapis-gen/commit/e9a5c2ef37b4d69c93e39141d87aae0b193c00b1 Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6ImU5YTVjMmVmMzdiNGQ2OWM5M2UzOTE0MWQ4N2FhZTBiMTkzYzAwYjEifQ== --------- Co-authored-by: Owl Bot Co-authored-by: Alice <65933803+alicejli@users.noreply.github.com> --- .../java/com/google/iam/v1/AuditConfig.java | 1 + .../com/google/iam/v1/AuditConfigDelta.java | 1 + .../iam/v1/AuditConfigDeltaOrBuilder.java | 1 + .../google/iam/v1/AuditConfigOrBuilder.java | 1 + .../com/google/iam/v1/AuditLogConfig.java | 1 + .../iam/v1/AuditLogConfigOrBuilder.java | 1 + .../main/java/com/google/iam/v1/Binding.java | 28 ++++- .../java/com/google/iam/v1/BindingDelta.java | 28 ++++- .../google/iam/v1/BindingDeltaOrBuilder.java | 1 + .../com/google/iam/v1/BindingOrBuilder.java | 1 + .../google/iam/v1/GetIamPolicyRequest.java | 28 ++++- .../iam/v1/GetIamPolicyRequestOrBuilder.java | 1 + .../com/google/iam/v1/GetPolicyOptions.java | 1 + .../iam/v1/GetPolicyOptionsOrBuilder.java | 1 + .../com/google/iam/v1/IamPolicyProto.java | 51 +++++---- .../java/com/google/iam/v1/OptionsProto.java | 1 + .../main/java/com/google/iam/v1/Policy.java | 1 + .../java/com/google/iam/v1/PolicyDelta.java | 1 + .../google/iam/v1/PolicyDeltaOrBuilder.java | 1 + .../com/google/iam/v1/PolicyOrBuilder.java | 1 + .../java/com/google/iam/v1/PolicyProto.java | 1 + .../google/iam/v1/SetIamPolicyRequest.java | 42 +++++-- .../iam/v1/SetIamPolicyRequestOrBuilder.java | 1 + .../iam/v1/TestIamPermissionsRequest.java | 1 + .../TestIamPermissionsRequestOrBuilder.java | 1 + .../iam/v1/TestIamPermissionsResponse.java | 1 + .../TestIamPermissionsResponseOrBuilder.java | 1 + .../google/iam/v2/CreatePolicyRequest.java | 28 ++++- .../iam/v2/CreatePolicyRequestOrBuilder.java | 1 + .../google/iam/v2/DeletePolicyRequest.java | 1 + .../iam/v2/DeletePolicyRequestOrBuilder.java | 1 + .../main/java/com/google/iam/v2/DenyRule.java | 28 ++++- .../com/google/iam/v2/DenyRuleOrBuilder.java | 1 + .../java/com/google/iam/v2/DenyRuleProto.java | 1 + .../com/google/iam/v2/GetPolicyRequest.java | 1 + .../iam/v2/GetPolicyRequestOrBuilder.java | 1 + .../google/iam/v2/ListPoliciesRequest.java | 1 + .../iam/v2/ListPoliciesRequestOrBuilder.java | 1 + .../google/iam/v2/ListPoliciesResponse.java | 1 + .../iam/v2/ListPoliciesResponseOrBuilder.java | 1 + .../main/java/com/google/iam/v2/Policy.java | 66 +++++++---- .../iam/v2/PolicyOperationMetadata.java | 28 ++++- .../v2/PolicyOperationMetadataOrBuilder.java | 1 + .../com/google/iam/v2/PolicyOrBuilder.java | 1 + .../java/com/google/iam/v2/PolicyProto.java | 106 ++++++++--------- .../java/com/google/iam/v2/PolicyRule.java | 1 + .../google/iam/v2/PolicyRuleOrBuilder.java | 1 + .../google/iam/v2/UpdatePolicyRequest.java | 28 ++++- .../iam/v2/UpdatePolicyRequestOrBuilder.java | 1 + .../iam/v2beta/CreatePolicyRequest.java | 28 ++++- .../v2beta/CreatePolicyRequestOrBuilder.java | 1 + .../iam/v2beta/DeletePolicyRequest.java | 1 + .../v2beta/DeletePolicyRequestOrBuilder.java | 1 + .../java/com/google/iam/v2beta/DenyRule.java | 28 ++++- .../google/iam/v2beta/DenyRuleOrBuilder.java | 1 + .../com/google/iam/v2beta/DenyRuleProto.java | 1 + .../google/iam/v2beta/GetPolicyRequest.java | 1 + .../iam/v2beta/GetPolicyRequestOrBuilder.java | 1 + .../iam/v2beta/ListPoliciesRequest.java | 1 + .../v2beta/ListPoliciesRequestOrBuilder.java | 1 + .../iam/v2beta/ListPoliciesResponse.java | 1 + .../v2beta/ListPoliciesResponseOrBuilder.java | 1 + .../java/com/google/iam/v2beta/Policy.java | 66 +++++++---- .../iam/v2beta/PolicyOperationMetadata.java | 28 ++++- .../PolicyOperationMetadataOrBuilder.java | 1 + .../google/iam/v2beta/PolicyOrBuilder.java | 1 + .../com/google/iam/v2beta/PolicyProto.java | 107 +++++++++--------- .../com/google/iam/v2beta/PolicyRule.java | 1 + .../iam/v2beta/PolicyRuleOrBuilder.java | 1 + .../iam/v2beta/UpdatePolicyRequest.java | 28 ++++- .../v2beta/UpdatePolicyRequestOrBuilder.java | 1 + 71 files changed, 554 insertions(+), 246 deletions(-) diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java index fac6f574fe..b0b0aaca1e 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java index 440dab63d8..69e1164bd4 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDelta.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java index e1bea6c244..f9aeb38635 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigDeltaOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface AuditConfigDeltaOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java index 06911aaf2b..9a6b3b15b5 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface AuditConfigOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java index 1e5f85f7a9..236a141e97 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java index 4025472975..c313f23210 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/AuditLogConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface AuditLogConfigOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java index 778f23ff58..17e69c5ff0 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Binding.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v1.Binding.class, com.google.iam.v1.Binding.Builder.class); } + private int bitField0_; public static final int ROLE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -367,7 +369,7 @@ public com.google.protobuf.ByteString getMembersBytes(int index) { */ @java.lang.Override public boolean hasCondition() { - return condition_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -440,7 +442,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < members_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, members_.getRaw(i)); } - if (condition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getCondition()); } getUnknownFields().writeTo(output); @@ -463,7 +465,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getMembersList().size(); } - if (condition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCondition()); } size += getUnknownFields().getSerializedSize(); @@ -633,10 +635,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v1.Binding.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConditionFieldBuilder(); + } } @java.lang.Override @@ -691,9 +702,12 @@ private void buildPartial0(com.google.iam.v1.Binding result) { members_.makeImmutable(); result.members_ = members_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1630,8 +1644,10 @@ public Builder mergeCondition(com.google.type.Expr value) { } else { conditionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (condition_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java index 3474c4b814..1c93c13bfb 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDelta.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** @@ -220,6 +221,7 @@ private Action(int value) { // @@protoc_insertion_point(enum_scope:google.iam.v1.BindingDelta.Action) } + private int bitField0_; public static final int ACTION_FIELD_NUMBER = 1; private int action_ = 0; /** @@ -382,7 +384,7 @@ public com.google.protobuf.ByteString getMemberBytes() { */ @java.lang.Override public boolean hasCondition() { - return condition_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -436,7 +438,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(member_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, member_); } - if (condition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getCondition()); } getUnknownFields().writeTo(output); @@ -457,7 +459,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(member_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, member_); } - if (condition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCondition()); } size += getUnknownFields().getSerializedSize(); @@ -630,10 +632,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v1.BindingDelta.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConditionFieldBuilder(); + } } @java.lang.Override @@ -691,9 +702,12 @@ private void buildPartial0(com.google.iam.v1.BindingDelta result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.member_ = member_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1251,8 +1265,10 @@ public Builder mergeCondition(com.google.type.Expr value) { } else { conditionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (condition_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java index 19c3c51200..b76744913f 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingDeltaOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface BindingDeltaOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java index 3210a84fa6..c6f2fafbef 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/BindingOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface BindingOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java index 0de2f70543..1c94f5957b 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v1.GetIamPolicyRequest.Builder.class); } + private int bitField0_; public static final int RESOURCE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -135,7 +137,7 @@ public com.google.protobuf.ByteString getResourceBytes() { */ @java.lang.Override public boolean hasOptions() { - return options_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -185,7 +187,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } - if (options_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getOptions()); } getUnknownFields().writeTo(output); @@ -200,7 +202,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } - if (options_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOptions()); } size += getUnknownFields().getSerializedSize(); @@ -368,10 +370,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v1.GetIamPolicyRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOptionsFieldBuilder(); + } } @java.lang.Override @@ -423,9 +434,12 @@ private void buildPartial0(com.google.iam.v1.GetIamPolicyRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.resource_ = resource_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -766,8 +780,10 @@ public Builder mergeOptions(com.google.iam.v1.GetPolicyOptions value) { } else { optionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (options_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java index 5f90592d42..efa95ef76d 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetIamPolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface GetIamPolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java index e35ffbc58c..8e8e71c9b5 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptions.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/options.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java index e93425ad57..b7dcd6b3cd 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/GetPolicyOptionsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/options.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface GetPolicyOptionsOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java index a61d0e275d..29b08f3bb0 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/IamPolicyProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public final class IamPolicyProto { @@ -58,31 +59,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_behavior.proto\032\031google/api/resource.pro" + "to\032\033google/iam/v1/options.proto\032\032google/" + "iam/v1/policy.proto\032 google/protobuf/fie" - + "ld_mask.proto\"\221\001\n\023SetIamPolicyRequest\022\034\n" - + "\010resource\030\001 \001(\tB\n\342A\001\002\372A\003\n\001*\022+\n\006policy\030\002 " - + "\001(\0132\025.google.iam.v1.PolicyB\004\342A\001\002\022/\n\013upda" - + "te_mask\030\003 \001(\0132\032.google.protobuf.FieldMas" - + "k\"e\n\023GetIamPolicyRequest\022\034\n\010resource\030\001 \001" - + "(\tB\n\342A\001\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google" - + ".iam.v1.GetPolicyOptions\"T\n\031TestIamPermi" - + "ssionsRequest\022\034\n\010resource\030\001 \001(\tB\n\342A\001\002\372A\003" - + "\n\001*\022\031\n\013permissions\030\002 \003(\tB\004\342A\001\002\"1\n\032TestIa" - + "mPermissionsResponse\022\023\n\013permissions\030\001 \003(" - + "\t2\264\003\n\tIAMPolicy\022t\n\014SetIamPolicy\022\".google" - + ".iam.v1.SetIamPolicyRequest\032\025.google.iam" - + ".v1.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:se" - + "tIamPolicy:\001*\022t\n\014GetIamPolicy\022\".google.i" - + "am.v1.GetIamPolicyRequest\032\025.google.iam.v" - + "1.Policy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getI" - + "amPolicy:\001*\022\232\001\n\022TestIamPermissions\022(.goo" - + "gle.iam.v1.TestIamPermissionsRequest\032).g" - + "oogle.iam.v1.TestIamPermissionsResponse\"" - + "/\202\323\344\223\002)\"$/v1/{resource=**}:testIamPermis" - + "sions:\001*\032\036\312A\033iam-meta-api.googleapis.com" - + "B\177\n\021com.google.iam.v1B\016IamPolicyProtoP\001Z" - + ")cloud.google.com/go/iam/apiv1/iampb;iam" - + "pb\370\001\001\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Clo" - + "ud\\Iam\\V1b\006proto3" + + "ld_mask.proto\"\217\001\n\023SetIamPolicyRequest\022\033\n" + + "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022*\n\006policy\030\002 \001" + + "(\0132\025.google.iam.v1.PolicyB\003\340A\002\022/\n\013update" + + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"" + + "d\n\023GetIamPolicyRequest\022\033\n\010resource\030\001 \001(\t" + + "B\t\340A\002\372A\003\n\001*\0220\n\007options\030\002 \001(\0132\037.google.ia" + + "m.v1.GetPolicyOptions\"R\n\031TestIamPermissi" + + "onsRequest\022\033\n\010resource\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022" + + "\030\n\013permissions\030\002 \003(\tB\003\340A\002\"1\n\032TestIamPerm" + + "issionsResponse\022\023\n\013permissions\030\001 \003(\t2\264\003\n" + + "\tIAMPolicy\022t\n\014SetIamPolicy\022\".google.iam." + + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" + + "olicy\")\202\323\344\223\002#\"\036/v1/{resource=**}:setIamP" + + "olicy:\001*\022t\n\014GetIamPolicy\022\".google.iam.v1" + + ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" + + "icy\")\202\323\344\223\002#\"\036/v1/{resource=**}:getIamPol" + + "icy:\001*\022\232\001\n\022TestIamPermissions\022(.google.i" + + "am.v1.TestIamPermissionsRequest\032).google" + + ".iam.v1.TestIamPermissionsResponse\"/\202\323\344\223" + + "\002)\"$/v1/{resource=**}:testIamPermissions" + + ":\001*\032\036\312A\033iam-meta-api.googleapis.comB\177\n\021c" + + "om.google.iam.v1B\016IamPolicyProtoP\001Z)clou" + + "d.google.com/go/iam/apiv1/iampb;iampb\370\001\001" + + "\252\002\023Google.Cloud.Iam.V1\312\002\023Google\\Cloud\\Ia" + + "m\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java index 9f6acfc563..7d66e302b2 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/OptionsProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/options.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public final class OptionsProto { diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java index f083596f44..e6525d22c3 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/Policy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java index 0bb05d202a..67b9e25988 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDelta.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java index fd3e1c0ddc..2682ceaa9b 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyDeltaOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface PolicyDeltaOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java index 2039d3792a..ab84de9cd6 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface PolicyOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java index 13ad10267e..1b5726937d 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/PolicyProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public final class PolicyProto { diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java index 791d082320..d5d97a66e1 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v1.SetIamPolicyRequest.Builder.class); } + private int bitField0_; public static final int RESOURCE_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -137,7 +139,7 @@ public com.google.protobuf.ByteString getResourceBytes() { */ @java.lang.Override public boolean hasPolicy() { - return policy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -193,7 +195,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -249,10 +251,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPolicy()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getUpdateMask()); } getUnknownFields().writeTo(output); @@ -267,10 +269,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); @@ -446,10 +448,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v1.SetIamPolicyRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPolicyFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } @java.lang.Override @@ -506,12 +518,16 @@ private void buildPartial0(com.google.iam.v1.SetIamPolicyRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.resource_ = resource_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -869,8 +885,10 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { } else { policyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (policy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -1081,8 +1099,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java index b7c42c8855..2d3c2734e0 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/SetIamPolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface SetIamPolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java index 6f976b91d9..692d4dd982 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java index 53b56f2781..3a5236284c 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface TestIamPermissionsRequestOrBuilder diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java index 5aa85996b5..93d6e4c9c5 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; /** diff --git a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java index da677cbe54..27a9066426 100644 --- a/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java +++ b/java-iam/proto-google-iam-v1/src/main/java/com/google/iam/v1/TestIamPermissionsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v1/iam_policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v1; public interface TestIamPermissionsResponseOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java index aebfd03e94..30828b2591 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2.CreatePolicyRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -149,7 +151,7 @@ public com.google.protobuf.ByteString getParentBytes() { */ @java.lang.Override public boolean hasPolicy() { - return policy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -254,7 +256,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyId_)) { @@ -272,7 +274,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyId_)) { @@ -446,10 +448,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2.CreatePolicyRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPolicyFieldBuilder(); + } } @java.lang.Override @@ -502,12 +513,15 @@ private void buildPartial0(com.google.iam.v2.CreatePolicyRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.policyId_ = policyId_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -887,8 +901,10 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) { } else { policyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (policy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java index 750931920c..d0f692435f 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/CreatePolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface CreatePolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java index da614d7f5d..93d838121e 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java index 16a7afe664..c69dd95e58 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DeletePolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface DeletePolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java index b2c67c6e00..e24a4c0f15 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/deny.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2.DenyRule.class, com.google.iam.v2.DenyRule.Builder.class); } + private int bitField0_; public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -563,7 +565,7 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { */ @java.lang.Override public boolean hasDenialCondition() { - return denialCondition_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -641,7 +643,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 4, exceptionPermissions_.getRaw(i)); } - if (denialCondition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getDenialCondition()); } getUnknownFields().writeTo(output); @@ -685,7 +687,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getExceptionPermissionsList().size(); } - if (denialCondition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDenialCondition()); } size += getUnknownFields().getSerializedSize(); @@ -868,10 +870,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2.DenyRule.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDenialConditionFieldBuilder(); + } } @java.lang.Override @@ -937,10 +948,13 @@ private void buildPartial0(com.google.iam.v2.DenyRule result) { exceptionPermissions_.makeImmutable(); result.exceptionPermissions_ = exceptionPermissions_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.denialCondition_ = denialConditionBuilder_ == null ? denialCondition_ : denialConditionBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2451,8 +2465,10 @@ public Builder mergeDenialCondition(com.google.type.Expr value) { } else { denialConditionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (denialCondition_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java index cb8dd9758c..e2551f3e75 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/deny.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface DenyRuleOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java index fbe8dc3714..4b9b73d966 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/DenyRuleProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/deny.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public final class DenyRuleProto { diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java index 77cc07fc1b..eab2ddc328 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java index 4756f85ed0..739fa7f84e 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/GetPolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface GetPolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java index c73842ac23..5c9d450d59 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java index 45bde87af8..5b466283af 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface ListPoliciesRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java index 12b0194f2a..f8b752043d 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java index 1faeb31cfb..b737d57d25 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/ListPoliciesResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface ListPoliciesResponseOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java index 050d80fdb2..d5a747ef61 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/Policy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** @@ -59,7 +60,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetAnnotations(); @@ -76,6 +78,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.iam.v2.Policy.class, com.google.iam.v2.Policy.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -490,7 +493,7 @@ public com.google.protobuf.ByteString getEtagBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -539,7 +542,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return updateTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -588,7 +591,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { */ @java.lang.Override public boolean hasDeleteTime() { - return deleteTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -780,13 +783,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getUpdateTime()); } - if (deleteTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(9, getDeleteTime()); } for (int i = 0; i < rules_.size(); i++) { @@ -829,13 +832,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } - if (deleteTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDeleteTime()); } for (int i = 0; i < rules_.size(); i++) { @@ -1039,7 +1042,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetAnnotations(); @@ -1049,7 +1053,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 5: return internalGetMutableAnnotations(); @@ -1067,10 +1072,22 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.iam.v2.Policy.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getDeleteTimeFieldBuilder(); + getRulesFieldBuilder(); + } } @java.lang.Override @@ -1172,18 +1189,23 @@ private void buildPartial0(com.google.iam.v2.Policy result) { if (((from_bitField0_ & 0x00000020) != 0)) { result.etag_ = etag_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000080) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000400) != 0)) { result.managingAuthority_ = managingAuthority_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2327,8 +2349,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** @@ -2528,8 +2552,10 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -2729,8 +2755,10 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { } else { deleteTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (deleteTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java index 1c91456cb8..11275b2b49 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2.PolicyOperationMetadata.Builder.class); } + private int bitField0_; public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** @@ -75,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -120,7 +122,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCreateTime()); } getUnknownFields().writeTo(output); @@ -132,7 +134,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } size += getUnknownFields().getSerializedSize(); @@ -299,10 +301,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2.PolicyOperationMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } } @java.lang.Override @@ -350,9 +361,12 @@ public com.google.iam.v2.PolicyOperationMetadata buildPartial() { private void buildPartial0(com.google.iam.v2.PolicyOperationMetadata result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -556,8 +570,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java index 902e8200cd..ebd4fddf0c 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOperationMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface PolicyOperationMetadataOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java index 8e87db6374..a2d006d147 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface PolicyOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java index e8933f1a0c..2d6d2304aa 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public final class PolicyProto { @@ -81,59 +82,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e/api/client.proto\032\037google/api/field_beh" + "avior.proto\032\030google/iam/v2/deny.proto\032#g" + "oogle/longrunning/operations.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\311\003\n\006Policy\022\022" - + "\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 \001(\tB\004\342A\001\005\022\022\n" - + "\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display_name\030\004 \001(\t\022" - + ";\n\013annotations\030\005 \003(\0132&.google.iam.v2.Pol" - + "icy.AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0225\n\013cr" - + "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" - + "ampB\004\342A\001\003\0225\n\013update_time\030\010 \001(\0132\032.google." - + "protobuf.TimestampB\004\342A\001\003\0225\n\013delete_time\030" - + "\t \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" - + "(\n\005rules\030\n \003(\0132\031.google.iam.v2.PolicyRul" - + "e\022 \n\022managing_authority\030\013 \001(\tB\004\342A\001\005\0322\n\020A" - + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\"W\n\nPolicyRule\022,\n\tdeny_rule\030\002 \001(\013" - + "2\027.google.iam.v2.DenyRuleH\000\022\023\n\013descripti" - + "on\030\001 \001(\tB\006\n\004kind\"R\n\023ListPoliciesRequest\022" - + "\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\"X\n\024ListPoliciesResp" - + "onse\022\'\n\010policies\030\001 \003(\0132\025.google.iam.v2.P" - + "olicy\022\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPol" - + "icyRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"k\n\023Create" - + "PolicyRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022+\n\006p" - + "olicy\030\002 \001(\0132\025.google.iam.v2.PolicyB\004\342A\001\002" - + "\022\021\n\tpolicy_id\030\003 \001(\t\"B\n\023UpdatePolicyReque" - + "st\022+\n\006policy\030\001 \001(\0132\025.google.iam.v2.Polic" - + "yB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name\030\001" - + " \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Policy" - + "OperationMetadata\022/\n\013create_time\030\001 \001(\0132\032" - + ".google.protobuf.Timestamp2\320\006\n\010Policies\022" - + "\203\001\n\014ListPolicies\022\".google.iam.v2.ListPol" - + "iciesRequest\032#.google.iam.v2.ListPolicie" - + "sResponse\"*\332A\006parent\202\323\344\223\002\033\022\031/v2/{parent=" - + "policies/*/*}\022m\n\tGetPolicy\022\037.google.iam." - + "v2.GetPolicyRequest\032\025.google.iam.v2.Poli" - + "cy\"(\332A\004name\202\323\344\223\002\033\022\031/v2/{name=policies/*/" - + "*/*}\022\272\001\n\014CreatePolicy\022\".google.iam.v2.Cr" - + "eatePolicyRequest\032\035.google.longrunning.O" - + "peration\"g\312A!\n\006Policy\022\027PolicyOperationMe" - + "tadata\332A\027parent,policy,policy_id\202\323\344\223\002#\"\031" - + "/v2/{parent=policies/*/*}:\006policy\022\247\001\n\014Up" - + "datePolicy\022\".google.iam.v2.UpdatePolicyR" - + "equest\032\035.google.longrunning.Operation\"T\312" - + "A!\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002" - + "*\032 /v2/{policy.name=policies/*/*/*}:\006pol" - + "icy\022\237\001\n\014DeletePolicy\022\".google.iam.v2.Del" - + "etePolicyRequest\032\035.google.longrunning.Op" - + "eration\"L\312A!\n\006Policy\022\027PolicyOperationMet" - + "adata\332A\004name\202\323\344\223\002\033*\031/v2/{name=policies/*" - + "/*/*}\032F\312A\022iam.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformBy\n" - + "\021com.google.iam.v2B\013PolicyProtoP\001Z)cloud" - + ".google.com/go/iam/apiv2/iampb;iampb\252\002\023G" - + "oogle.Cloud.Iam.V2\312\002\023Google\\Cloud\\Iam\\V2" - + "b\006proto3" + + "le/protobuf/timestamp.proto\"\302\003\n\006Policy\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001(\tB\003\340A\005\022\021\n\004k" + + "ind\030\003 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(\t\022;\n\013" + + "annotations\030\005 \003(\0132&.google.iam.v2.Policy" + + ".AnnotationsEntry\022\014\n\004etag\030\006 \001(\t\0224\n\013creat" + + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022(\n\005rul" + + "es\030\n \003(\0132\031.google.iam.v2.PolicyRule\022\037\n\022m" + + "anaging_authority\030\013 \001(\tB\003\340A\005\0322\n\020Annotati" + + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"W\n\nPolicyRule\022,\n\tdeny_rule\030\002 \001(\0132\027.goog" + + "le.iam.v2.DenyRuleH\000\022\023\n\013description\030\001 \001(" + + "\tB\006\n\004kind\"Q\n\023ListPoliciesRequest\022\023\n\006pare" + + "nt\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\"X\n\024ListPoliciesResponse\022\'\n\010" + + "policies\030\001 \003(\0132\025.google.iam.v2.Policy\022\027\n" + + "\017next_page_token\030\002 \001(\t\"%\n\020GetPolicyReque" + + "st\022\021\n\004name\030\001 \001(\tB\003\340A\002\"i\n\023CreatePolicyReq" + + "uest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022*\n\006policy\030\002 \001(" + + "\0132\025.google.iam.v2.PolicyB\003\340A\002\022\021\n\tpolicy_" + + "id\030\003 \001(\t\"A\n\023UpdatePolicyRequest\022*\n\006polic" + + "y\030\001 \001(\0132\025.google.iam.v2.PolicyB\003\340A\002\";\n\023D" + + "eletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMetad" + + "ata\022/\n\013create_time\030\001 \001(\0132\032.google.protob" + + "uf.Timestamp2\320\006\n\010Policies\022\203\001\n\014ListPolici" + + "es\022\".google.iam.v2.ListPoliciesRequest\032#" + + ".google.iam.v2.ListPoliciesResponse\"*\332A\006" + + "parent\202\323\344\223\002\033\022\031/v2/{parent=policies/*/*}\022" + + "m\n\tGetPolicy\022\037.google.iam.v2.GetPolicyRe" + + "quest\032\025.google.iam.v2.Policy\"(\332A\004name\202\323\344" + + "\223\002\033\022\031/v2/{name=policies/*/*/*}\022\272\001\n\014Creat" + + "ePolicy\022\".google.iam.v2.CreatePolicyRequ" + + "est\032\035.google.longrunning.Operation\"g\312A!\n" + + "\006Policy\022\027PolicyOperationMetadata\332A\027paren" + + "t,policy,policy_id\202\323\344\223\002#\"\031/v2/{parent=po" + + "licies/*/*}:\006policy\022\247\001\n\014UpdatePolicy\022\".g" + + "oogle.iam.v2.UpdatePolicyRequest\032\035.googl" + + "e.longrunning.Operation\"T\312A!\n\006Policy\022\027Po" + + "licyOperationMetadata\202\323\344\223\002*\032 /v2/{policy" + + ".name=policies/*/*/*}:\006policy\022\237\001\n\014Delete" + + "Policy\022\".google.iam.v2.DeletePolicyReque" + + "st\032\035.google.longrunning.Operation\"L\312A!\n\006" + + "Policy\022\027PolicyOperationMetadata\332A\004name\202\323" + + "\344\223\002\033*\031/v2/{name=policies/*/*/*}\032F\312A\022iam." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformBy\n\021com.google.ia" + + "m.v2B\013PolicyProtoP\001Z)cloud.google.com/go" + + "/iam/apiv2/iampb;iampb\252\002\023Google.Cloud.Ia" + + "m.V2\312\002\023Google\\Cloud\\Iam\\V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java index da2a6fce90..df1565d49f 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java index d3c32e76c7..8b45ef22c6 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/PolicyRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface PolicyRuleOrBuilder diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java index c4de3e992b..a6f0e0dd23 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2.UpdatePolicyRequest.Builder.class); } + private int bitField0_; public static final int POLICY_FIELD_NUMBER = 1; private com.google.iam.v2.Policy policy_; /** @@ -79,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasPolicy() { - return policy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -132,7 +134,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPolicy()); } getUnknownFields().writeTo(output); @@ -144,7 +146,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); } size += getUnknownFields().getSerializedSize(); @@ -309,10 +311,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2.UpdatePolicyRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPolicyFieldBuilder(); + } } @java.lang.Override @@ -360,9 +371,12 @@ public com.google.iam.v2.UpdatePolicyRequest buildPartial() { private void buildPartial0(com.google.iam.v2.UpdatePolicyRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -584,8 +598,10 @@ public Builder mergePolicy(com.google.iam.v2.Policy value) { } else { policyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (policy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java index 3a26ee64ee..a101f37edc 100644 --- a/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2/src/main/java/com/google/iam/v2/UpdatePolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2; public interface UpdatePolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java index 8bfee5bdb3..2087ddaf05 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2beta.CreatePolicyRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -149,7 +151,7 @@ public com.google.protobuf.ByteString getParentBytes() { */ @java.lang.Override public boolean hasPolicy() { - return policy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -254,7 +256,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyId_)) { @@ -272,7 +274,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyId_)) { @@ -448,10 +450,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2beta.CreatePolicyRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPolicyFieldBuilder(); + } } @java.lang.Override @@ -504,12 +515,15 @@ private void buildPartial0(com.google.iam.v2beta.CreatePolicyRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.policyId_ = policyId_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -889,8 +903,10 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) { } else { policyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (policy_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java index 51a7e57106..5ef58e0d02 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/CreatePolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface CreatePolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java index 45c3eece78..b03d51c0e2 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java index 101572706d..787b6b080b 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DeletePolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface DeletePolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java index c3e7ce1587..86eef3e734 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/deny.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2beta.DenyRule.class, com.google.iam.v2beta.DenyRule.Builder.class); } + private int bitField0_; public static final int DENIED_PRINCIPALS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -565,7 +567,7 @@ public com.google.protobuf.ByteString getExceptionPermissionsBytes(int index) { */ @java.lang.Override public boolean hasDenialCondition() { - return denialCondition_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -643,7 +645,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 4, exceptionPermissions_.getRaw(i)); } - if (denialCondition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getDenialCondition()); } getUnknownFields().writeTo(output); @@ -687,7 +689,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getExceptionPermissionsList().size(); } - if (denialCondition_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDenialCondition()); } size += getUnknownFields().getSerializedSize(); @@ -871,10 +873,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2beta.DenyRule.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDenialConditionFieldBuilder(); + } } @java.lang.Override @@ -941,10 +952,13 @@ private void buildPartial0(com.google.iam.v2beta.DenyRule result) { exceptionPermissions_.makeImmutable(); result.exceptionPermissions_ = exceptionPermissions_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.denialCondition_ = denialConditionBuilder_ == null ? denialCondition_ : denialConditionBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2455,8 +2469,10 @@ public Builder mergeDenialCondition(com.google.type.Expr value) { } else { denialConditionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (denialCondition_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java index 28e0b45b8f..2edcce635d 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/deny.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface DenyRuleOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java index 2f14e35670..d470f81c1f 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/DenyRuleProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/deny.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public final class DenyRuleProto { diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java index dcf3497554..b261fd4dbc 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java index 589313315d..725c4a18b9 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/GetPolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface GetPolicyRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java index d1e880b733..b82547064e 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java index 1370a31505..5f413fb349 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface ListPoliciesRequestOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java index 7510ee8933..aa5abb4b96 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java index 51d88d35e0..e725ce5d8f 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/ListPoliciesResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface ListPoliciesResponseOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java index 2d50b0fedc..c08798b136 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/Policy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** @@ -58,7 +59,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetAnnotations(); @@ -76,6 +78,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.iam.v2beta.Policy.class, com.google.iam.v2beta.Policy.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -490,7 +493,7 @@ public com.google.protobuf.ByteString getEtagBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -539,7 +542,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return updateTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -588,7 +591,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { */ @java.lang.Override public boolean hasDeleteTime() { - return deleteTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -728,13 +731,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getUpdateTime()); } - if (deleteTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(9, getDeleteTime()); } for (int i = 0; i < rules_.size(); i++) { @@ -774,13 +777,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); } - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } - if (updateTime_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } - if (deleteTime_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDeleteTime()); } for (int i = 0; i < rules_.size(); i++) { @@ -978,7 +981,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 5: return internalGetAnnotations(); @@ -988,7 +992,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 5: return internalGetMutableAnnotations(); @@ -1007,10 +1012,22 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.iam.v2beta.Policy.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getDeleteTimeFieldBuilder(); + getRulesFieldBuilder(); + } } @java.lang.Override @@ -1111,15 +1128,20 @@ private void buildPartial0(com.google.iam.v2beta.Policy result) { if (((from_bitField0_ & 0x00000020) != 0)) { result.etag_ = etag_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000080) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2252,8 +2274,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** @@ -2453,8 +2477,10 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -2654,8 +2680,10 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { } else { deleteTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (deleteTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java index aec75b94e9..2d63d51cf6 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadata.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2beta.PolicyOperationMetadata.Builder.class); } + private int bitField0_; public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** @@ -75,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasCreateTime() { - return createTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -120,7 +122,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCreateTime()); } getUnknownFields().writeTo(output); @@ -132,7 +134,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (createTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } size += getUnknownFields().getSerializedSize(); @@ -299,10 +301,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2beta.PolicyOperationMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } } @java.lang.Override @@ -350,9 +361,12 @@ public com.google.iam.v2beta.PolicyOperationMetadata buildPartial() { private void buildPartial0(com.google.iam.v2beta.PolicyOperationMetadata result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -556,8 +570,10 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java index 11fc1dca82..c1e6ecfffa 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOperationMetadataOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface PolicyOperationMetadataOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java index 2c6929cd7e..b3eb63526f 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface PolicyOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java index fab21840a2..3de619c15d 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public final class PolicyProto { @@ -82,59 +83,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ield_behavior.proto\032\034google/iam/v2beta/d" + "eny.proto\032#google/longrunning/operations" + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\257\003\n\006Policy\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\021\n\003uid\030\002 " - + "\001(\tB\004\342A\001\005\022\022\n\004kind\030\003 \001(\tB\004\342A\001\003\022\024\n\014display" - + "_name\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.googl" - + "e.iam.v2beta.Policy.AnnotationsEntry\022\014\n\004" - + "etag\030\006 \001(\t\0225\n\013create_time\030\007 \001(\0132\032.google" - + ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time" - + "\030\010 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" - + "\0225\n\013delete_time\030\t \001(\0132\032.google.protobuf." - + "TimestampB\004\342A\001\003\022,\n\005rules\030\n \003(\0132\035.google." - + "iam.v2beta.PolicyRule\0322\n\020AnnotationsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPol" - + "icyRule\0220\n\tdeny_rule\030\002 \001(\0132\033.google.iam." - + "v2beta.DenyRuleH\000\022\023\n\013description\030\001 \001(\tB\006" - + "\n\004kind\"R\n\023ListPoliciesRequest\022\024\n\006parent\030" - + "\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"\\\n\024ListPoliciesResponse\022+\n\010po" - + "licies\030\001 \003(\0132\031.google.iam.v2beta.Policy\022" - + "\027\n\017next_page_token\030\002 \001(\t\"&\n\020GetPolicyReq" - + "uest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\"o\n\023CreatePolicy" - + "Request\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022/\n\006policy\030" - + "\002 \001(\0132\031.google.iam.v2beta.PolicyB\004\342A\001\002\022\021" - + "\n\tpolicy_id\030\003 \001(\t\"F\n\023UpdatePolicyRequest" - + "\022/\n\006policy\030\001 \001(\0132\031.google.iam.v2beta.Pol" - + "icyB\004\342A\001\002\"=\n\023DeletePolicyRequest\022\022\n\004name" - + "\030\001 \001(\tB\004\342A\001\002\022\022\n\004etag\030\002 \001(\tB\004\342A\001\001\"J\n\027Poli" - + "cyOperationMetadata\022/\n\013create_time\030\001 \001(\013" - + "2\032.google.protobuf.Timestamp2\200\007\n\010Policie" - + "s\022\217\001\n\014ListPolicies\022&.google.iam.v2beta.L" - + "istPoliciesRequest\032\'.google.iam.v2beta.L" - + "istPoliciesResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v" - + "2beta/{parent=policies/*/*}\022y\n\tGetPolicy" - + "\022#.google.iam.v2beta.GetPolicyRequest\032\031." - + "google.iam.v2beta.Policy\",\332A\004name\202\323\344\223\002\037\022" - + "\035/v2beta/{name=policies/*/*/*}\022\302\001\n\014Creat" - + "ePolicy\022&.google.iam.v2beta.CreatePolicy" - + "Request\032\035.google.longrunning.Operation\"k" - + "\312A!\n\006Policy\022\027PolicyOperationMetadata\332A\027p" - + "arent,policy,policy_id\202\323\344\223\002\'\"\035/v2beta/{p" - + "arent=policies/*/*}:\006policy\022\257\001\n\014UpdatePo" - + "licy\022&.google.iam.v2beta.UpdatePolicyReq" - + "uest\032\035.google.longrunning.Operation\"X\312A!" - + "\n\006Policy\022\027PolicyOperationMetadata\202\323\344\223\002.\032" - + "$/v2beta/{policy.name=policies/*/*/*}:\006p" - + "olicy\022\247\001\n\014DeletePolicy\022&.google.iam.v2be" - + "ta.DeletePolicyRequest\032\035.google.longrunn" - + "ing.Operation\"P\312A!\n\006Policy\022\027PolicyOperat" - + "ionMetadata\332A\004name\202\323\344\223\002\037*\035/v2beta/{name=" - + "policies/*/*/*}\032F\312A\022iam.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\211\001\n\025com.google.iam.v2betaB\013Polic" - + "yProtoP\001Z-cloud.google.com/go/iam/apiv2b" - + "eta/iampb;iampb\252\002\027Google.Cloud.Iam.V2Bet" - + "a\312\002\027Google\\Cloud\\Iam\\V2betab\006proto3" + + "\251\003\n\006Policy\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\020\n\003uid\030\002 \001" + + "(\tB\003\340A\005\022\021\n\004kind\030\003 \001(\tB\003\340A\003\022\024\n\014display_na" + + "me\030\004 \001(\t\022?\n\013annotations\030\005 \003(\0132*.google.i" + + "am.v2beta.Policy.AnnotationsEntry\022\014\n\004eta" + + "g\030\006 \001(\t\0224\n\013create_time\030\007 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013d" + + "elete_time\030\t \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022,\n\005rules\030\n \003(\0132\035.google.iam.v2" + + "beta.PolicyRule\0322\n\020AnnotationsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"[\n\nPolicyRul" + + "e\0220\n\tdeny_rule\030\002 \001(\0132\033.google.iam.v2beta" + + ".DenyRuleH\000\022\023\n\013description\030\001 \001(\tB\006\n\004kind" + + "\"Q\n\023ListPoliciesRequest\022\023\n\006parent\030\001 \001(\tB" + + "\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"\\\n\024ListPoliciesResponse\022+\n\010policies\030" + + "\001 \003(\0132\031.google.iam.v2beta.Policy\022\027\n\017next" + + "_page_token\030\002 \001(\t\"%\n\020GetPolicyRequest\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\"m\n\023CreatePolicyRequest\022" + + "\023\n\006parent\030\001 \001(\tB\003\340A\002\022.\n\006policy\030\002 \001(\0132\031.g" + + "oogle.iam.v2beta.PolicyB\003\340A\002\022\021\n\tpolicy_i" + + "d\030\003 \001(\t\"E\n\023UpdatePolicyRequest\022.\n\006policy" + + "\030\001 \001(\0132\031.google.iam.v2beta.PolicyB\003\340A\002\";" + + "\n\023DeletePolicyRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002" + + "\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"J\n\027PolicyOperationMe" + + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.Timestamp2\200\007\n\010Policies\022\217\001\n\014ListPol" + + "icies\022&.google.iam.v2beta.ListPoliciesRe" + + "quest\032\'.google.iam.v2beta.ListPoliciesRe" + + "sponse\".\332A\006parent\202\323\344\223\002\037\022\035/v2beta/{parent" + + "=policies/*/*}\022y\n\tGetPolicy\022#.google.iam" + + ".v2beta.GetPolicyRequest\032\031.google.iam.v2" + + "beta.Policy\",\332A\004name\202\323\344\223\002\037\022\035/v2beta/{nam" + + "e=policies/*/*/*}\022\302\001\n\014CreatePolicy\022&.goo" + + "gle.iam.v2beta.CreatePolicyRequest\032\035.goo" + + "gle.longrunning.Operation\"k\312A!\n\006Policy\022\027" + + "PolicyOperationMetadata\332A\027parent,policy," + + "policy_id\202\323\344\223\002\'\"\035/v2beta/{parent=policie" + + "s/*/*}:\006policy\022\257\001\n\014UpdatePolicy\022&.google" + + ".iam.v2beta.UpdatePolicyRequest\032\035.google" + + ".longrunning.Operation\"X\312A!\n\006Policy\022\027Pol" + + "icyOperationMetadata\202\323\344\223\002.\032$/v2beta/{pol" + + "icy.name=policies/*/*/*}:\006policy\022\247\001\n\014Del" + + "etePolicy\022&.google.iam.v2beta.DeletePoli" + + "cyRequest\032\035.google.longrunning.Operation" + + "\"P\312A!\n\006Policy\022\027PolicyOperationMetadata\332A" + + "\004name\202\323\344\223\002\037*\035/v2beta/{name=policies/*/*/" + + "*}\032F\312A\022iam.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platformB\211\001\n\025c" + + "om.google.iam.v2betaB\013PolicyProtoP\001Z-clo" + + "ud.google.com/go/iam/apiv2beta/iampb;iam" + + "pb\252\002\027Google.Cloud.Iam.V2Beta\312\002\027Google\\Cl" + + "oud\\Iam\\V2betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java index 1f68e133bc..9862026d77 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRule.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java index f6463abdbb..210e966b1e 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/PolicyRuleOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface PolicyRuleOrBuilder diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java index f7b368d981..9a72bea366 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.iam.v2beta.UpdatePolicyRequest.Builder.class); } + private int bitField0_; public static final int POLICY_FIELD_NUMBER = 1; private com.google.iam.v2beta.Policy policy_; /** @@ -79,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasPolicy() { - return policy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -132,7 +134,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPolicy()); } getUnknownFields().writeTo(output); @@ -144,7 +146,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (policy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); } size += getUnknownFields().getSerializedSize(); @@ -311,10 +313,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.iam.v2beta.UpdatePolicyRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPolicyFieldBuilder(); + } } @java.lang.Override @@ -362,9 +373,12 @@ public com.google.iam.v2beta.UpdatePolicyRequest buildPartial() { private void buildPartial0(com.google.iam.v2beta.UpdatePolicyRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -586,8 +600,10 @@ public Builder mergePolicy(com.google.iam.v2beta.Policy value) { } else { policyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (policy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java index 231607713a..eace2e41e1 100644 --- a/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v2beta/src/main/java/com/google/iam/v2beta/UpdatePolicyRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/v2beta/policy.proto +// Protobuf Java Version: 3.25.2 package com.google.iam.v2beta; public interface UpdatePolicyRequestOrBuilder From 68666e7a03fdb429323ea4ad00d1eb715b2db56c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 13 Feb 2024 19:14:37 +0100 Subject: [PATCH 60/75] deps: update google http client dependencies to v1.44.1 (#2467) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.http-client:google-http-client](https://togithub.com/googleapis/google-http-java-client) | `1.43.3` -> `1.44.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.http-client:google-http-client/1.44.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.http-client:google-http-client/1.44.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.http-client:google-http-client/1.43.3/1.44.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.http-client:google-http-client/1.43.3/1.44.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [com.google.http-client:google-http-client-gson](https://togithub.com/googleapis/google-http-java-client) | `1.43.3` -> `1.44.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.http-client:google-http-client-gson/1.44.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.http-client:google-http-client-gson/1.44.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.http-client:google-http-client-gson/1.43.3/1.44.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.http-client:google-http-client-gson/1.43.3/1.44.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [com.google.http-client:google-http-client-bom](https://togithub.com/googleapis/google-http-java-client/tree/master/google-http-client-bom) ([source](https://togithub.com/googleapis/google-http-java-client)) | `1.43.3` -> `1.44.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.http-client:google-http-client-bom/1.44.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.http-client:google-http-client-bom/1.44.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.http-client:google-http-client-bom/1.43.3/1.44.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.http-client:google-http-client-bom/1.43.3/1.44.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes
googleapis/google-http-java-client (com.google.http-client:google-http-client) ### [`v1.44.1`](https://togithub.com/googleapis/google-http-java-client/blob/HEAD/CHANGELOG.md#1441-2024-01-26) [Compare Source](https://togithub.com/googleapis/google-http-java-client/compare/v1.43.3...v1.44.1) ##### Bug Fixes - Fixing declaration of maven-source-plugin for release job ([f555f56](https://togithub.com/googleapis/google-http-java-client/commit/f555f562d44ab83b2cb672fa351c665336043880))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/sdk-platform-java). --- gapic-generator-java-pom-parent/pom.xml | 2 +- gax-java/dependencies.properties | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gapic-generator-java-pom-parent/pom.xml b/gapic-generator-java-pom-parent/pom.xml index f7efb1c652..a08bcf47fe 100644 --- a/gapic-generator-java-pom-parent/pom.xml +++ b/gapic-generator-java-pom-parent/pom.xml @@ -28,7 +28,7 @@ 1.3.2 1.61.1 1.22.0 - 1.43.3 + 1.44.1 2.10.1 32.1.3-jre 3.25.2 diff --git a/gax-java/dependencies.properties b/gax-java/dependencies.properties index b6bbd6ca29..dfcdf5ed07 100644 --- a/gax-java/dependencies.properties +++ b/gax-java/dependencies.properties @@ -70,8 +70,8 @@ maven.com_google_api_api_common=com.google.api:api-common:2.22.0 maven.org_threeten_threetenbp=org.threeten:threetenbp:1.6.8 maven.com_google_api_grpc_grpc_google_iam_v1=com.google.api.grpc:grpc-google-iam-v1:1.25.0 maven.com_google_api_grpc_proto_google_iam_v1=com.google.api.grpc:proto-google-iam-v1:1.25.0 -maven.com_google_http_client_google_http_client=com.google.http-client:google-http-client:1.43.3 -maven.com_google_http_client_google_http_client_gson=com.google.http-client:google-http-client-gson:1.43.3 +maven.com_google_http_client_google_http_client=com.google.http-client:google-http-client:1.44.1 +maven.com_google_http_client_google_http_client_gson=com.google.http-client:google-http-client-gson:1.44.1 maven.org_codehaus_mojo_animal_sniffer_annotations=org.codehaus.mojo:animal-sniffer-annotations:1.23 maven.javax_annotation_javax_annotation_api=javax.annotation:javax.annotation-api:1.3.2 maven.org_graalvm_sdk=org.graalvm.sdk:graal-sdk:22.3.3 From 119fba8438fc472ab42c2b02f002e8718f2a4e80 Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Tue, 13 Feb 2024 13:35:07 -0500 Subject: [PATCH 61/75] chore: remove unused files from showcase. (#2464) removing redundant files. context from https://github.com/googleapis/sdk-platform-java/pull/2450#issuecomment-1939516093 --- .../google/showcase/v1beta1/BlurbName.java | 473 ------------------ .../google/showcase/v1beta1/ProfileName.java | 168 ------- .../com/google/showcase/v1beta1/RoomName.java | 166 ------ .../google/showcase/v1beta1/SequenceName.java | 168 ------- .../showcase/v1beta1/SequenceReportName.java | 168 ------- .../google/showcase/v1beta1/SessionName.java | 168 ------- .../v1beta1/StreamingSequenceName.java | 168 ------- .../v1beta1/StreamingSequenceReportName.java | 170 ------- .../com/google/showcase/v1beta1/TestName.java | 191 ------- .../com/google/showcase/v1beta1/UserName.java | 166 ------ 10 files changed, 2006 deletions(-) delete mode 100644 showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/BlurbName.java delete mode 100644 showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/ProfileName.java delete mode 100644 showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/RoomName.java delete mode 100644 showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SequenceName.java delete mode 100644 showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java delete mode 100644 showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SessionName.java delete mode 100644 showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java delete mode 100644 showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java delete mode 100644 showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/TestName.java delete mode 100644 showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/UserName.java diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/BlurbName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/BlurbName.java deleted file mode 100644 index 6bab6a2810..0000000000 --- a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/BlurbName.java +++ /dev/null @@ -1,473 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.showcase.v1beta1; - -import com.google.api.core.BetaApi; -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.pathtemplate.ValidationException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class BlurbName implements ResourceName { - private static final PathTemplate USER_LEGACY_USER_BLURB = - PathTemplate.createWithoutUrlEncoding( - "users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}"); - private static final PathTemplate USER_BLURB = - PathTemplate.createWithoutUrlEncoding("users/{user}/profile/blurbs/{blurb}"); - private static final PathTemplate ROOM_BLURB = - PathTemplate.createWithoutUrlEncoding("rooms/{room}/blurbs/{blurb}"); - private static final PathTemplate ROOM_LEGACY_ROOM_BLURB = - PathTemplate.createWithoutUrlEncoding("rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}"); - private volatile Map fieldValuesMap; - private PathTemplate pathTemplate; - private String fixedValue; - private final String user; - private final String legacyUser; - private final String blurb; - private final String room; - private final String legacyRoom; - - @Deprecated - protected BlurbName() { - user = null; - legacyUser = null; - blurb = null; - room = null; - legacyRoom = null; - } - - private BlurbName(Builder builder) { - user = Preconditions.checkNotNull(builder.getUser()); - legacyUser = Preconditions.checkNotNull(builder.getLegacyUser()); - blurb = Preconditions.checkNotNull(builder.getBlurb()); - room = null; - legacyRoom = null; - pathTemplate = USER_LEGACY_USER_BLURB; - } - - private BlurbName(UserBlurbBuilder builder) { - user = Preconditions.checkNotNull(builder.getUser()); - blurb = Preconditions.checkNotNull(builder.getBlurb()); - legacyUser = null; - room = null; - legacyRoom = null; - pathTemplate = USER_BLURB; - } - - private BlurbName(RoomBlurbBuilder builder) { - room = Preconditions.checkNotNull(builder.getRoom()); - blurb = Preconditions.checkNotNull(builder.getBlurb()); - user = null; - legacyUser = null; - legacyRoom = null; - pathTemplate = ROOM_BLURB; - } - - private BlurbName(RoomLegacyRoomBlurbBuilder builder) { - room = Preconditions.checkNotNull(builder.getRoom()); - legacyRoom = Preconditions.checkNotNull(builder.getLegacyRoom()); - blurb = Preconditions.checkNotNull(builder.getBlurb()); - user = null; - legacyUser = null; - pathTemplate = ROOM_LEGACY_ROOM_BLURB; - } - - public String getUser() { - return user; - } - - public String getLegacyUser() { - return legacyUser; - } - - public String getBlurb() { - return blurb; - } - - public String getRoom() { - return room; - } - - public String getLegacyRoom() { - return legacyRoom; - } - - public static Builder newBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static Builder newUserLegacyUserBlurbBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static UserBlurbBuilder newUserBlurbBuilder() { - return new UserBlurbBuilder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static RoomBlurbBuilder newRoomBlurbBuilder() { - return new RoomBlurbBuilder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static RoomLegacyRoomBlurbBuilder newRoomLegacyRoomBlurbBuilder() { - return new RoomLegacyRoomBlurbBuilder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static BlurbName of(String user, String legacyUser, String blurb) { - return newBuilder().setUser(user).setLegacyUser(legacyUser).setBlurb(blurb).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static BlurbName ofUserLegacyUserBlurbName(String user, String legacyUser, String blurb) { - return newBuilder().setUser(user).setLegacyUser(legacyUser).setBlurb(blurb).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static BlurbName ofUserBlurbName(String user, String blurb) { - return newUserBlurbBuilder().setUser(user).setBlurb(blurb).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static BlurbName ofRoomBlurbName(String room, String blurb) { - return newRoomBlurbBuilder().setRoom(room).setBlurb(blurb).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static BlurbName ofRoomLegacyRoomBlurbName(String room, String legacyRoom, String blurb) { - return newRoomLegacyRoomBlurbBuilder() - .setRoom(room) - .setLegacyRoom(legacyRoom) - .setBlurb(blurb) - .build(); - } - - public static String format(String user, String legacyUser, String blurb) { - return newBuilder().setUser(user).setLegacyUser(legacyUser).setBlurb(blurb).build().toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatUserLegacyUserBlurbName(String user, String legacyUser, String blurb) { - return newBuilder().setUser(user).setLegacyUser(legacyUser).setBlurb(blurb).build().toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatUserBlurbName(String user, String blurb) { - return newUserBlurbBuilder().setUser(user).setBlurb(blurb).build().toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatRoomBlurbName(String room, String blurb) { - return newRoomBlurbBuilder().setRoom(room).setBlurb(blurb).build().toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatRoomLegacyRoomBlurbName(String room, String legacyRoom, String blurb) { - return newRoomLegacyRoomBlurbBuilder() - .setRoom(room) - .setLegacyRoom(legacyRoom) - .setBlurb(blurb) - .build() - .toString(); - } - - public static BlurbName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - if (USER_LEGACY_USER_BLURB.matches(formattedString)) { - Map matchMap = USER_LEGACY_USER_BLURB.match(formattedString); - return ofUserLegacyUserBlurbName( - matchMap.get("user"), matchMap.get("legacy_user"), matchMap.get("blurb")); - } else if (USER_BLURB.matches(formattedString)) { - Map matchMap = USER_BLURB.match(formattedString); - return ofUserBlurbName(matchMap.get("user"), matchMap.get("blurb")); - } else if (ROOM_BLURB.matches(formattedString)) { - Map matchMap = ROOM_BLURB.match(formattedString); - return ofRoomBlurbName(matchMap.get("room"), matchMap.get("blurb")); - } else if (ROOM_LEGACY_ROOM_BLURB.matches(formattedString)) { - Map matchMap = ROOM_LEGACY_ROOM_BLURB.match(formattedString); - return ofRoomLegacyRoomBlurbName( - matchMap.get("room"), matchMap.get("legacy_room"), matchMap.get("blurb")); - } - throw new ValidationException("BlurbName.parse: formattedString not in valid format"); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (BlurbName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return USER_LEGACY_USER_BLURB.matches(formattedString) - || USER_BLURB.matches(formattedString) - || ROOM_BLURB.matches(formattedString) - || ROOM_LEGACY_ROOM_BLURB.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (user != null) { - fieldMapBuilder.put("user", user); - } - if (legacyUser != null) { - fieldMapBuilder.put("legacy_user", legacyUser); - } - if (blurb != null) { - fieldMapBuilder.put("blurb", blurb); - } - if (room != null) { - fieldMapBuilder.put("room", room); - } - if (legacyRoom != null) { - fieldMapBuilder.put("legacy_room", legacyRoom); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - BlurbName that = ((BlurbName) o); - return Objects.equals(this.user, that.user) - && Objects.equals(this.legacyUser, that.legacyUser) - && Objects.equals(this.blurb, that.blurb) - && Objects.equals(this.room, that.room) - && Objects.equals(this.legacyRoom, that.legacyRoom); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(fixedValue); - h *= 1000003; - h ^= Objects.hashCode(user); - h *= 1000003; - h ^= Objects.hashCode(legacyUser); - h *= 1000003; - h ^= Objects.hashCode(blurb); - h *= 1000003; - h ^= Objects.hashCode(room); - h *= 1000003; - h ^= Objects.hashCode(legacyRoom); - return h; - } - - /** Builder for users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}. */ - public static class Builder { - private String user; - private String legacyUser; - private String blurb; - - protected Builder() {} - - public String getUser() { - return user; - } - - public String getLegacyUser() { - return legacyUser; - } - - public String getBlurb() { - return blurb; - } - - public Builder setUser(String user) { - this.user = user; - return this; - } - - public Builder setLegacyUser(String legacyUser) { - this.legacyUser = legacyUser; - return this; - } - - public Builder setBlurb(String blurb) { - this.blurb = blurb; - return this; - } - - private Builder(BlurbName blurbName) { - Preconditions.checkArgument( - Objects.equals(blurbName.pathTemplate, USER_LEGACY_USER_BLURB), - "toBuilder is only supported when BlurbName has the pattern of users/{user}/profile/blurbs/legacy/{legacy_user}~{blurb}"); - this.user = blurbName.user; - this.legacyUser = blurbName.legacyUser; - this.blurb = blurbName.blurb; - } - - public BlurbName build() { - return new BlurbName(this); - } - } - - /** Builder for users/{user}/profile/blurbs/{blurb}. */ - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class UserBlurbBuilder { - private String user; - private String blurb; - - protected UserBlurbBuilder() {} - - public String getUser() { - return user; - } - - public String getBlurb() { - return blurb; - } - - public UserBlurbBuilder setUser(String user) { - this.user = user; - return this; - } - - public UserBlurbBuilder setBlurb(String blurb) { - this.blurb = blurb; - return this; - } - - public BlurbName build() { - return new BlurbName(this); - } - } - - /** Builder for rooms/{room}/blurbs/{blurb}. */ - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class RoomBlurbBuilder { - private String room; - private String blurb; - - protected RoomBlurbBuilder() {} - - public String getRoom() { - return room; - } - - public String getBlurb() { - return blurb; - } - - public RoomBlurbBuilder setRoom(String room) { - this.room = room; - return this; - } - - public RoomBlurbBuilder setBlurb(String blurb) { - this.blurb = blurb; - return this; - } - - public BlurbName build() { - return new BlurbName(this); - } - } - - /** Builder for rooms/{room}/blurbs/legacy/{legacy_room}.{blurb}. */ - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class RoomLegacyRoomBlurbBuilder { - private String room; - private String legacyRoom; - private String blurb; - - protected RoomLegacyRoomBlurbBuilder() {} - - public String getRoom() { - return room; - } - - public String getLegacyRoom() { - return legacyRoom; - } - - public String getBlurb() { - return blurb; - } - - public RoomLegacyRoomBlurbBuilder setRoom(String room) { - this.room = room; - return this; - } - - public RoomLegacyRoomBlurbBuilder setLegacyRoom(String legacyRoom) { - this.legacyRoom = legacyRoom; - return this; - } - - public RoomLegacyRoomBlurbBuilder setBlurb(String blurb) { - this.blurb = blurb; - return this; - } - - public BlurbName build() { - return new BlurbName(this); - } - } -} diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/ProfileName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/ProfileName.java deleted file mode 100644 index fe133f5e34..0000000000 --- a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/ProfileName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.showcase.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class ProfileName implements ResourceName { - private static final PathTemplate USER = - PathTemplate.createWithoutUrlEncoding("users/{user}/profile/blurbs"); - private volatile Map fieldValuesMap; - private final String user; - - @Deprecated - protected ProfileName() { - user = null; - } - - private ProfileName(Builder builder) { - user = Preconditions.checkNotNull(builder.getUser()); - } - - public String getUser() { - return user; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ProfileName of(String user) { - return newBuilder().setUser(user).build(); - } - - public static String format(String user) { - return newBuilder().setUser(user).build().toString(); - } - - public static ProfileName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - USER.validatedMatch( - formattedString, "ProfileName.parse: formattedString not in valid format"); - return of(matchMap.get("user")); - } - - 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 (ProfileName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return USER.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (user != null) { - fieldMapBuilder.put("user", user); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return USER.instantiate("user", user); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - ProfileName that = ((ProfileName) o); - return Objects.equals(this.user, that.user); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(user); - return h; - } - - /** Builder for users/{user}/profile/blurbs. */ - public static class Builder { - private String user; - - protected Builder() {} - - public String getUser() { - return user; - } - - public Builder setUser(String user) { - this.user = user; - return this; - } - - private Builder(ProfileName profileName) { - this.user = profileName.user; - } - - public ProfileName build() { - return new ProfileName(this); - } - } -} diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/RoomName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/RoomName.java deleted file mode 100644 index 36e2739874..0000000000 --- a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/RoomName.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.showcase.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class RoomName implements ResourceName { - private static final PathTemplate ROOM = PathTemplate.createWithoutUrlEncoding("rooms/{room}"); - private volatile Map fieldValuesMap; - private final String room; - - @Deprecated - protected RoomName() { - room = null; - } - - private RoomName(Builder builder) { - room = Preconditions.checkNotNull(builder.getRoom()); - } - - public String getRoom() { - return room; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static RoomName of(String room) { - return newBuilder().setRoom(room).build(); - } - - public static String format(String room) { - return newBuilder().setRoom(room).build().toString(); - } - - public static RoomName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - ROOM.validatedMatch(formattedString, "RoomName.parse: formattedString not in valid format"); - return of(matchMap.get("room")); - } - - 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 (RoomName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return ROOM.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (room != null) { - fieldMapBuilder.put("room", room); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return ROOM.instantiate("room", room); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - RoomName that = ((RoomName) o); - return Objects.equals(this.room, that.room); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(room); - return h; - } - - /** Builder for rooms/{room}. */ - public static class Builder { - private String room; - - protected Builder() {} - - public String getRoom() { - return room; - } - - public Builder setRoom(String room) { - this.room = room; - return this; - } - - private Builder(RoomName roomName) { - this.room = roomName.room; - } - - public RoomName build() { - return new RoomName(this); - } - } -} diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SequenceName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SequenceName.java deleted file mode 100644 index 2d262a9bc2..0000000000 --- a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SequenceName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.showcase.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class SequenceName implements ResourceName { - private static final PathTemplate SEQUENCE = - PathTemplate.createWithoutUrlEncoding("sequences/{sequence}"); - private volatile Map fieldValuesMap; - private final String sequence; - - @Deprecated - protected SequenceName() { - sequence = null; - } - - private SequenceName(Builder builder) { - sequence = Preconditions.checkNotNull(builder.getSequence()); - } - - public String getSequence() { - return sequence; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static SequenceName of(String sequence) { - return newBuilder().setSequence(sequence).build(); - } - - public static String format(String sequence) { - return newBuilder().setSequence(sequence).build().toString(); - } - - public static SequenceName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - SEQUENCE.validatedMatch( - formattedString, "SequenceName.parse: formattedString not in valid format"); - return of(matchMap.get("sequence")); - } - - 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 (SequenceName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return SEQUENCE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (sequence != null) { - fieldMapBuilder.put("sequence", sequence); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return SEQUENCE.instantiate("sequence", sequence); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - SequenceName that = ((SequenceName) o); - return Objects.equals(this.sequence, that.sequence); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(sequence); - return h; - } - - /** Builder for sequences/{sequence}. */ - public static class Builder { - private String sequence; - - protected Builder() {} - - public String getSequence() { - return sequence; - } - - public Builder setSequence(String sequence) { - this.sequence = sequence; - return this; - } - - private Builder(SequenceName sequenceName) { - this.sequence = sequenceName.sequence; - } - - public SequenceName build() { - return new SequenceName(this); - } - } -} diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java deleted file mode 100644 index 56a62ac6a5..0000000000 --- a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.showcase.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class SequenceReportName implements ResourceName { - private static final PathTemplate SEQUENCE = - PathTemplate.createWithoutUrlEncoding("sequences/{sequence}/sequenceReport"); - private volatile Map fieldValuesMap; - private final String sequence; - - @Deprecated - protected SequenceReportName() { - sequence = null; - } - - private SequenceReportName(Builder builder) { - sequence = Preconditions.checkNotNull(builder.getSequence()); - } - - public String getSequence() { - return sequence; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static SequenceReportName of(String sequence) { - return newBuilder().setSequence(sequence).build(); - } - - public static String format(String sequence) { - return newBuilder().setSequence(sequence).build().toString(); - } - - public static SequenceReportName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - SEQUENCE.validatedMatch( - formattedString, "SequenceReportName.parse: formattedString not in valid format"); - return of(matchMap.get("sequence")); - } - - 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 (SequenceReportName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return SEQUENCE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (sequence != null) { - fieldMapBuilder.put("sequence", sequence); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return SEQUENCE.instantiate("sequence", sequence); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - SequenceReportName that = ((SequenceReportName) o); - return Objects.equals(this.sequence, that.sequence); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(sequence); - return h; - } - - /** Builder for sequences/{sequence}/sequenceReport. */ - public static class Builder { - private String sequence; - - protected Builder() {} - - public String getSequence() { - return sequence; - } - - public Builder setSequence(String sequence) { - this.sequence = sequence; - return this; - } - - private Builder(SequenceReportName sequenceReportName) { - this.sequence = sequenceReportName.sequence; - } - - public SequenceReportName build() { - return new SequenceReportName(this); - } - } -} diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SessionName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SessionName.java deleted file mode 100644 index 288a8f3efb..0000000000 --- a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/SessionName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.showcase.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class SessionName implements ResourceName { - private static final PathTemplate SESSION = - PathTemplate.createWithoutUrlEncoding("sessions/{session}"); - private volatile Map fieldValuesMap; - private final String session; - - @Deprecated - protected SessionName() { - session = null; - } - - private SessionName(Builder builder) { - session = Preconditions.checkNotNull(builder.getSession()); - } - - public String getSession() { - return session; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static SessionName of(String session) { - return newBuilder().setSession(session).build(); - } - - public static String format(String session) { - return newBuilder().setSession(session).build().toString(); - } - - public static SessionName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - SESSION.validatedMatch( - formattedString, "SessionName.parse: formattedString not in valid format"); - return of(matchMap.get("session")); - } - - 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 (SessionName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return SESSION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (session != null) { - fieldMapBuilder.put("session", session); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return SESSION.instantiate("session", session); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - SessionName that = ((SessionName) o); - return Objects.equals(this.session, that.session); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(session); - return h; - } - - /** Builder for sessions/{session}. */ - public static class Builder { - private String session; - - protected Builder() {} - - public String getSession() { - return session; - } - - public Builder setSession(String session) { - this.session = session; - return this; - } - - private Builder(SessionName sessionName) { - this.session = sessionName.session; - } - - public SessionName build() { - return new SessionName(this); - } - } -} diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java deleted file mode 100644 index 195cf8a57d..0000000000 --- a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.showcase.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class StreamingSequenceName implements ResourceName { - private static final PathTemplate STREAMING_SEQUENCE = - PathTemplate.createWithoutUrlEncoding("streamingSequences/{streaming_sequence}"); - private volatile Map fieldValuesMap; - private final String streamingSequence; - - @Deprecated - protected StreamingSequenceName() { - streamingSequence = null; - } - - private StreamingSequenceName(Builder builder) { - streamingSequence = Preconditions.checkNotNull(builder.getStreamingSequence()); - } - - public String getStreamingSequence() { - return streamingSequence; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static StreamingSequenceName of(String streamingSequence) { - return newBuilder().setStreamingSequence(streamingSequence).build(); - } - - public static String format(String streamingSequence) { - return newBuilder().setStreamingSequence(streamingSequence).build().toString(); - } - - public static StreamingSequenceName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - STREAMING_SEQUENCE.validatedMatch( - formattedString, "StreamingSequenceName.parse: formattedString not in valid format"); - return of(matchMap.get("streaming_sequence")); - } - - 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 (StreamingSequenceName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return STREAMING_SEQUENCE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (streamingSequence != null) { - fieldMapBuilder.put("streaming_sequence", streamingSequence); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return STREAMING_SEQUENCE.instantiate("streaming_sequence", streamingSequence); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - StreamingSequenceName that = ((StreamingSequenceName) o); - return Objects.equals(this.streamingSequence, that.streamingSequence); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(streamingSequence); - return h; - } - - /** Builder for streamingSequences/{streaming_sequence}. */ - public static class Builder { - private String streamingSequence; - - protected Builder() {} - - public String getStreamingSequence() { - return streamingSequence; - } - - public Builder setStreamingSequence(String streamingSequence) { - this.streamingSequence = streamingSequence; - return this; - } - - private Builder(StreamingSequenceName streamingSequenceName) { - this.streamingSequence = streamingSequenceName.streamingSequence; - } - - public StreamingSequenceName build() { - return new StreamingSequenceName(this); - } - } -} diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java deleted file mode 100644 index 4fa8cb8696..0000000000 --- a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.showcase.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class StreamingSequenceReportName implements ResourceName { - private static final PathTemplate STREAMING_SEQUENCE = - PathTemplate.createWithoutUrlEncoding( - "streamingSequences/{streaming_sequence}/streamingSequenceReport"); - private volatile Map fieldValuesMap; - private final String streamingSequence; - - @Deprecated - protected StreamingSequenceReportName() { - streamingSequence = null; - } - - private StreamingSequenceReportName(Builder builder) { - streamingSequence = Preconditions.checkNotNull(builder.getStreamingSequence()); - } - - public String getStreamingSequence() { - return streamingSequence; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static StreamingSequenceReportName of(String streamingSequence) { - return newBuilder().setStreamingSequence(streamingSequence).build(); - } - - public static String format(String streamingSequence) { - return newBuilder().setStreamingSequence(streamingSequence).build().toString(); - } - - public static StreamingSequenceReportName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - STREAMING_SEQUENCE.validatedMatch( - formattedString, - "StreamingSequenceReportName.parse: formattedString not in valid format"); - return of(matchMap.get("streaming_sequence")); - } - - 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 (StreamingSequenceReportName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return STREAMING_SEQUENCE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (streamingSequence != null) { - fieldMapBuilder.put("streaming_sequence", streamingSequence); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return STREAMING_SEQUENCE.instantiate("streaming_sequence", streamingSequence); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - StreamingSequenceReportName that = ((StreamingSequenceReportName) o); - return Objects.equals(this.streamingSequence, that.streamingSequence); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(streamingSequence); - return h; - } - - /** Builder for streamingSequences/{streaming_sequence}/streamingSequenceReport. */ - public static class Builder { - private String streamingSequence; - - protected Builder() {} - - public String getStreamingSequence() { - return streamingSequence; - } - - public Builder setStreamingSequence(String streamingSequence) { - this.streamingSequence = streamingSequence; - return this; - } - - private Builder(StreamingSequenceReportName streamingSequenceReportName) { - this.streamingSequence = streamingSequenceReportName.streamingSequence; - } - - public StreamingSequenceReportName build() { - return new StreamingSequenceReportName(this); - } - } -} diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/TestName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/TestName.java deleted file mode 100644 index ac57fc985d..0000000000 --- a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/TestName.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.showcase.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class TestName implements ResourceName { - private static final PathTemplate SESSION_TEST = - PathTemplate.createWithoutUrlEncoding("sessions/{session}/tests/{test}"); - private volatile Map fieldValuesMap; - private final String session; - private final String test; - - @Deprecated - protected TestName() { - session = null; - test = null; - } - - private TestName(Builder builder) { - session = Preconditions.checkNotNull(builder.getSession()); - test = Preconditions.checkNotNull(builder.getTest()); - } - - public String getSession() { - return session; - } - - public String getTest() { - return test; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TestName of(String session, String test) { - return newBuilder().setSession(session).setTest(test).build(); - } - - public static String format(String session, String test) { - return newBuilder().setSession(session).setTest(test).build().toString(); - } - - public static TestName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - SESSION_TEST.validatedMatch( - formattedString, "TestName.parse: formattedString not in valid format"); - return of(matchMap.get("session"), matchMap.get("test")); - } - - 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 (TestName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return SESSION_TEST.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (session != null) { - fieldMapBuilder.put("session", session); - } - if (test != null) { - fieldMapBuilder.put("test", test); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return SESSION_TEST.instantiate("session", session, "test", test); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - TestName that = ((TestName) o); - return Objects.equals(this.session, that.session) && Objects.equals(this.test, that.test); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(session); - h *= 1000003; - h ^= Objects.hashCode(test); - return h; - } - - /** Builder for sessions/{session}/tests/{test}. */ - public static class Builder { - private String session; - private String test; - - protected Builder() {} - - public String getSession() { - return session; - } - - public String getTest() { - return test; - } - - public Builder setSession(String session) { - this.session = session; - return this; - } - - public Builder setTest(String test) { - this.test = test; - return this; - } - - private Builder(TestName testName) { - this.session = testName.session; - this.test = testName.test; - } - - public TestName build() { - return new TestName(this); - } - } -} diff --git a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/UserName.java b/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/UserName.java deleted file mode 100644 index f5c9cff62a..0000000000 --- a/showcase/gapic-showcase/proto/src/main/java/com/google/showcase/v1beta1/UserName.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.showcase.v1beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class UserName implements ResourceName { - private static final PathTemplate USER = PathTemplate.createWithoutUrlEncoding("users/{user}"); - private volatile Map fieldValuesMap; - private final String user; - - @Deprecated - protected UserName() { - user = null; - } - - private UserName(Builder builder) { - user = Preconditions.checkNotNull(builder.getUser()); - } - - public String getUser() { - return user; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static UserName of(String user) { - return newBuilder().setUser(user).build(); - } - - public static String format(String user) { - return newBuilder().setUser(user).build().toString(); - } - - public static UserName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - USER.validatedMatch(formattedString, "UserName.parse: formattedString not in valid format"); - return of(matchMap.get("user")); - } - - 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 (UserName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return USER.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (user != null) { - fieldMapBuilder.put("user", user); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return USER.instantiate("user", user); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - UserName that = ((UserName) o); - return Objects.equals(this.user, that.user); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(user); - return h; - } - - /** Builder for users/{user}. */ - public static class Builder { - private String user; - - protected Builder() {} - - public String getUser() { - return user; - } - - public Builder setUser(String user) { - this.user = user; - return this; - } - - private Builder(UserName userName) { - this.user = userName.user; - } - - public UserName build() { - return new UserName(this); - } - } -} From 2ac2e4b7c33684671059c5d9aa955080d815bd93 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 13 Feb 2024 19:52:03 +0100 Subject: [PATCH 62/75] deps: update google api dependencies (#2469) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.api.grpc:grpc-google-common-protos](https://togithub.com/googleapis/sdk-platform-java) | `2.30.0` -> `2.33.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.api.grpc:grpc-google-common-protos/2.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.api.grpc:grpc-google-common-protos/2.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.api.grpc:grpc-google-common-protos/2.30.0/2.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.api.grpc:grpc-google-common-protos/2.30.0/2.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [com.google.api.grpc:grpc-google-iam-v1](https://togithub.com/googleapis/sdk-platform-java) | `1.25.0` -> `1.28.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.api.grpc:grpc-google-iam-v1/1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.api.grpc:grpc-google-iam-v1/1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.api.grpc:grpc-google-iam-v1/1.25.0/1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.api.grpc:grpc-google-iam-v1/1.25.0/1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [com.google.api.grpc:proto-google-common-protos](https://togithub.com/googleapis/sdk-platform-java) | `2.30.0` -> `2.33.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.api.grpc:proto-google-common-protos/2.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.api.grpc:proto-google-common-protos/2.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.api.grpc:proto-google-common-protos/2.30.0/2.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.api.grpc:proto-google-common-protos/2.30.0/2.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [com.google.api.grpc:proto-google-iam-v1](https://togithub.com/googleapis/sdk-platform-java) | `1.25.0` -> `1.28.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.api.grpc:proto-google-iam-v1/1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.api.grpc:proto-google-iam-v1/1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.api.grpc:proto-google-iam-v1/1.25.0/1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.api.grpc:proto-google-iam-v1/1.25.0/1.28.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [com.google.api:api-common](https://togithub.com/googleapis/sdk-platform-java) | `2.22.0` -> `2.25.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.api:api-common/2.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.api:api-common/2.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.api:api-common/2.22.0/2.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.api:api-common/2.22.0/2.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [com.google.api-client:google-api-client-bom](https://togithub.com/googleapis/google-api-java-client/tree/master/google-api-client-bom) ([source](https://togithub.com/googleapis/google-api-java-client)) | `2.2.0` -> `2.3.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.api-client:google-api-client-bom/2.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.api-client:google-api-client-bom/2.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.api-client:google-api-client-bom/2.2.0/2.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.api-client:google-api-client-bom/2.2.0/2.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes
googleapis/sdk-platform-java (com.google.api.grpc:grpc-google-common-protos) ### [`v2.33.0`](https://togithub.com/googleapis/sdk-platform-java/blob/HEAD/CHANGELOG.md#2330-2024-01-24) [Compare Source](https://togithub.com/googleapis/sdk-platform-java/compare/v2.32.0...v2.33.0) ##### Features - Introduce interfaces for metrics instrumentation ([#​2403](https://togithub.com/googleapis/sdk-platform-java/issues/2403)) ([3c61b14](https://togithub.com/googleapis/sdk-platform-java/commit/3c61b14fef87c735ea2ed382f8510b29176a4279)) ##### Bug Fixes - Verify Universe Domain's DirectPath Compatibility after Endpoint Resolution ([#​2412](https://togithub.com/googleapis/sdk-platform-java/issues/2412)) ([e2de93b](https://togithub.com/googleapis/sdk-platform-java/commit/e2de93bb7051039e8a96128b9eacc0f2ea3a1205)) ### [`v2.32.0`](https://togithub.com/googleapis/sdk-platform-java/blob/HEAD/CHANGELOG.md#2320-2024-01-19) [Compare Source](https://togithub.com/googleapis/sdk-platform-java/compare/v2.31.0...v2.32.0) ##### Features - Do not set the default endpoint in StubSettings ([97ae228](https://togithub.com/googleapis/sdk-platform-java/commit/97ae228a262738e09ddf7b4dab95bb81a4f8860a)) - Numeric enums in routing headers ([#​2328](https://togithub.com/googleapis/sdk-platform-java/issues/2328)) ([4d043de](https://togithub.com/googleapis/sdk-platform-java/commit/4d043deeaf096a093e54c5c7b07e408f38647296)) - StubSettings' `getEndpoint()` will return the service's pre-configured endpoint if there are no user configurations ([97ae228](https://togithub.com/googleapis/sdk-platform-java/commit/97ae228a262738e09ddf7b4dab95bb81a4f8860a)) - Validate the Universe Domain ([#​2330](https://togithub.com/googleapis/sdk-platform-java/issues/2330)) ([097bc93](https://togithub.com/googleapis/sdk-platform-java/commit/097bc93c39d10d8ff08eb8fb3a378bbe6d96c1ac)) ##### Bug Fixes - adjust release-please configs for cloudbuild yaml updates ([#​2351](https://togithub.com/googleapis/sdk-platform-java/issues/2351)) ([ed16261](https://togithub.com/googleapis/sdk-platform-java/commit/ed16261ac8c90fe588026e30d62d948e7ca1af13)) - DirectPath non-default SA requires creds ([#​2281](https://togithub.com/googleapis/sdk-platform-java/issues/2281)) ([c7d614a](https://togithub.com/googleapis/sdk-platform-java/commit/c7d614acd9be75b0aa3d365eed9ef4db41419906)) - format method types and table in Client Overview ([#​2361](https://togithub.com/googleapis/sdk-platform-java/issues/2361)) ([7436995](https://togithub.com/googleapis/sdk-platform-java/commit/743699504039c110a1490276ddef809f57716e24)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.16.1 ([#​2386](https://togithub.com/googleapis/sdk-platform-java/issues/2386)) ([1160f95](https://togithub.com/googleapis/sdk-platform-java/commit/1160f95d16b1dd0627772a9e8f9c7c8cae7e9c55)) - update dependency com.google.errorprone:error_prone_annotations to v2.24.1 ([#​2390](https://togithub.com/googleapis/sdk-platform-java/issues/2390)) ([d533760](https://togithub.com/googleapis/sdk-platform-java/commit/d5337600d95f226bbb3f328ebdb7eb41cd2cb43a)) - update dependency com.google.errorprone:error_prone_annotations to v2.24.1 ([#​2391](https://togithub.com/googleapis/sdk-platform-java/issues/2391)) ([98b7f3e](https://togithub.com/googleapis/sdk-platform-java/commit/98b7f3ebcb46430fda53d0d656fcc090ed73654e)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.35.0 ([#​2392](https://togithub.com/googleapis/sdk-platform-java/issues/2392)) ([4b78ac7](https://togithub.com/googleapis/sdk-platform-java/commit/4b78ac7a8e7a8e6844516c30ac8b112a44cfcc9c)) - update dependency io.perfmark:perfmark-api to v0.27.0 ([#​2388](https://togithub.com/googleapis/sdk-platform-java/issues/2388)) ([42808ba](https://togithub.com/googleapis/sdk-platform-java/commit/42808baab2f949bfda2abdb109560033f9e34da3)) - update dependency io.perfmark:perfmark-api to v0.27.0 ([#​2389](https://togithub.com/googleapis/sdk-platform-java/issues/2389)) ([51241f7](https://togithub.com/googleapis/sdk-platform-java/commit/51241f77bc71769c482d12c47cf82c2f32d0be30)) - update dependency net.bytebuddy:byte-buddy to v1.14.11 ([#​2387](https://togithub.com/googleapis/sdk-platform-java/issues/2387)) ([07b8ee6](https://togithub.com/googleapis/sdk-platform-java/commit/07b8ee6d93c42299617de768946ba48e2049dbf9)) - update dependency org.checkerframework:checker-qual to v3.42.0 ([#​2287](https://togithub.com/googleapis/sdk-platform-java/issues/2287)) ([7c4eb80](https://togithub.com/googleapis/sdk-platform-java/commit/7c4eb80c2faf1b2d9e0a1bc10acffe4a8d2d7d28)) - update gapic-showcase to v0.30.0 ([#​2354](https://togithub.com/googleapis/sdk-platform-java/issues/2354)) ([762c125](https://togithub.com/googleapis/sdk-platform-java/commit/762c125abadb5e56682224c9f1587c71e5c6e653)) - update google api dependencies ([#​2382](https://togithub.com/googleapis/sdk-platform-java/issues/2382)) ([92bbe61](https://togithub.com/googleapis/sdk-platform-java/commit/92bbe6123090a9c66a0d6a688484612a069fd9de)) - update googleapis/java-cloud-bom digest to [`8bc17e9`](https://togithub.com/googleapis/sdk-platform-java/commit/8bc17e9) ([#​2376](https://togithub.com/googleapis/sdk-platform-java/issues/2376)) ([bddd4ea](https://togithub.com/googleapis/sdk-platform-java/commit/bddd4ea81c0ce2d53c7968fbe55eb0755a3dfee8)) - update grpc dependencies to v1.61.0 ([#​2383](https://togithub.com/googleapis/sdk-platform-java/issues/2383)) ([af15bd1](https://togithub.com/googleapis/sdk-platform-java/commit/af15bd1ef06456fea983a8e44b3dc78d30751125)) - update netty dependencies to v4.1.105.final ([#​2302](https://togithub.com/googleapis/sdk-platform-java/issues/2302)) ([1563a55](https://togithub.com/googleapis/sdk-platform-java/commit/1563a550f820063881c1e1ab87aa79fb47ca667c)) - update protobuf dependencies to v3.25.2 ([#​2378](https://togithub.com/googleapis/sdk-platform-java/issues/2378)) ([836e7b8](https://togithub.com/googleapis/sdk-platform-java/commit/836e7b86eecf61552f203e26dff04359ed27bde2)) - update slf4j monorepo to v2.0.11 ([#​2381](https://togithub.com/googleapis/sdk-platform-java/issues/2381)) ([9e758b7](https://togithub.com/googleapis/sdk-platform-java/commit/9e758b792615c0bc4d784e8c33d4f90fcc1566ee)) ### [`v2.31.0`](https://togithub.com/googleapis/sdk-platform-java/blob/HEAD/CHANGELOG.md#2310-2024-01-04) [Compare Source](https://togithub.com/googleapis/sdk-platform-java/compare/v2.30.0...v2.31.0) ##### Features - \[common-protos,common-protos] add auto_populated_fields to google.api.MethodSettings ([#​2273](https://togithub.com/googleapis/sdk-platform-java/issues/2273)) ([d9be11c](https://togithub.com/googleapis/sdk-platform-java/commit/d9be11c7a127452c5e5ef871854a4a65c68b1b34)) - add auto_populated_fields to google.api.MethodSettings ([d9be11c](https://togithub.com/googleapis/sdk-platform-java/commit/d9be11c7a127452c5e5ef871854a4a65c68b1b34)) - add parsing of autopopulated fields from serviceyaml ([#​2312](https://togithub.com/googleapis/sdk-platform-java/issues/2312)) ([4f535a7](https://togithub.com/googleapis/sdk-platform-java/commit/4f535a7829f98fe79053e62e22deaf91a97ab917)) - Add Universe Domain to ClientSettings ([#​2331](https://togithub.com/googleapis/sdk-platform-java/issues/2331)) ([1bddac5](https://togithub.com/googleapis/sdk-platform-java/commit/1bddac5f91b5b7742c6082da2ae0c6667523aaa4)) - Add Universe Domain to Java-Core ([#​2329](https://togithub.com/googleapis/sdk-platform-java/issues/2329)) ([586ac9f](https://togithub.com/googleapis/sdk-platform-java/commit/586ac9f668e0ae647e3ef233458d2c754959f6e5)) - Full Endpoint Resolution from EndpointContext ([#​2313](https://togithub.com/googleapis/sdk-platform-java/issues/2313)) ([f499ced](https://togithub.com/googleapis/sdk-platform-java/commit/f499ced28a562cbb3ea49f14a4fa16eb6a8173cc)) - move Java Owlbot into this repository for postprocessing ([#​2282](https://togithub.com/googleapis/sdk-platform-java/issues/2282)) ([f8969d2](https://togithub.com/googleapis/sdk-platform-java/commit/f8969d2b5b50b338967802436bac8d21c3656e07)) - new artifact for sdk-platform-java configs. ([#​2315](https://togithub.com/googleapis/sdk-platform-java/issues/2315)) ([99e5195](https://togithub.com/googleapis/sdk-platform-java/commit/99e51953f319c97b225a0209b093367fa440f9d3)) - Parse Host Service Name ([#​2300](https://togithub.com/googleapis/sdk-platform-java/issues/2300)) ([8822f3b](https://togithub.com/googleapis/sdk-platform-java/commit/8822f3b514bdddf028c12db7a773e80fa4f4f3a1)) - Structs mapper utility ([#​2278](https://togithub.com/googleapis/sdk-platform-java/issues/2278)) ([da6607b](https://togithub.com/googleapis/sdk-platform-java/commit/da6607b17130ab045640618d505fda915ddb8e49)) - unmanaged dependency check ([#​2223](https://togithub.com/googleapis/sdk-platform-java/issues/2223)) ([3439691](https://togithub.com/googleapis/sdk-platform-java/commit/34396919b6c58f85af26650a7d3d429d9b4e9008)) ##### Bug Fixes - format proto comments in Client Overview ([#​2280](https://togithub.com/googleapis/sdk-platform-java/issues/2280)) ([4029fbd](https://togithub.com/googleapis/sdk-platform-java/commit/4029fbdd9ab060ef55382b1890f323f85fe3ceef)) - re-enable checkstyle in sdk-platform-java-config ([#​2335](https://togithub.com/googleapis/sdk-platform-java/issues/2335)) ([285bdb1](https://togithub.com/googleapis/sdk-platform-java/commit/285bdb101194740a7a9618565679b7be01c70f43)) ##### Dependencies - update google api dependencies ([#​2277](https://togithub.com/googleapis/sdk-platform-java/issues/2277)) ([4bc45bd](https://togithub.com/googleapis/sdk-platform-java/commit/4bc45bd3c525714acc3866ce47943f91d860f8d2)) - update googleapis/java-cloud-bom digest to [`3fe0c17`](https://togithub.com/googleapis/sdk-platform-java/commit/3fe0c17) ([#​2286](https://togithub.com/googleapis/sdk-platform-java/issues/2286)) ([c7de93e](https://togithub.com/googleapis/sdk-platform-java/commit/c7de93e6a6e08b663041e98eaab9cb5449d51b9f)) - update grpc dependencies to v1.60.0 ([#​2288](https://togithub.com/googleapis/sdk-platform-java/issues/2288)) ([c8bf058](https://togithub.com/googleapis/sdk-platform-java/commit/c8bf05813cb8968447572df5622cf497510bca34))
googleapis/google-api-java-client (com.google.api-client:google-api-client-bom) ### [`v2.3.0`](https://togithub.com/googleapis/google-api-java-client/blob/HEAD/CHANGELOG.md#230-2024-01-29) [Compare Source](https://togithub.com/googleapis/google-api-java-client/compare/v2.2.0...v2.3.0) ##### Features - Setup 2.2.x lts branch ([#​2341](https://togithub.com/googleapis/google-api-java-client/issues/2341)) ([74e8cdb](https://togithub.com/googleapis/google-api-java-client/commit/74e8cdb59822a3256b2649d61cbd6927622c9f81)) ##### Bug Fixes - **deps:** Update dependency com.google.api-client:google-api-client to v2.2.0 ([#​2249](https://togithub.com/googleapis/google-api-java-client/issues/2249)) ([da164c5](https://togithub.com/googleapis/google-api-java-client/commit/da164c59c01316e949db43053fba6b819ee20ada)) - **deps:** Update dependency com.google.appengine:appengine-api-1.0-sdk to v2.0.11 ([#​2259](https://togithub.com/googleapis/google-api-java-client/issues/2259)) ([f078332](https://togithub.com/googleapis/google-api-java-client/commit/f078332c65da269a6063202844b104a971217245)) - **deps:** Update dependency com.google.appengine:appengine-api-1.0-sdk to v2.0.12 ([#​2284](https://togithub.com/googleapis/google-api-java-client/issues/2284)) ([ef72f63](https://togithub.com/googleapis/google-api-java-client/commit/ef72f637c5ae1718f9f16382d356c6649b2073f3)) - **deps:** Update dependency com.google.appengine:appengine-api-1.0-sdk to v2.0.14 ([#​2295](https://togithub.com/googleapis/google-api-java-client/issues/2295)) ([7afaaf5](https://togithub.com/googleapis/google-api-java-client/commit/7afaaf59f77c4aa10ef477fcb3edc543f513f48a)) - **deps:** Update dependency com.google.appengine:appengine-api-1.0-sdk to v2.0.15 ([#​2327](https://togithub.com/googleapis/google-api-java-client/issues/2327)) ([86dd2a4](https://togithub.com/googleapis/google-api-java-client/commit/86dd2a442caac44304babbda8f2d2f7d78ad05d9)) - **deps:** Update dependency com.google.appengine:appengine-api-1.0-sdk to v2.0.16 ([#​2334](https://togithub.com/googleapis/google-api-java-client/issues/2334)) ([8150130](https://togithub.com/googleapis/google-api-java-client/commit/8150130e320da155cdee86b1a04152d5696f5d24)) - **deps:** Update dependency com.google.appengine:appengine-api-1.0-sdk to v2.0.19 ([#​2361](https://togithub.com/googleapis/google-api-java-client/issues/2361)) ([7b675eb](https://togithub.com/googleapis/google-api-java-client/commit/7b675ebf211f1880564bf67e198b9cb6a4fcc396)) - **deps:** Update dependency com.google.appengine:appengine-api-1.0-sdk to v2.0.21 ([#​2371](https://togithub.com/googleapis/google-api-java-client/issues/2371)) ([4c19205](https://togithub.com/googleapis/google-api-java-client/commit/4c19205b789f32048ab70639f0ccb730143196c2)) - **deps:** Update dependency com.google.appengine:appengine-api-1.0-sdk to v2.0.24 ([#​2411](https://togithub.com/googleapis/google-api-java-client/issues/2411)) ([830ac4f](https://togithub.com/googleapis/google-api-java-client/commit/830ac4f946f5dbbe573adfd7be66084eba0c2aa8)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.10.0 ([#​2285](https://togithub.com/googleapis/google-api-java-client/issues/2285)) ([50b907d](https://togithub.com/googleapis/google-api-java-client/commit/50b907d0ebdaa093e8a07b7512287cca5b3bc6d1)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.11.0 ([#​2286](https://togithub.com/googleapis/google-api-java-client/issues/2286)) ([5e51f69](https://togithub.com/googleapis/google-api-java-client/commit/5e51f69faff3379cfee6c69162879db2abc9fdea)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.14.0 ([#​2297](https://togithub.com/googleapis/google-api-java-client/issues/2297)) ([d7f796a](https://togithub.com/googleapis/google-api-java-client/commit/d7f796acf93c69bdc4507b90f7ce144029605257)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.15.0 ([#​2307](https://togithub.com/googleapis/google-api-java-client/issues/2307)) ([83a886b](https://togithub.com/googleapis/google-api-java-client/commit/83a886b374d5f85b2699d98303111d8c8dbf4b0a)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.17.0 ([#​2321](https://togithub.com/googleapis/google-api-java-client/issues/2321)) ([42cf1b6](https://togithub.com/googleapis/google-api-java-client/commit/42cf1b6450b7097790863d1c0b36e32419d11eee)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.18.0 ([#​2333](https://togithub.com/googleapis/google-api-java-client/issues/2333)) ([782e818](https://togithub.com/googleapis/google-api-java-client/commit/782e818b6b19311100d85bea815b2035205cab93)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.19.0 ([#​2340](https://togithub.com/googleapis/google-api-java-client/issues/2340)) ([981c86a](https://togithub.com/googleapis/google-api-java-client/commit/981c86a31d2f9bc63c45b722360f1c6b0df0b574)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.20.0 ([#​2349](https://togithub.com/googleapis/google-api-java-client/issues/2349)) ([c6c29a1](https://togithub.com/googleapis/google-api-java-client/commit/c6c29a151cef78182d48bdacfa7a7ae36cda3376)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.23.0 ([#​2363](https://togithub.com/googleapis/google-api-java-client/issues/2363)) ([c175001](https://togithub.com/googleapis/google-api-java-client/commit/c175001db8f6901438a06b0f2a22e60f07c029be)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.25.0 ([#​2369](https://togithub.com/googleapis/google-api-java-client/issues/2369)) ([f5848bc](https://togithub.com/googleapis/google-api-java-client/commit/f5848bcd3c9f4425654b9078b8ff559871037e29)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.26.0 ([#​2386](https://togithub.com/googleapis/google-api-java-client/issues/2386)) ([3511105](https://togithub.com/googleapis/google-api-java-client/commit/3511105dc27ea4a669a0db1ade061d4f6bb95bfe)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.30.0 ([#​2419](https://togithub.com/googleapis/google-api-java-client/issues/2419)) ([257cd05](https://togithub.com/googleapis/google-api-java-client/commit/257cd0541a7d6a77ee173743183b6e20d4d888b0)) - **deps:** Update dependency com.google.cloud:libraries-bom to v26.9.0 ([#​2250](https://togithub.com/googleapis/google-api-java-client/issues/2250)) ([3778401](https://togithub.com/googleapis/google-api-java-client/commit/3778401ff840851d88cc529fd1152a0e256f0957)) - **deps:** Update dependency com.google.oauth-client:google-oauth-client-bom to v1.35.0 ([#​2420](https://togithub.com/googleapis/google-api-java-client/issues/2420)) ([65e47bd](https://togithub.com/googleapis/google-api-java-client/commit/65e47bde8270fab5635bc88822a66c16f4e91223)) - **deps:** Update dependency commons-codec:commons-codec to v1.16.0 ([#​2331](https://togithub.com/googleapis/google-api-java-client/issues/2331)) ([d3b2a6e](https://togithub.com/googleapis/google-api-java-client/commit/d3b2a6eb4fe2e72ed79722ed2bd8fd7fbbb535e2)) - Update to read absolute path of google-api-client.properties ([#​2299](https://togithub.com/googleapis/google-api-java-client/issues/2299)) ([9031b8f](https://togithub.com/googleapis/google-api-java-client/commit/9031b8fb70cfdfb16254c1185746c32fe47993bd)) ##### Dependencies - Update doclet version to v1.9.0 ([#​2316](https://togithub.com/googleapis/google-api-java-client/issues/2316)) ([157686e](https://togithub.com/googleapis/google-api-java-client/commit/157686e03a0ded802f55053d1774055477dec68b))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/sdk-platform-java). --- gax-java/dependencies.properties | 10 +++++----- .../first-party-dependencies/pom.xml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gax-java/dependencies.properties b/gax-java/dependencies.properties index dfcdf5ed07..c2ead48d71 100644 --- a/gax-java/dependencies.properties +++ b/gax-java/dependencies.properties @@ -35,8 +35,8 @@ version.io_grpc=1.61.1 # It should be constructed the following way: # 1) Take full artifact id (including the group and classifier (if any) portions) and remove version portion. # 2) Replace all characters which are neither alphabetic nor digits with the underscore ('_') character -maven.com_google_api_grpc_proto_google_common_protos=com.google.api.grpc:proto-google-common-protos:2.30.0 -maven.com_google_api_grpc_grpc_google_common_protos=com.google.api.grpc:grpc-google-common-protos:2.30.0 +maven.com_google_api_grpc_proto_google_common_protos=com.google.api.grpc:proto-google-common-protos:2.33.0 +maven.com_google_api_grpc_grpc_google_common_protos=com.google.api.grpc:grpc-google-common-protos:2.33.0 maven.com_google_auth_google_auth_library_oauth2_http=com.google.auth:google-auth-library-oauth2-http:1.23.0 maven.com_google_auth_google_auth_library_credentials=com.google.auth:google-auth-library-credentials:1.23.0 maven.io_opencensus_opencensus_api=io.opencensus:opencensus-api:0.31.1 @@ -66,10 +66,10 @@ maven.com_google_errorprone_error_prone_annotations=com.google.errorprone:error_ maven.com_google_j2objc_j2objc_annotations=com.google.j2objc:j2objc-annotations:2.8 maven.com_google_auto_value_auto_value=com.google.auto.value:auto-value:1.10.4 maven.com_google_auto_value_auto_value_annotations=com.google.auto.value:auto-value-annotations:1.10.4 -maven.com_google_api_api_common=com.google.api:api-common:2.22.0 +maven.com_google_api_api_common=com.google.api:api-common:2.25.0 maven.org_threeten_threetenbp=org.threeten:threetenbp:1.6.8 -maven.com_google_api_grpc_grpc_google_iam_v1=com.google.api.grpc:grpc-google-iam-v1:1.25.0 -maven.com_google_api_grpc_proto_google_iam_v1=com.google.api.grpc:proto-google-iam-v1:1.25.0 +maven.com_google_api_grpc_grpc_google_iam_v1=com.google.api.grpc:grpc-google-iam-v1:1.28.0 +maven.com_google_api_grpc_proto_google_iam_v1=com.google.api.grpc:proto-google-iam-v1:1.28.0 maven.com_google_http_client_google_http_client=com.google.http-client:google-http-client:1.44.1 maven.com_google_http_client_google_http_client_gson=com.google.http-client:google-http-client-gson:1.44.1 maven.org_codehaus_mojo_animal_sniffer_annotations=org.codehaus.mojo:animal-sniffer-annotations:1.23 diff --git a/java-shared-dependencies/first-party-dependencies/pom.xml b/java-shared-dependencies/first-party-dependencies/pom.xml index 6c5bb87fa6..9417419b51 100644 --- a/java-shared-dependencies/first-party-dependencies/pom.xml +++ b/java-shared-dependencies/first-party-dependencies/pom.xml @@ -24,7 +24,7 @@ ${project.artifactId} 1.5.0 1.35.0 - 2.2.0 + 2.3.0
From 4920536f3a236d8a8c279cf50e4b6f6ec488d7ba Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Tue, 13 Feb 2024 13:55:09 -0500 Subject: [PATCH 63/75] chore: move owlbot requirements to library_generation/reqs.in (#2471) Co-authored-by: JoeWang1127 --- library_generation/owlbot/src/requirements.in | 10 - .../owlbot/src/requirements.txt | 353 ------------------ library_generation/postprocess_library.sh | 5 - library_generation/requirements.in | 4 + 4 files changed, 4 insertions(+), 368 deletions(-) delete mode 100644 library_generation/owlbot/src/requirements.in delete mode 100644 library_generation/owlbot/src/requirements.txt diff --git a/library_generation/owlbot/src/requirements.in b/library_generation/owlbot/src/requirements.in deleted file mode 100644 index fed3e32d94..0000000000 --- a/library_generation/owlbot/src/requirements.in +++ /dev/null @@ -1,10 +0,0 @@ -attrs -click -jinja2 -lxml -typing -markupsafe -colorlog -protobuf -watchdog -requests diff --git a/library_generation/owlbot/src/requirements.txt b/library_generation/owlbot/src/requirements.txt deleted file mode 100644 index d3b0f53dba..0000000000 --- a/library_generation/owlbot/src/requirements.txt +++ /dev/null @@ -1,353 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.9 -# by the following command: -# -# pip-compile requirements.in --generate-hashes --upgrade -# -attrs==23.1.0 \ - --hash=sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04 \ - --hash=sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015 - # via -r requirements.in -certifi==2023.7.22 \ - --hash=sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082 \ - --hash=sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9 - # via requests -charset-normalizer==3.2.0 \ - --hash=sha256:04e57ab9fbf9607b77f7d057974694b4f6b142da9ed4a199859d9d4d5c63fe96 \ - --hash=sha256:09393e1b2a9461950b1c9a45d5fd251dc7c6f228acab64da1c9c0165d9c7765c \ - --hash=sha256:0b87549028f680ca955556e3bd57013ab47474c3124dc069faa0b6545b6c9710 \ - --hash=sha256:1000fba1057b92a65daec275aec30586c3de2401ccdcd41f8a5c1e2c87078706 \ - --hash=sha256:1249cbbf3d3b04902ff081ffbb33ce3377fa6e4c7356f759f3cd076cc138d020 \ - --hash=sha256:1920d4ff15ce893210c1f0c0e9d19bfbecb7983c76b33f046c13a8ffbd570252 \ - --hash=sha256:193cbc708ea3aca45e7221ae58f0fd63f933753a9bfb498a3b474878f12caaad \ - --hash=sha256:1a100c6d595a7f316f1b6f01d20815d916e75ff98c27a01ae817439ea7726329 \ - --hash=sha256:1f30b48dd7fa1474554b0b0f3fdfdd4c13b5c737a3c6284d3cdc424ec0ffff3a \ - --hash=sha256:203f0c8871d5a7987be20c72442488a0b8cfd0f43b7973771640fc593f56321f \ - --hash=sha256:246de67b99b6851627d945db38147d1b209a899311b1305dd84916f2b88526c6 \ - --hash=sha256:2dee8e57f052ef5353cf608e0b4c871aee320dd1b87d351c28764fc0ca55f9f4 \ - --hash=sha256:2efb1bd13885392adfda4614c33d3b68dee4921fd0ac1d3988f8cbb7d589e72a \ - --hash=sha256:2f4ac36d8e2b4cc1aa71df3dd84ff8efbe3bfb97ac41242fbcfc053c67434f46 \ - --hash=sha256:3170c9399da12c9dc66366e9d14da8bf7147e1e9d9ea566067bbce7bb74bd9c2 \ - --hash=sha256:3b1613dd5aee995ec6d4c69f00378bbd07614702a315a2cf6c1d21461fe17c23 \ - --hash=sha256:3bb3d25a8e6c0aedd251753a79ae98a093c7e7b471faa3aa9a93a81431987ace \ - --hash=sha256:3bb7fda7260735efe66d5107fb7e6af6a7c04c7fce9b2514e04b7a74b06bf5dd \ - --hash=sha256:41b25eaa7d15909cf3ac4c96088c1f266a9a93ec44f87f1d13d4a0e86c81b982 \ - --hash=sha256:45de3f87179c1823e6d9e32156fb14c1927fcc9aba21433f088fdfb555b77c10 \ - --hash=sha256:46fb8c61d794b78ec7134a715a3e564aafc8f6b5e338417cb19fe9f57a5a9bf2 \ - --hash=sha256:48021783bdf96e3d6de03a6e39a1171ed5bd7e8bb93fc84cc649d11490f87cea \ - --hash=sha256:4957669ef390f0e6719db3613ab3a7631e68424604a7b448f079bee145da6e09 \ - --hash=sha256:5e86d77b090dbddbe78867a0275cb4df08ea195e660f1f7f13435a4649e954e5 \ - --hash=sha256:6339d047dab2780cc6220f46306628e04d9750f02f983ddb37439ca47ced7149 \ - --hash=sha256:681eb3d7e02e3c3655d1b16059fbfb605ac464c834a0c629048a30fad2b27489 \ - --hash=sha256:6c409c0deba34f147f77efaa67b8e4bb83d2f11c8806405f76397ae5b8c0d1c9 \ - --hash=sha256:7095f6fbfaa55defb6b733cfeb14efaae7a29f0b59d8cf213be4e7ca0b857b80 \ - --hash=sha256:70c610f6cbe4b9fce272c407dd9d07e33e6bf7b4aa1b7ffb6f6ded8e634e3592 \ - --hash=sha256:72814c01533f51d68702802d74f77ea026b5ec52793c791e2da806a3844a46c3 \ - --hash=sha256:7a4826ad2bd6b07ca615c74ab91f32f6c96d08f6fcc3902ceeedaec8cdc3bcd6 \ - --hash=sha256:7c70087bfee18a42b4040bb9ec1ca15a08242cf5867c58726530bdf3945672ed \ - --hash=sha256:855eafa5d5a2034b4621c74925d89c5efef61418570e5ef9b37717d9c796419c \ - --hash=sha256:8700f06d0ce6f128de3ccdbc1acaea1ee264d2caa9ca05daaf492fde7c2a7200 \ - --hash=sha256:89f1b185a01fe560bc8ae5f619e924407efca2191b56ce749ec84982fc59a32a \ - --hash=sha256:8b2c760cfc7042b27ebdb4a43a4453bd829a5742503599144d54a032c5dc7e9e \ - --hash=sha256:8c2f5e83493748286002f9369f3e6607c565a6a90425a3a1fef5ae32a36d749d \ - --hash=sha256:8e098148dd37b4ce3baca71fb394c81dc5d9c7728c95df695d2dca218edf40e6 \ - --hash=sha256:94aea8eff76ee6d1cdacb07dd2123a68283cb5569e0250feab1240058f53b623 \ - --hash=sha256:95eb302ff792e12aba9a8b8f8474ab229a83c103d74a750ec0bd1c1eea32e669 \ - --hash=sha256:9bd9b3b31adcb054116447ea22caa61a285d92e94d710aa5ec97992ff5eb7cf3 \ - --hash=sha256:9e608aafdb55eb9f255034709e20d5a83b6d60c054df0802fa9c9883d0a937aa \ - --hash=sha256:a103b3a7069b62f5d4890ae1b8f0597618f628b286b03d4bc9195230b154bfa9 \ - --hash=sha256:a386ebe437176aab38c041de1260cd3ea459c6ce5263594399880bbc398225b2 \ - --hash=sha256:a38856a971c602f98472050165cea2cdc97709240373041b69030be15047691f \ - --hash=sha256:a401b4598e5d3f4a9a811f3daf42ee2291790c7f9d74b18d75d6e21dda98a1a1 \ - --hash=sha256:a7647ebdfb9682b7bb97e2a5e7cb6ae735b1c25008a70b906aecca294ee96cf4 \ - --hash=sha256:aaf63899c94de41fe3cf934601b0f7ccb6b428c6e4eeb80da72c58eab077b19a \ - --hash=sha256:b0dac0ff919ba34d4df1b6131f59ce95b08b9065233446be7e459f95554c0dc8 \ - --hash=sha256:baacc6aee0b2ef6f3d308e197b5d7a81c0e70b06beae1f1fcacffdbd124fe0e3 \ - --hash=sha256:bf420121d4c8dce6b889f0e8e4ec0ca34b7f40186203f06a946fa0276ba54029 \ - --hash=sha256:c04a46716adde8d927adb9457bbe39cf473e1e2c2f5d0a16ceb837e5d841ad4f \ - --hash=sha256:c0b21078a4b56965e2b12f247467b234734491897e99c1d51cee628da9786959 \ - --hash=sha256:c1c76a1743432b4b60ab3358c937a3fe1341c828ae6194108a94c69028247f22 \ - --hash=sha256:c4983bf937209c57240cff65906b18bb35e64ae872da6a0db937d7b4af845dd7 \ - --hash=sha256:c4fb39a81950ec280984b3a44f5bd12819953dc5fa3a7e6fa7a80db5ee853952 \ - --hash=sha256:c57921cda3a80d0f2b8aec7e25c8aa14479ea92b5b51b6876d975d925a2ea346 \ - --hash=sha256:c8063cf17b19661471ecbdb3df1c84f24ad2e389e326ccaf89e3fb2484d8dd7e \ - --hash=sha256:ccd16eb18a849fd8dcb23e23380e2f0a354e8daa0c984b8a732d9cfaba3a776d \ - --hash=sha256:cd6dbe0238f7743d0efe563ab46294f54f9bc8f4b9bcf57c3c666cc5bc9d1299 \ - --hash=sha256:d62e51710986674142526ab9f78663ca2b0726066ae26b78b22e0f5e571238dd \ - --hash=sha256:db901e2ac34c931d73054d9797383d0f8009991e723dab15109740a63e7f902a \ - --hash=sha256:e03b8895a6990c9ab2cdcd0f2fe44088ca1c65ae592b8f795c3294af00a461c3 \ - --hash=sha256:e1c8a2f4c69e08e89632defbfabec2feb8a8d99edc9f89ce33c4b9e36ab63037 \ - --hash=sha256:e4b749b9cc6ee664a3300bb3a273c1ca8068c46be705b6c31cf5d276f8628a94 \ - --hash=sha256:e6a5bf2cba5ae1bb80b154ed68a3cfa2fa00fde979a7f50d6598d3e17d9ac20c \ - --hash=sha256:e857a2232ba53ae940d3456f7533ce6ca98b81917d47adc3c7fd55dad8fab858 \ - --hash=sha256:ee4006268ed33370957f55bf2e6f4d263eaf4dc3cfc473d1d90baff6ed36ce4a \ - --hash=sha256:eef9df1eefada2c09a5e7a40991b9fc6ac6ef20b1372abd48d2794a316dc0449 \ - --hash=sha256:f058f6963fd82eb143c692cecdc89e075fa0828db2e5b291070485390b2f1c9c \ - --hash=sha256:f25c229a6ba38a35ae6e25ca1264621cc25d4d38dca2942a7fce0b67a4efe918 \ - --hash=sha256:f2a1d0fd4242bd8643ce6f98927cf9c04540af6efa92323e9d3124f57727bfc1 \ - --hash=sha256:f7560358a6811e52e9c4d142d497f1a6e10103d3a6881f18d04dbce3729c0e2c \ - --hash=sha256:f779d3ad205f108d14e99bb3859aa7dd8e9c68874617c72354d7ecaec2a054ac \ - --hash=sha256:f87f746ee241d30d6ed93969de31e5ffd09a2961a051e60ae6bddde9ec3583aa - # via requests -click==8.1.4 \ - --hash=sha256:2739815aaa5d2c986a88f1e9230c55e17f0caad3d958a5e13ad0797c166db9e3 \ - --hash=sha256:b97d0c74955da062a7d4ef92fadb583806a585b2ea81958a81bd72726cbb8e37 - # via -r requirements.in -colorlog==6.7.0 \ - --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ - --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 - # via -r requirements.in -idna==3.4 \ - --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ - --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 - # via requests -jinja2==3.1.2 \ - --hash=sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852 \ - --hash=sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61 - # via -r requirements.in -lxml==4.9.3 \ - --hash=sha256:05186a0f1346ae12553d66df1cfce6f251589fea3ad3da4f3ef4e34b2d58c6a3 \ - --hash=sha256:075b731ddd9e7f68ad24c635374211376aa05a281673ede86cbe1d1b3455279d \ - --hash=sha256:081d32421db5df44c41b7f08a334a090a545c54ba977e47fd7cc2deece78809a \ - --hash=sha256:0a3d3487f07c1d7f150894c238299934a2a074ef590b583103a45002035be120 \ - --hash=sha256:0bfd0767c5c1de2551a120673b72e5d4b628737cb05414f03c3277bf9bed3305 \ - --hash=sha256:0c0850c8b02c298d3c7006b23e98249515ac57430e16a166873fc47a5d549287 \ - --hash=sha256:0e2cb47860da1f7e9a5256254b74ae331687b9672dfa780eed355c4c9c3dbd23 \ - --hash=sha256:120fa9349a24c7043854c53cae8cec227e1f79195a7493e09e0c12e29f918e52 \ - --hash=sha256:1247694b26342a7bf47c02e513d32225ededd18045264d40758abeb3c838a51f \ - --hash=sha256:141f1d1a9b663c679dc524af3ea1773e618907e96075262726c7612c02b149a4 \ - --hash=sha256:14e019fd83b831b2e61baed40cab76222139926b1fb5ed0e79225bc0cae14584 \ - --hash=sha256:1509dd12b773c02acd154582088820893109f6ca27ef7291b003d0e81666109f \ - --hash=sha256:17a753023436a18e27dd7769e798ce302963c236bc4114ceee5b25c18c52c693 \ - --hash=sha256:1e224d5755dba2f4a9498e150c43792392ac9b5380aa1b845f98a1618c94eeef \ - --hash=sha256:1f447ea5429b54f9582d4b955f5f1985f278ce5cf169f72eea8afd9502973dd5 \ - --hash=sha256:23eed6d7b1a3336ad92d8e39d4bfe09073c31bfe502f20ca5116b2a334f8ec02 \ - --hash=sha256:25f32acefac14ef7bd53e4218fe93b804ef6f6b92ffdb4322bb6d49d94cad2bc \ - --hash=sha256:2c74524e179f2ad6d2a4f7caf70e2d96639c0954c943ad601a9e146c76408ed7 \ - --hash=sha256:303bf1edce6ced16bf67a18a1cf8339d0db79577eec5d9a6d4a80f0fb10aa2da \ - --hash=sha256:3331bece23c9ee066e0fb3f96c61322b9e0f54d775fccefff4c38ca488de283a \ - --hash=sha256:3e9bdd30efde2b9ccfa9cb5768ba04fe71b018a25ea093379c857c9dad262c40 \ - --hash=sha256:411007c0d88188d9f621b11d252cce90c4a2d1a49db6c068e3c16422f306eab8 \ - --hash=sha256:42871176e7896d5d45138f6d28751053c711ed4d48d8e30b498da155af39aebd \ - --hash=sha256:46f409a2d60f634fe550f7133ed30ad5321ae2e6630f13657fb9479506b00601 \ - --hash=sha256:48628bd53a426c9eb9bc066a923acaa0878d1e86129fd5359aee99285f4eed9c \ - --hash=sha256:48d6ed886b343d11493129e019da91d4039826794a3e3027321c56d9e71505be \ - --hash=sha256:4930be26af26ac545c3dffb662521d4e6268352866956672231887d18f0eaab2 \ - --hash=sha256:4aec80cde9197340bc353d2768e2a75f5f60bacda2bab72ab1dc499589b3878c \ - --hash=sha256:4c28a9144688aef80d6ea666c809b4b0e50010a2aca784c97f5e6bf143d9f129 \ - --hash=sha256:4d2d1edbca80b510443f51afd8496be95529db04a509bc8faee49c7b0fb6d2cc \ - --hash=sha256:4dd9a263e845a72eacb60d12401e37c616438ea2e5442885f65082c276dfb2b2 \ - --hash=sha256:4f1026bc732b6a7f96369f7bfe1a4f2290fb34dce00d8644bc3036fb351a4ca1 \ - --hash=sha256:4fb960a632a49f2f089d522f70496640fdf1218f1243889da3822e0a9f5f3ba7 \ - --hash=sha256:50670615eaf97227d5dc60de2dc99fb134a7130d310d783314e7724bf163f75d \ - --hash=sha256:50baa9c1c47efcaef189f31e3d00d697c6d4afda5c3cde0302d063492ff9b477 \ - --hash=sha256:53ace1c1fd5a74ef662f844a0413446c0629d151055340e9893da958a374f70d \ - --hash=sha256:5515edd2a6d1a5a70bfcdee23b42ec33425e405c5b351478ab7dc9347228f96e \ - --hash=sha256:56dc1f1ebccc656d1b3ed288f11e27172a01503fc016bcabdcbc0978b19352b7 \ - --hash=sha256:578695735c5a3f51569810dfebd05dd6f888147a34f0f98d4bb27e92b76e05c2 \ - --hash=sha256:57aba1bbdf450b726d58b2aea5fe47c7875f5afb2c4a23784ed78f19a0462574 \ - --hash=sha256:57d6ba0ca2b0c462f339640d22882acc711de224d769edf29962b09f77129cbf \ - --hash=sha256:5c245b783db29c4e4fbbbfc9c5a78be496c9fea25517f90606aa1f6b2b3d5f7b \ - --hash=sha256:5c31c7462abdf8f2ac0577d9f05279727e698f97ecbb02f17939ea99ae8daa98 \ - --hash=sha256:64f479d719dc9f4c813ad9bb6b28f8390360660b73b2e4beb4cb0ae7104f1c12 \ - --hash=sha256:65299ea57d82fb91c7f019300d24050c4ddeb7c5a190e076b5f48a2b43d19c42 \ - --hash=sha256:6689a3d7fd13dc687e9102a27e98ef33730ac4fe37795d5036d18b4d527abd35 \ - --hash=sha256:690dafd0b187ed38583a648076865d8c229661ed20e48f2335d68e2cf7dc829d \ - --hash=sha256:6fc3c450eaa0b56f815c7b62f2b7fba7266c4779adcf1cece9e6deb1de7305ce \ - --hash=sha256:704f61ba8c1283c71b16135caf697557f5ecf3e74d9e453233e4771d68a1f42d \ - --hash=sha256:71c52db65e4b56b8ddc5bb89fb2e66c558ed9d1a74a45ceb7dcb20c191c3df2f \ - --hash=sha256:71d66ee82e7417828af6ecd7db817913cb0cf9d4e61aa0ac1fde0583d84358db \ - --hash=sha256:7d298a1bd60c067ea75d9f684f5f3992c9d6766fadbc0bcedd39750bf344c2f4 \ - --hash=sha256:8b77946fd508cbf0fccd8e400a7f71d4ac0e1595812e66025bac475a8e811694 \ - --hash=sha256:8d7e43bd40f65f7d97ad8ef5c9b1778943d02f04febef12def25f7583d19baac \ - --hash=sha256:8df133a2ea5e74eef5e8fc6f19b9e085f758768a16e9877a60aec455ed2609b2 \ - --hash=sha256:8ed74706b26ad100433da4b9d807eae371efaa266ffc3e9191ea436087a9d6a7 \ - --hash=sha256:92af161ecbdb2883c4593d5ed4815ea71b31fafd7fd05789b23100d081ecac96 \ - --hash=sha256:97047f0d25cd4bcae81f9ec9dc290ca3e15927c192df17331b53bebe0e3ff96d \ - --hash=sha256:9719fe17307a9e814580af1f5c6e05ca593b12fb7e44fe62450a5384dbf61b4b \ - --hash=sha256:9767e79108424fb6c3edf8f81e6730666a50feb01a328f4a016464a5893f835a \ - --hash=sha256:9a92d3faef50658dd2c5470af249985782bf754c4e18e15afb67d3ab06233f13 \ - --hash=sha256:9bb6ad405121241e99a86efff22d3ef469024ce22875a7ae045896ad23ba2340 \ - --hash=sha256:9e28c51fa0ce5674be9f560c6761c1b441631901993f76700b1b30ca6c8378d6 \ - --hash=sha256:aca086dc5f9ef98c512bac8efea4483eb84abbf926eaeedf7b91479feb092458 \ - --hash=sha256:ae8b9c6deb1e634ba4f1930eb67ef6e6bf6a44b6eb5ad605642b2d6d5ed9ce3c \ - --hash=sha256:b0a545b46b526d418eb91754565ba5b63b1c0b12f9bd2f808c852d9b4b2f9b5c \ - --hash=sha256:b4e4bc18382088514ebde9328da057775055940a1f2e18f6ad2d78aa0f3ec5b9 \ - --hash=sha256:b6420a005548ad52154c8ceab4a1290ff78d757f9e5cbc68f8c77089acd3c432 \ - --hash=sha256:b86164d2cff4d3aaa1f04a14685cbc072efd0b4f99ca5708b2ad1b9b5988a991 \ - --hash=sha256:bb3bb49c7a6ad9d981d734ef7c7193bc349ac338776a0360cc671eaee89bcf69 \ - --hash=sha256:bef4e656f7d98aaa3486d2627e7d2df1157d7e88e7efd43a65aa5dd4714916cf \ - --hash=sha256:c0781a98ff5e6586926293e59480b64ddd46282953203c76ae15dbbbf302e8bb \ - --hash=sha256:c2006f5c8d28dee289f7020f721354362fa304acbaaf9745751ac4006650254b \ - --hash=sha256:c41bfca0bd3532d53d16fd34d20806d5c2b1ace22a2f2e4c0008570bf2c58833 \ - --hash=sha256:cd47b4a0d41d2afa3e58e5bf1f62069255aa2fd6ff5ee41604418ca925911d76 \ - --hash=sha256:cdb650fc86227eba20de1a29d4b2c1bfe139dc75a0669270033cb2ea3d391b85 \ - --hash=sha256:cef2502e7e8a96fe5ad686d60b49e1ab03e438bd9123987994528febd569868e \ - --hash=sha256:d27be7405547d1f958b60837dc4c1007da90b8b23f54ba1f8b728c78fdb19d50 \ - --hash=sha256:d37017287a7adb6ab77e1c5bee9bcf9660f90ff445042b790402a654d2ad81d8 \ - --hash=sha256:d3ff32724f98fbbbfa9f49d82852b159e9784d6094983d9a8b7f2ddaebb063d4 \ - --hash=sha256:d73d8ecf8ecf10a3bd007f2192725a34bd62898e8da27eb9d32a58084f93962b \ - --hash=sha256:dd708cf4ee4408cf46a48b108fb9427bfa00b9b85812a9262b5c668af2533ea5 \ - --hash=sha256:e3cd95e10c2610c360154afdc2f1480aea394f4a4f1ea0a5eacce49640c9b190 \ - --hash=sha256:e4da8ca0c0c0aea88fd46be8e44bd49716772358d648cce45fe387f7b92374a7 \ - --hash=sha256:eadfbbbfb41b44034a4c757fd5d70baccd43296fb894dba0295606a7cf3124aa \ - --hash=sha256:ed667f49b11360951e201453fc3967344d0d0263aa415e1619e85ae7fd17b4e0 \ - --hash=sha256:f3df3db1d336b9356dd3112eae5f5c2b8b377f3bc826848567f10bfddfee77e9 \ - --hash=sha256:f6bdac493b949141b733c5345b6ba8f87a226029cbabc7e9e121a413e49441e0 \ - --hash=sha256:fbf521479bcac1e25a663df882c46a641a9bff6b56dc8b0fafaebd2f66fb231b \ - --hash=sha256:fc9b106a1bf918db68619fdcd6d5ad4f972fdd19c01d19bdb6bf63f3589a9ec5 \ - --hash=sha256:fcdd00edfd0a3001e0181eab3e63bd5c74ad3e67152c84f93f13769a40e073a7 \ - --hash=sha256:fe4bda6bd4340caa6e5cf95e73f8fea5c4bfc55763dd42f1b50a94c1b4a2fbd4 - # via -r requirements.in -markupsafe==2.1.3 \ - --hash=sha256:05fb21170423db021895e1ea1e1f3ab3adb85d1c2333cbc2310f2a26bc77272e \ - --hash=sha256:0a4e4a1aff6c7ac4cd55792abf96c915634c2b97e3cc1c7129578aa68ebd754e \ - --hash=sha256:10bbfe99883db80bdbaff2dcf681dfc6533a614f700da1287707e8a5d78a8431 \ - --hash=sha256:134da1eca9ec0ae528110ccc9e48041e0828d79f24121a1a146161103c76e686 \ - --hash=sha256:1577735524cdad32f9f694208aa75e422adba74f1baee7551620e43a3141f559 \ - --hash=sha256:1b40069d487e7edb2676d3fbdb2b0829ffa2cd63a2ec26c4938b2d34391b4ecc \ - --hash=sha256:282c2cb35b5b673bbcadb33a585408104df04f14b2d9b01d4c345a3b92861c2c \ - --hash=sha256:2c1b19b3aaacc6e57b7e25710ff571c24d6c3613a45e905b1fde04d691b98ee0 \ - --hash=sha256:2ef12179d3a291be237280175b542c07a36e7f60718296278d8593d21ca937d4 \ - --hash=sha256:338ae27d6b8745585f87218a3f23f1512dbf52c26c28e322dbe54bcede54ccb9 \ - --hash=sha256:3c0fae6c3be832a0a0473ac912810b2877c8cb9d76ca48de1ed31e1c68386575 \ - --hash=sha256:3fd4abcb888d15a94f32b75d8fd18ee162ca0c064f35b11134be77050296d6ba \ - --hash=sha256:42de32b22b6b804f42c5d98be4f7e5e977ecdd9ee9b660fda1a3edf03b11792d \ - --hash=sha256:504b320cd4b7eff6f968eddf81127112db685e81f7e36e75f9f84f0df46041c3 \ - --hash=sha256:525808b8019e36eb524b8c68acdd63a37e75714eac50e988180b169d64480a00 \ - --hash=sha256:56d9f2ecac662ca1611d183feb03a3fa4406469dafe241673d521dd5ae92a155 \ - --hash=sha256:5bbe06f8eeafd38e5d0a4894ffec89378b6c6a625ff57e3028921f8ff59318ac \ - --hash=sha256:65c1a9bcdadc6c28eecee2c119465aebff8f7a584dd719facdd9e825ec61ab52 \ - --hash=sha256:68e78619a61ecf91e76aa3e6e8e33fc4894a2bebe93410754bd28fce0a8a4f9f \ - --hash=sha256:69c0f17e9f5a7afdf2cc9fb2d1ce6aabdb3bafb7f38017c0b77862bcec2bbad8 \ - --hash=sha256:6b2b56950d93e41f33b4223ead100ea0fe11f8e6ee5f641eb753ce4b77a7042b \ - --hash=sha256:787003c0ddb00500e49a10f2844fac87aa6ce977b90b0feaaf9de23c22508b24 \ - --hash=sha256:7ef3cb2ebbf91e330e3bb937efada0edd9003683db6b57bb108c4001f37a02ea \ - --hash=sha256:8023faf4e01efadfa183e863fefde0046de576c6f14659e8782065bcece22198 \ - --hash=sha256:8758846a7e80910096950b67071243da3e5a20ed2546e6392603c096778d48e0 \ - --hash=sha256:8afafd99945ead6e075b973fefa56379c5b5c53fd8937dad92c662da5d8fd5ee \ - --hash=sha256:8c41976a29d078bb235fea9b2ecd3da465df42a562910f9022f1a03107bd02be \ - --hash=sha256:8e254ae696c88d98da6555f5ace2279cf7cd5b3f52be2b5cf97feafe883b58d2 \ - --hash=sha256:9402b03f1a1b4dc4c19845e5c749e3ab82d5078d16a2a4c2cd2df62d57bb0707 \ - --hash=sha256:962f82a3086483f5e5f64dbad880d31038b698494799b097bc59c2edf392fce6 \ - --hash=sha256:9dcdfd0eaf283af041973bff14a2e143b8bd64e069f4c383416ecd79a81aab58 \ - --hash=sha256:aa7bd130efab1c280bed0f45501b7c8795f9fdbeb02e965371bbef3523627779 \ - --hash=sha256:ab4a0df41e7c16a1392727727e7998a467472d0ad65f3ad5e6e765015df08636 \ - --hash=sha256:ad9e82fb8f09ade1c3e1b996a6337afac2b8b9e365f926f5a61aacc71adc5b3c \ - --hash=sha256:af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad \ - --hash=sha256:b076b6226fb84157e3f7c971a47ff3a679d837cf338547532ab866c57930dbee \ - --hash=sha256:b7ff0f54cb4ff66dd38bebd335a38e2c22c41a8ee45aa608efc890ac3e3931bc \ - --hash=sha256:bfce63a9e7834b12b87c64d6b155fdd9b3b96191b6bd334bf37db7ff1fe457f2 \ - --hash=sha256:c011a4149cfbcf9f03994ec2edffcb8b1dc2d2aede7ca243746df97a5d41ce48 \ - --hash=sha256:c9c804664ebe8f83a211cace637506669e7890fec1b4195b505c214e50dd4eb7 \ - --hash=sha256:ca379055a47383d02a5400cb0d110cef0a776fc644cda797db0c5696cfd7e18e \ - --hash=sha256:cb0932dc158471523c9637e807d9bfb93e06a95cbf010f1a38b98623b929ef2b \ - --hash=sha256:cd0f502fe016460680cd20aaa5a76d241d6f35a1c3350c474bac1273803893fa \ - --hash=sha256:ceb01949af7121f9fc39f7d27f91be8546f3fb112c608bc4029aef0bab86a2a5 \ - --hash=sha256:d080e0a5eb2529460b30190fcfcc4199bd7f827663f858a226a81bc27beaa97e \ - --hash=sha256:dd15ff04ffd7e05ffcb7fe79f1b98041b8ea30ae9234aed2a9168b5797c3effb \ - --hash=sha256:df0be2b576a7abbf737b1575f048c23fb1d769f267ec4358296f31c2479db8f9 \ - --hash=sha256:e09031c87a1e51556fdcb46e5bd4f59dfb743061cf93c4d6831bf894f125eb57 \ - --hash=sha256:e4dd52d80b8c83fdce44e12478ad2e85c64ea965e75d66dbeafb0a3e77308fcc \ - --hash=sha256:fec21693218efe39aa7f8599346e90c705afa52c5b31ae019b2e57e8f6542bb2 - # via - # -r requirements.in - # jinja2 -protobuf==4.23.4 \ - --hash=sha256:0a5759f5696895de8cc913f084e27fd4125e8fb0914bb729a17816a33819f474 \ - --hash=sha256:351cc90f7d10839c480aeb9b870a211e322bf05f6ab3f55fcb2f51331f80a7d2 \ - --hash=sha256:5fea3c64d41ea5ecf5697b83e41d09b9589e6f20b677ab3c48e5f242d9b7897b \ - --hash=sha256:6dd9b9940e3f17077e820b75851126615ee38643c2c5332aa7a359988820c720 \ - --hash=sha256:7b19b6266d92ca6a2a87effa88ecc4af73ebc5cfde194dc737cf8ef23a9a3b12 \ - --hash=sha256:8547bf44fe8cec3c69e3042f5c4fb3e36eb2a7a013bb0a44c018fc1e427aafbd \ - --hash=sha256:9053df6df8e5a76c84339ee4a9f5a2661ceee4a0dab019e8663c50ba324208b0 \ - --hash=sha256:c3e0939433c40796ca4cfc0fac08af50b00eb66a40bbbc5dee711998fb0bbc1e \ - --hash=sha256:ccd9430c0719dce806b93f89c91de7977304729e55377f872a92465d548329a9 \ - --hash=sha256:e1c915778d8ced71e26fcf43c0866d7499891bca14c4368448a82edc61fdbc70 \ - --hash=sha256:e9d0be5bf34b275b9f87ba7407796556abeeba635455d036c7351f7c183ef8ff \ - --hash=sha256:effeac51ab79332d44fba74660d40ae79985901ac21bca408f8dc335a81aa597 \ - --hash=sha256:fee88269a090ada09ca63551bf2f573eb2424035bcf2cb1b121895b01a46594a - # via -r requirements.in -pyyaml==6.0 \ - --hash=sha256:01b45c0191e6d66c470b6cf1b9531a771a83c1c4208272ead47a3ae4f2f603bf \ - --hash=sha256:0283c35a6a9fbf047493e3a0ce8d79ef5030852c51e9d911a27badfde0605293 \ - --hash=sha256:055d937d65826939cb044fc8c9b08889e8c743fdc6a32b33e2390f66013e449b \ - --hash=sha256:07751360502caac1c067a8132d150cf3d61339af5691fe9e87803040dbc5db57 \ - --hash=sha256:0b4624f379dab24d3725ffde76559cff63d9ec94e1736b556dacdfebe5ab6d4b \ - --hash=sha256:0ce82d761c532fe4ec3f87fc45688bdd3a4c1dc5e0b4a19814b9009a29baefd4 \ - --hash=sha256:1e4747bc279b4f613a09eb64bba2ba602d8a6664c6ce6396a4d0cd413a50ce07 \ - --hash=sha256:213c60cd50106436cc818accf5baa1aba61c0189ff610f64f4a3e8c6726218ba \ - --hash=sha256:231710d57adfd809ef5d34183b8ed1eeae3f76459c18fb4a0b373ad56bedcdd9 \ - --hash=sha256:277a0ef2981ca40581a47093e9e2d13b3f1fbbeffae064c1d21bfceba2030287 \ - --hash=sha256:2cd5df3de48857ed0544b34e2d40e9fac445930039f3cfe4bcc592a1f836d513 \ - --hash=sha256:40527857252b61eacd1d9af500c3337ba8deb8fc298940291486c465c8b46ec0 \ - --hash=sha256:432557aa2c09802be39460360ddffd48156e30721f5e8d917f01d31694216782 \ - --hash=sha256:473f9edb243cb1935ab5a084eb238d842fb8f404ed2193a915d1784b5a6b5fc0 \ - --hash=sha256:48c346915c114f5fdb3ead70312bd042a953a8ce5c7106d5bfb1a5254e47da92 \ - --hash=sha256:50602afada6d6cbfad699b0c7bb50d5ccffa7e46a3d738092afddc1f9758427f \ - --hash=sha256:68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2 \ - --hash=sha256:77f396e6ef4c73fdc33a9157446466f1cff553d979bd00ecb64385760c6babdc \ - --hash=sha256:81957921f441d50af23654aa6c5e5eaf9b06aba7f0a19c18a538dc7ef291c5a1 \ - --hash=sha256:819b3830a1543db06c4d4b865e70ded25be52a2e0631ccd2f6a47a2822f2fd7c \ - --hash=sha256:897b80890765f037df3403d22bab41627ca8811ae55e9a722fd0392850ec4d86 \ - --hash=sha256:98c4d36e99714e55cfbaaee6dd5badbc9a1ec339ebfc3b1f52e293aee6bb71a4 \ - --hash=sha256:9df7ed3b3d2e0ecfe09e14741b857df43adb5a3ddadc919a2d94fbdf78fea53c \ - --hash=sha256:9fa600030013c4de8165339db93d182b9431076eb98eb40ee068700c9c813e34 \ - --hash=sha256:a80a78046a72361de73f8f395f1f1e49f956c6be882eed58505a15f3e430962b \ - --hash=sha256:afa17f5bc4d1b10afd4466fd3a44dc0e245382deca5b3c353d8b757f9e3ecb8d \ - --hash=sha256:b3d267842bf12586ba6c734f89d1f5b871df0273157918b0ccefa29deb05c21c \ - --hash=sha256:b5b9eccad747aabaaffbc6064800670f0c297e52c12754eb1d976c57e4f74dcb \ - --hash=sha256:bfaef573a63ba8923503d27530362590ff4f576c626d86a9fed95822a8255fd7 \ - --hash=sha256:c5687b8d43cf58545ade1fe3e055f70eac7a5a1a0bf42824308d868289a95737 \ - --hash=sha256:cba8c411ef271aa037d7357a2bc8f9ee8b58b9965831d9e51baf703280dc73d3 \ - --hash=sha256:d15a181d1ecd0d4270dc32edb46f7cb7733c7c508857278d3d378d14d606db2d \ - --hash=sha256:d4b0ba9512519522b118090257be113b9468d804b19d63c71dbcf4a48fa32358 \ - --hash=sha256:d4db7c7aef085872ef65a8fd7d6d09a14ae91f691dec3e87ee5ee0539d516f53 \ - --hash=sha256:d4eccecf9adf6fbcc6861a38015c2a64f38b9d94838ac1810a9023a0609e1b78 \ - --hash=sha256:d67d839ede4ed1b28a4e8909735fc992a923cdb84e618544973d7dfc71540803 \ - --hash=sha256:daf496c58a8c52083df09b80c860005194014c3698698d1a57cbcfa182142a3a \ - --hash=sha256:dbad0e9d368bb989f4515da330b88a057617d16b6a8245084f1b05400f24609f \ - --hash=sha256:e61ceaab6f49fb8bdfaa0f92c4b57bcfbea54c09277b1b4f7ac376bfb7a7c174 \ - --hash=sha256:f84fbc98b019fef2ee9a1cb3ce93e3187a6df0b2538a651bfb890254ba9f90b5 - # via -r requirements.in -requests==2.31.0 \ - --hash=sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f \ - --hash=sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1 - # via -r requirements.in -typing==3.7.4.3 \ - --hash=sha256:1187fb9c82fd670d10aa07bbb6cfcfe4bdda42d6fab8d5134f04e8c4d0b71cc9 \ - --hash=sha256:283d868f5071ab9ad873e5e52268d611e851c870a2ba354193026f2dfb29d8b5 - # via -r requirements.in -urllib3==2.0.7 \ - --hash=sha256:c97dfde1f7bd43a71c8d2a58e369e9b2bf692d1334ea9f9cae55add7d0dd0f84 \ - --hash=sha256:fdb6d215c776278489906c2f8916e6e7d4f5a9b602ccbcfdf7f016fc8da0596e - # via requests -watchdog==3.0.0 \ - --hash=sha256:0e06ab8858a76e1219e68c7573dfeba9dd1c0219476c5a44d5333b01d7e1743a \ - --hash=sha256:13bbbb462ee42ec3c5723e1205be8ced776f05b100e4737518c67c8325cf6100 \ - --hash=sha256:233b5817932685d39a7896b1090353fc8efc1ef99c9c054e46c8002561252fb8 \ - --hash=sha256:25f70b4aa53bd743729c7475d7ec41093a580528b100e9a8c5b5efe8899592fc \ - --hash=sha256:2b57a1e730af3156d13b7fdddfc23dea6487fceca29fc75c5a868beed29177ae \ - --hash=sha256:336adfc6f5cc4e037d52db31194f7581ff744b67382eb6021c868322e32eef41 \ - --hash=sha256:3aa7f6a12e831ddfe78cdd4f8996af9cf334fd6346531b16cec61c3b3c0d8da0 \ - --hash=sha256:3ed7c71a9dccfe838c2f0b6314ed0d9b22e77d268c67e015450a29036a81f60f \ - --hash=sha256:4c9956d27be0bb08fc5f30d9d0179a855436e655f046d288e2bcc11adfae893c \ - --hash=sha256:4d98a320595da7a7c5a18fc48cb633c2e73cda78f93cac2ef42d42bf609a33f9 \ - --hash=sha256:4f94069eb16657d2c6faada4624c39464f65c05606af50bb7902e036e3219be3 \ - --hash=sha256:5113334cf8cf0ac8cd45e1f8309a603291b614191c9add34d33075727a967709 \ - --hash=sha256:51f90f73b4697bac9c9a78394c3acbbd331ccd3655c11be1a15ae6fe289a8c83 \ - --hash=sha256:5d9f3a10e02d7371cd929b5d8f11e87d4bad890212ed3901f9b4d68767bee759 \ - --hash=sha256:7ade88d0d778b1b222adebcc0927428f883db07017618a5e684fd03b83342bd9 \ - --hash=sha256:7c5f84b5194c24dd573fa6472685b2a27cc5a17fe5f7b6fd40345378ca6812e3 \ - --hash=sha256:7e447d172af52ad204d19982739aa2346245cc5ba6f579d16dac4bfec226d2e7 \ - --hash=sha256:8ae9cda41fa114e28faf86cb137d751a17ffd0316d1c34ccf2235e8a84365c7f \ - --hash=sha256:8f3ceecd20d71067c7fd4c9e832d4e22584318983cabc013dbf3f70ea95de346 \ - --hash=sha256:9fac43a7466eb73e64a9940ac9ed6369baa39b3bf221ae23493a9ec4d0022674 \ - --hash=sha256:a70a8dcde91be523c35b2bf96196edc5730edb347e374c7de7cd20c43ed95397 \ - --hash=sha256:adfdeab2da79ea2f76f87eb42a3ab1966a5313e5a69a0213a3cc06ef692b0e96 \ - --hash=sha256:ba07e92756c97e3aca0912b5cbc4e5ad802f4557212788e72a72a47ff376950d \ - --hash=sha256:c07253088265c363d1ddf4b3cdb808d59a0468ecd017770ed716991620b8f77a \ - --hash=sha256:c9d8c8ec7efb887333cf71e328e39cffbf771d8f8f95d308ea4125bf5f90ba64 \ - --hash=sha256:d00e6be486affb5781468457b21a6cbe848c33ef43f9ea4a73b4882e5f188a44 \ - --hash=sha256:d429c2430c93b7903914e4db9a966c7f2b068dd2ebdd2fa9b9ce094c7d459f33 - # via -r requirements.in diff --git a/library_generation/postprocess_library.sh b/library_generation/postprocess_library.sh index 8ab7f1527a..b4f4d11dbc 100755 --- a/library_generation/postprocess_library.sh +++ b/library_generation/postprocess_library.sh @@ -95,11 +95,6 @@ python3 -m pip install -r requirements.in popd # synthtool popd # temp dir -# we install the owlbot requirements -pushd "${scripts_root}/owlbot/src/" -python3 -m pip install -r requirements.in -popd # owlbot/src - # run the postprocessor echo 'running owl-bot post-processor' pushd "${postprocessing_target}" diff --git a/library_generation/requirements.in b/library_generation/requirements.in index 1c1f476434..bbbe952c85 100644 --- a/library_generation/requirements.in +++ b/library_generation/requirements.in @@ -16,3 +16,7 @@ PyYAML==6.0.1 smmap==5.0.1 typing==3.7.4.3 parameterized==0.9.0 # used in parameterized test +colorlog==6.8.2 +protobuf==4.25.2 +watchdog==4.0.0 +requests==2.31.0 From e6cb02061256851182301712be5ed093efe39051 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Tue, 13 Feb 2024 19:08:53 +0000 Subject: [PATCH 64/75] chore: add opentelemery to shared dependencies (#2456) b/323979063 Co-authored-by: Alice <65933803+alicejli@users.noreply.github.com> --- .../third-party-dependencies/pom.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/java-shared-dependencies/third-party-dependencies/pom.xml b/java-shared-dependencies/third-party-dependencies/pom.xml index ae0580e0e6..28fae8ac02 100644 --- a/java-shared-dependencies/third-party-dependencies/pom.xml +++ b/java-shared-dependencies/third-party-dependencies/pom.xml @@ -37,6 +37,7 @@ 3.42.0 0.27.0 2.8 + 1.34.1
@@ -146,6 +147,16 @@ j2objc-annotations ${j2objc-annotations.version}
+ + io.opentelemetry + opentelemetry-api + ${opentelemetry.version} + + + io.opentelemetry + opentelemetry-context + ${opentelemetry.version} +
\ No newline at end of file From c66bc559f59d53e73f28183ec16badb468b83f29 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 13 Feb 2024 21:28:35 +0100 Subject: [PATCH 65/75] deps: update dependency commons-codec:commons-codec to v1.16.1 (#2473) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [commons-codec:commons-codec](https://commons.apache.org/proper/commons-codec/) ([source](https://togithub.com/apache/commons-codec)) | `1.16.0` -> `1.16.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/commons-codec:commons-codec/1.16.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/commons-codec:commons-codec/1.16.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/commons-codec:commons-codec/1.16.0/1.16.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/commons-codec:commons-codec/1.16.0/1.16.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/sdk-platform-java). --- java-shared-dependencies/third-party-dependencies/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-shared-dependencies/third-party-dependencies/pom.xml b/java-shared-dependencies/third-party-dependencies/pom.xml index 28fae8ac02..c0d53349fe 100644 --- a/java-shared-dependencies/third-party-dependencies/pom.xml +++ b/java-shared-dependencies/third-party-dependencies/pom.xml @@ -30,7 +30,7 @@ 3.0.2 2.16.1 2.24.1 - 1.16.0 + 1.16.1 4.4.16 4.5.14 From 93fefb0d2eba3b08fe7d0fc7191e11114f927466 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 13 Feb 2024 21:50:00 +0100 Subject: [PATCH 66/75] deps: update google auth library dependencies to v1.23.0 (#2476) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.auth:google-auth-library-bom](https://togithub.com/googleapis/google-auth-library-java) | `1.22.0` -> `1.23.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.auth:google-auth-library-bom/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.auth:google-auth-library-bom/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.auth:google-auth-library-bom/1.22.0/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.auth:google-auth-library-bom/1.22.0/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [com.google.auth:google-auth-library-oauth2-http](https://togithub.com/googleapis/google-auth-library-java) | `1.22.0` -> `1.23.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.auth:google-auth-library-oauth2-http/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.auth:google-auth-library-oauth2-http/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.auth:google-auth-library-oauth2-http/1.22.0/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.auth:google-auth-library-oauth2-http/1.22.0/1.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes
googleapis/google-auth-library-java (com.google.auth:google-auth-library-bom) ### [`v1.23.0`](https://togithub.com/googleapis/google-auth-library-java/blob/HEAD/CHANGELOG.md#1230-2024-02-05) [Compare Source](https://togithub.com/googleapis/google-auth-library-java/compare/v1.22.0...v1.23.0) ##### Features - Add context object to pass to supplier functions ([#​1363](https://togithub.com/googleapis/google-auth-library-java/issues/1363)) ([1d9efc7](https://togithub.com/googleapis/google-auth-library-java/commit/1d9efc78aa6ab24fc2aab5f081240a815c394c95)) - Adds support for user defined subject token suppliers in AWSCredentials and IdentityPoolCredentials ([#​1336](https://togithub.com/googleapis/google-auth-library-java/issues/1336)) ([64ce8a1](https://togithub.com/googleapis/google-auth-library-java/commit/64ce8a1fbb82cb19e17ca0c6713c7c187078c28b)) - Adds universe domain for DownscopedCredentials and ExternalAccountAuthorizedUserCredentials ([#​1355](https://togithub.com/googleapis/google-auth-library-java/issues/1355)) ([17ef707](https://togithub.com/googleapis/google-auth-library-java/commit/17ef70748aae4820f10694ae99c82ed7ca89dbce)) - Modify the refresh window to match go/async-token-refresh. Serverless tokens are cached until 4 minutes before expiration, so 4 minutes is the ideal refresh window. ([#​1352](https://togithub.com/googleapis/google-auth-library-java/issues/1352)) ([a7a8d7a](https://togithub.com/googleapis/google-auth-library-java/commit/a7a8d7a4102b0b7c1b83791947ccb662f060eca7)) ##### Bug Fixes - Add missing copyright header ([#​1364](https://togithub.com/googleapis/google-auth-library-java/issues/1364)) ([a24e563](https://togithub.com/googleapis/google-auth-library-java/commit/a24e5631b8198d988a7b82deab5453e43917b0d2)) - Issue [#​1347](https://togithub.com/googleapis/google-auth-library-java/issues/1347): ExternalAccountCredentials serialization is broken ([#​1358](https://togithub.com/googleapis/google-auth-library-java/issues/1358)) ([e3a2e9c](https://togithub.com/googleapis/google-auth-library-java/commit/e3a2e9cbdd767c4664d895f98f69d8b742d645f0)) - Refactor compute and cloudshell credentials to pass quota project to base class ([#​1284](https://togithub.com/googleapis/google-auth-library-java/issues/1284)) ([fb75239](https://togithub.com/googleapis/google-auth-library-java/commit/fb75239ead37b6677a392f38ea2ef2012b3f21e0))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/sdk-platform-java). --- gapic-generator-java-pom-parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gapic-generator-java-pom-parent/pom.xml b/gapic-generator-java-pom-parent/pom.xml index a08bcf47fe..0869c4338c 100644 --- a/gapic-generator-java-pom-parent/pom.xml +++ b/gapic-generator-java-pom-parent/pom.xml @@ -27,7 +27,7 @@ consistent across modules in this repository --> 1.3.2 1.61.1 - 1.22.0 + 1.23.0 1.44.1 2.10.1 32.1.3-jre From 5a606654ee8e1698904d67379dd252e27ae34e03 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Tue, 13 Feb 2024 20:51:32 +0000 Subject: [PATCH 67/75] fix: Cancel the Timeout Task for HttpJson (#2360) Fixes: https://github.com/googleapis/google-cloud-java/issues/10220 Currently, the executorService will wait for any previously submitted task to finish execution before being able to terminate. This PR attempts to fix the issue by cancelling the outstanding timeout task. If a response has been received prior to the timeout, the timeout task will be cancelled and the client should be able to terminate immediately afterwards. This fixes an issue for Clients that have RPCs with a large timeout value (i.e. 10 min). The client would wait 10 minutes before being able to terminate completely. ## Local Testing Running this with SNAPSHOT Gax version (2.41.1-SNAPSHOT) and latest Compute from Libraries-Bom v26.31.0 Logs: ``` } at com.google.api.client.http.HttpResponseException$Builder.build(HttpResponseException.java:293) at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1118) at com.google.api.gax.httpjson.HttpRequestRunnable.run(HttpRequestRunnable.java:115) ... 6 more Process finished with exit code 1 ``` Running this with latest Gax version (fix not included) and latest Compute from Libraries-Bom v26.31.0: ``` } } at com.google.api.client.http.HttpResponseException$Builder.build(HttpResponseException.java:293) at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1118) at com.google.api.gax.httpjson.HttpRequestRunnable.run(HttpRequestRunnable.java:115) ... 6 more ``` Missing the termination and exit code. It shows up after 10 minutes. --- .../gax/httpjson/HttpJsonClientCallImpl.java | 40 ++++- .../httpjson/HttpJsonClientCallImplTest.java | 139 +++++++++++++++ .../showcase/v1beta1/it/ITClientShutdown.java | 158 ++++++++++++++++++ 3 files changed, 328 insertions(+), 9 deletions(-) create mode 100644 gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonClientCallImplTest.java create mode 100644 showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITClientShutdown.java diff --git a/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonClientCallImpl.java b/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonClientCallImpl.java index b98a5319fc..4ec7572216 100644 --- a/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonClientCallImpl.java +++ b/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonClientCallImpl.java @@ -46,6 +46,7 @@ import java.util.concurrent.CancellationException; import java.util.concurrent.Executor; import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import javax.annotation.Nullable; @@ -121,6 +122,13 @@ final class HttpJsonClientCallImpl @GuardedBy("lock") private volatile boolean closed; + // Store the timeout future created by the deadline schedule executor. The future + // can be cancelled if a response (either an error or valid payload) has been + // received before the timeout. This value may be null if the RPC does not have a + // timeout. + @GuardedBy("lock") + private volatile ScheduledFuture timeoutFuture; + HttpJsonClientCallImpl( ApiMethodDescriptor methodDescriptor, String endpoint, @@ -167,16 +175,20 @@ public void start(Listener responseListener, HttpJsonMetadata request Preconditions.checkState(this.listener == null, "The call is already started"); this.listener = responseListener; this.requestHeaders = requestHeaders; - } - // Use the timeout duration value instead of calculating the future Instant - // Only schedule the deadline if the RPC timeout has been set in the RetrySettings - Duration timeout = callOptions.getTimeout(); - if (timeout != null) { - // The future timeout value is guaranteed to not be a negative value as the - // RetryAlgorithm will not retry - long timeoutMs = timeout.toMillis(); - this.deadlineCancellationExecutor.schedule(this::timeout, timeoutMs, TimeUnit.MILLISECONDS); + // Use the timeout duration value instead of calculating the future Instant + // Only schedule the deadline if the RPC timeout has been set in the RetrySettings + Duration timeout = callOptions.getTimeout(); + if (timeout != null) { + // The future timeout value is guaranteed to not be a negative value as the + // RetryAlgorithm will not retry + long timeoutMs = timeout.toMillis(); + // Assign the scheduled future so that it can be cancelled if the timeout task + // is not needed (response received prior to timeout) + timeoutFuture = + this.deadlineCancellationExecutor.schedule( + this::timeout, timeoutMs, TimeUnit.MILLISECONDS); + } } } @@ -430,6 +442,16 @@ private void close( return; } closed = true; + + // Cancel the timeout future if there is a timeout associated with the RPC + if (timeoutFuture != null) { + // The timeout method also invokes close() and the second invocation of close() + // will be guarded by the closed check above. No need to interrupt the timeout + // task as running the timeout task is quick. + timeoutFuture.cancel(false); + timeoutFuture = null; + } + // Best effort task cancellation (to not be confused with task's thread interruption). // If the task is in blocking I/O waiting for the server response, it will keep waiting for // the response from the server, but once response is received the task will exit silently. diff --git a/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonClientCallImplTest.java b/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonClientCallImplTest.java new file mode 100644 index 0000000000..0355dd0d4b --- /dev/null +++ b/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonClientCallImplTest.java @@ -0,0 +1,139 @@ +/* + * Copyright 2024 Google LLC + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Google LLC nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +package com.google.api.gax.httpjson; + +import com.google.api.client.http.HttpTransport; +import com.google.common.truth.Truth; +import com.google.protobuf.TypeRegistry; +import java.io.ByteArrayInputStream; +import java.io.InputStream; +import java.io.Reader; +import java.time.Duration; +import java.util.concurrent.Executor; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mock; +import org.mockito.Mockito; +import org.mockito.junit.MockitoJUnitRunner; + +@RunWith(MockitoJUnitRunner.class) +public class HttpJsonClientCallImplTest { + @Mock private ApiMethodDescriptor apiMethodDescriptor; + @Mock private HttpResponseParser httpResponseParser; + @Mock private HttpJsonCallOptions httpJsonCallOptions; + @Mock private TypeRegistry typeRegistry; + @Mock private HttpTransport httpTransport; + @Mock private Executor executor; + @Mock private HttpJsonClientCall.Listener listener; + + @Test + public void responseReceived_noCancellationTask() { + ScheduledThreadPoolExecutor deadlineSchedulerExecutor = new ScheduledThreadPoolExecutor(1); + // Null timeout means no timeout task created + Mockito.when(httpJsonCallOptions.getTimeout()).thenReturn(null); + + HttpJsonClientCallImpl httpJsonClientCall = + new HttpJsonClientCallImpl<>( + apiMethodDescriptor, + "", + httpJsonCallOptions, + httpTransport, + executor, + deadlineSchedulerExecutor); + httpJsonClientCall.start(listener, HttpJsonMetadata.newBuilder().build()); + // No timeout task in the work queue + Truth.assertThat(deadlineSchedulerExecutor.getQueue().size()).isEqualTo(0); + // Follows the numMessages requested from HttpJsonClientCalls.futureUnaryCall() + httpJsonClientCall.request(2); + httpJsonClientCall.setResult( + HttpRequestRunnable.RunnableResult.builder() + .setStatusCode(200) + .setTrailers(HttpJsonMetadata.newBuilder().build()) + .build()); + Truth.assertThat(deadlineSchedulerExecutor.getQueue().size()).isEqualTo(0); + deadlineSchedulerExecutor.shutdown(); + // Scheduler is not waiting for any task and should terminate immediately + Truth.assertThat(deadlineSchedulerExecutor.isTerminated()).isTrue(); + } + + @Test + public void responseReceived_cancellationTaskExists_isCancelledProperly() + throws InterruptedException { + ScheduledThreadPoolExecutor deadlineSchedulerExecutor = new ScheduledThreadPoolExecutor(1); + // SetRemoveOnCancelPolicy will immediately remove the task from the work queue + // when the task is cancelled + deadlineSchedulerExecutor.setRemoveOnCancelPolicy(true); + + // Setting a timeout for this call will enqueue a timeout task + Mockito.when(httpJsonCallOptions.getTimeout()).thenReturn(Duration.ofMinutes(10)); + + String response = "Content"; + InputStream inputStream = new ByteArrayInputStream(response.getBytes()); + Mockito.when(httpJsonCallOptions.getTypeRegistry()).thenReturn(typeRegistry); + Mockito.when(apiMethodDescriptor.getResponseParser()).thenReturn(httpResponseParser); + Mockito.when( + httpResponseParser.parse(Mockito.any(Reader.class), Mockito.any(TypeRegistry.class))) + .thenReturn(response); + HttpJsonClientCallImpl httpJsonClientCall = + new HttpJsonClientCallImpl<>( + apiMethodDescriptor, + "", + httpJsonCallOptions, + httpTransport, + executor, + deadlineSchedulerExecutor); + httpJsonClientCall.start(listener, HttpJsonMetadata.newBuilder().build()); + // The timeout task is scheduled for 10 minutes from invocation. The task should be + // populated in the work queue, scheduled to run, but not active yet. + Truth.assertThat(deadlineSchedulerExecutor.getQueue().size()).isEqualTo(1); + // Follows the numMessages requested from HttpJsonClientCalls.futureUnaryCall() + httpJsonClientCall.request(2); + httpJsonClientCall.setResult( + HttpRequestRunnable.RunnableResult.builder() + .setStatusCode(200) + .setTrailers(HttpJsonMetadata.newBuilder().build()) + .setResponseContent(inputStream) + .build()); + // After the result is received, `close()` should have run and removed the timeout task + // Expect that there are no tasks in the queue and no active tasks + Truth.assertThat(deadlineSchedulerExecutor.getQueue().size()).isEqualTo(0); + deadlineSchedulerExecutor.shutdown(); + + // Ideally, this test wouldn't need to awaitTermination. Given the machine this test + // is running on, we can't guarantee that isTerminated is true immediately. The point + // of this test is that it doesn't wait the full timeout duration (10 min) to terminate + // and rather is able to terminate after we invoke shutdown on the deadline scheduler. + deadlineSchedulerExecutor.awaitTermination(5, TimeUnit.SECONDS); + // Scheduler is not waiting for any task and should terminate quickly + Truth.assertThat(deadlineSchedulerExecutor.isTerminated()).isTrue(); + } +} diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITClientShutdown.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITClientShutdown.java new file mode 100644 index 0000000000..5915c8e065 --- /dev/null +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITClientShutdown.java @@ -0,0 +1,158 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.showcase.v1beta1.it; + +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.ImmutableSet; +import com.google.common.truth.Truth; +import com.google.showcase.v1beta1.BlockRequest; +import com.google.showcase.v1beta1.BlockResponse; +import com.google.showcase.v1beta1.EchoClient; +import com.google.showcase.v1beta1.EchoRequest; +import com.google.showcase.v1beta1.it.util.TestClientInitializer; +import org.junit.Test; +import org.threeten.bp.Duration; + +public class ITClientShutdown { + + private static final long DEFAULT_RPC_TIMEOUT_MS = 15000L; + private static final long DEFAULT_CLIENT_TERMINATION_MS = 5000L; + + // Test to ensure the client can close + terminate properly + @Test(timeout = 15000L) + public void testGrpc_closeClient() throws Exception { + EchoClient grpcClient = TestClientInitializer.createGrpcEchoClient(); + assertClientTerminated(grpcClient); + } + + // Test to ensure the client can close + terminate properly + @Test(timeout = 15000L) + public void testHttpJson_closeClient() throws Exception { + EchoClient httpjsonClient = TestClientInitializer.createHttpJsonEchoClient(); + assertClientTerminated(httpjsonClient); + } + + // Test to ensure the client can close + terminate after a quick RPC invocation + @Test(timeout = 15000L) + public void testGrpc_rpcInvoked_closeClient() throws Exception { + EchoClient grpcClient = TestClientInitializer.createGrpcEchoClient(); + // Response is ignored for this test + grpcClient.echo(EchoRequest.newBuilder().setContent("Test").build()); + assertClientTerminated(grpcClient); + } + + // Test to ensure the client can close + terminate after a quick RPC invocation + @Test(timeout = 15000L) + public void testHttpJson_rpcInvoked_closeClient() throws Exception { + EchoClient httpjsonClient = TestClientInitializer.createHttpJsonEchoClient(); + // Response is ignored for this test + httpjsonClient.echo(EchoRequest.newBuilder().setContent("Test").build()); + assertClientTerminated(httpjsonClient); + } + + // This test is to ensure that the client is able to close + terminate any resources + // once a response has been received. Set a max test duration of 15s to ensure that + // the test does not continue on forever. + @Test(timeout = 15000L) + public void testGrpc_rpcInvokedWithLargeTimeout_closeClientOnceResponseReceived() + throws Exception { + // Set the maxAttempts to 1 to ensure there are no retries scheduled. The single RPC + // invocation should time out in 15s, but the client will receive a response in 2s. + // Any outstanding tasks (timeout tasks) should be cancelled once a response has been + // received so the client can properly terminate. + RetrySettings defaultRetrySettings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(DEFAULT_RPC_TIMEOUT_MS)) + .setMaxRpcTimeout(Duration.ofMillis(DEFAULT_RPC_TIMEOUT_MS)) + .setTotalTimeout(Duration.ofMillis(DEFAULT_RPC_TIMEOUT_MS)) + .setMaxAttempts(1) + .build(); + EchoClient grpcClient = + TestClientInitializer.createGrpcEchoClientCustomBlockSettings( + defaultRetrySettings, ImmutableSet.of(StatusCode.Code.DEADLINE_EXCEEDED)); + + BlockRequest blockRequest = + BlockRequest.newBuilder() + .setSuccess(BlockResponse.newBuilder().setContent("gRPCBlockContent_2sDelay")) + .setResponseDelay(com.google.protobuf.Duration.newBuilder().setSeconds(2).build()) + .build(); + + // Response is ignored for this test + grpcClient.block(blockRequest); + + assertClientTerminated(grpcClient); + } + + // This test is to ensure that the client is able to close + terminate any resources + // once a response has been received. Set a max test duration of 15s to ensure that + // the test does not continue on forever. + @Test(timeout = 15000L) + public void testHttpJson_rpcInvokedWithLargeTimeout_closeClientOnceResponseReceived() + throws Exception { + // Set the maxAttempts to 1 to ensure there are no retries scheduled. The single RPC + // invocation should time out in 15s, but the client will receive a response in 2s. + // Any outstanding tasks (timeout tasks) should be cancelled once a response has been + // received so the client can properly terminate. + RetrySettings defaultRetrySettings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(DEFAULT_RPC_TIMEOUT_MS)) + .setMaxRpcTimeout(Duration.ofMillis(DEFAULT_RPC_TIMEOUT_MS)) + .setTotalTimeout(Duration.ofMillis(DEFAULT_RPC_TIMEOUT_MS)) + .setMaxAttempts(1) + .build(); + EchoClient httpjsonClient = + TestClientInitializer.createHttpJsonEchoClientCustomBlockSettings( + defaultRetrySettings, ImmutableSet.of(StatusCode.Code.DEADLINE_EXCEEDED)); + + BlockRequest blockRequest = + BlockRequest.newBuilder() + .setSuccess(BlockResponse.newBuilder().setContent("httpjsonBlockContent_2sDelay")) + .setResponseDelay(com.google.protobuf.Duration.newBuilder().setSeconds(2).build()) + .build(); + + // Response is ignored for this test + httpjsonClient.block(blockRequest); + + assertClientTerminated(httpjsonClient); + } + + // This helper method asserts that the client is able to terminate within + // `AWAIT_TERMINATION_SECONDS` + private void assertClientTerminated(EchoClient echoClient) throws InterruptedException { + long start = System.currentTimeMillis(); + // Intentionally do not run echoClient.awaitTermination(...) as this test will + // check that everything is properly terminated after close() is called. + echoClient.close(); + + // Loop until the client has terminated successfully. For tests that use this, + // try to ensure there is a timeout associated, otherwise this may run forever. + // Future enhancement: Use awaitility instead of busy waiting + while (!echoClient.isTerminated()) { + Thread.sleep(500L); + } + // The busy-wait time won't be accurate, so account for a bit of buffer + long end = System.currentTimeMillis(); + + Truth.assertThat(echoClient.isShutdown()).isTrue(); + + // Check the termination time. If all the tasks/ resources are closed successfully, + // the termination time should only occur shortly after `close()` was invoked. The + // `DEFAULT_TERMINATION_MS` value should include a bit of buffer. + long terminationTime = end - start; + Truth.assertThat(terminationTime).isLessThan(DEFAULT_CLIENT_TERMINATION_MS); + } +} From 54b798b8e88ed7bb6a597ccacee6acdcac82e652 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 13 Feb 2024 21:53:23 +0100 Subject: [PATCH 68/75] deps: update googleapis/java-cloud-bom digest to ac9893c (#2472) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | googleapis/java-cloud-bom | action | digest | `8bc17e9` -> `ac9893c` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/sdk-platform-java). --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 713c314fee..10093ae828 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -296,7 +296,7 @@ jobs: run: | mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip - name: Validate gapic-generator-java-bom - uses: googleapis/java-cloud-bom/tests/validate-bom@8bc17e9ae3c6354f04df2fdf2d57aeafa63add66 + uses: googleapis/java-cloud-bom/tests/validate-bom@ac9893c4ba759cda192b11c2e8bac0d5a6bd60a5 with: bom-path: gapic-generator-java-bom/pom.xml From a9b73c3d24981afcc418e87a6af7f434ce334ede Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 21:31:57 +0000 Subject: [PATCH 69/75] chore(main): release 2.35.0 (#2448) :robot: I have created a release *beep* *boop* ---
2.35.0 ## [2.35.0](https://github.com/googleapis/sdk-platform-java/compare/v2.34.0...v2.35.0) (2024-02-13) ### Features * add `generate_repo.py` ([#2431](https://github.com/googleapis/sdk-platform-java/issues/2431)) ([47b632a](https://github.com/googleapis/sdk-platform-java/commit/47b632aa011874abe04212168ccc74dae50f5fbe)) * move synthtool templates to `library_generation/owlbot` ([#2443](https://github.com/googleapis/sdk-platform-java/issues/2443)) ([5c95472](https://github.com/googleapis/sdk-platform-java/commit/5c95472ffd9085a6eac3d227f96c0b25097c60ec)) ### Bug Fixes * Apiary Host returns user set host if set ([#2455](https://github.com/googleapis/sdk-platform-java/issues/2455)) ([5f17e62](https://github.com/googleapis/sdk-platform-java/commit/5f17e62a7b0f10035205ec4197b8f77388b059f8)) * Cancel the Timeout Task for HttpJson ([#2360](https://github.com/googleapis/sdk-platform-java/issues/2360)) ([b177d9e](https://github.com/googleapis/sdk-platform-java/commit/b177d9e40fd7107bbed67506da0acb021c8f346d)) ### Dependencies * update dependency commons-codec:commons-codec to v1.16.1 ([#2473](https://github.com/googleapis/sdk-platform-java/issues/2473)) ([8c6e91d](https://github.com/googleapis/sdk-platform-java/commit/8c6e91df765b4e42d0d4de77eaf73936fa43895a)) * update google api dependencies ([#2469](https://github.com/googleapis/sdk-platform-java/issues/2469)) ([ad4d4e6](https://github.com/googleapis/sdk-platform-java/commit/ad4d4e65c0afae0e13905fe78b8ea711253dcab3)) * update google auth library dependencies to v1.23.0 ([#2466](https://github.com/googleapis/sdk-platform-java/issues/2466)) ([349a5d3](https://github.com/googleapis/sdk-platform-java/commit/349a5d3b6e31e6184f71d3470a406b2e78eb0775)) * update google auth library dependencies to v1.23.0 ([#2476](https://github.com/googleapis/sdk-platform-java/issues/2476)) ([6c9127c](https://github.com/googleapis/sdk-platform-java/commit/6c9127cf177ed1965ac2d7823808c9f4a835a44f)) * update google http client dependencies to v1.44.1 ([#2467](https://github.com/googleapis/sdk-platform-java/issues/2467)) ([87d1435](https://github.com/googleapis/sdk-platform-java/commit/87d143569e3e2fee5050a905b1841995fc20c528)) * update googleapis/java-cloud-bom digest to ac9893c ([#2472](https://github.com/googleapis/sdk-platform-java/issues/2472)) ([7fff34a](https://github.com/googleapis/sdk-platform-java/commit/7fff34ab3a8e6e0a77b638be81d67fcb4f061686)) * update grpc dependencies to v1.61.1 ([#2463](https://github.com/googleapis/sdk-platform-java/issues/2463)) ([9ec575b](https://github.com/googleapis/sdk-platform-java/commit/9ec575bae059a96ed3d68af4abc372031d9c4dc7))
--- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .cloudbuild/cloudbuild-test-a.yaml | 2 +- .cloudbuild/cloudbuild-test-b.yaml | 2 +- .cloudbuild/cloudbuild.yaml | 2 +- .release-please-manifest.json | 2 +- CHANGELOG.md | 25 +++++++++++++++ WORKSPACE | 2 +- api-common-java/pom.xml | 4 +-- coverage-report/pom.xml | 8 ++--- gapic-generator-java-bom/pom.xml | 26 +++++++-------- gapic-generator-java-pom-parent/pom.xml | 2 +- gapic-generator-java/pom.xml | 6 ++-- gax-java/README.md | 12 +++---- gax-java/dependencies.properties | 8 ++--- gax-java/gax-bom/pom.xml | 20 ++++++------ gax-java/gax-grpc/pom.xml | 4 +-- gax-java/gax-httpjson/pom.xml | 4 +-- gax-java/gax/pom.xml | 4 +-- gax-java/pom.xml | 14 ++++---- .../grpc-google-common-protos/pom.xml | 4 +-- java-common-protos/pom.xml | 10 +++--- .../proto-google-common-protos/pom.xml | 4 +-- java-core/google-cloud-core-bom/pom.xml | 10 +++--- java-core/google-cloud-core-grpc/pom.xml | 4 +-- java-core/google-cloud-core-http/pom.xml | 4 +-- java-core/google-cloud-core/pom.xml | 4 +-- java-core/pom.xml | 6 ++-- java-iam/grpc-google-iam-v1/pom.xml | 4 +-- java-iam/grpc-google-iam-v2/pom.xml | 4 +-- java-iam/grpc-google-iam-v2beta/pom.xml | 4 +-- java-iam/pom.xml | 22 ++++++------- java-iam/proto-google-iam-v1/pom.xml | 4 +-- java-iam/proto-google-iam-v2/pom.xml | 4 +-- java-iam/proto-google-iam-v2beta/pom.xml | 4 +-- java-shared-dependencies/README.md | 2 +- .../dependency-convergence-check/pom.xml | 2 +- .../first-party-dependencies/pom.xml | 10 +++--- java-shared-dependencies/pom.xml | 8 ++--- .../third-party-dependencies/pom.xml | 2 +- .../upper-bound-check/pom.xml | 4 +-- sdk-platform-java-config/pom.xml | 4 +-- showcase/pom.xml | 2 +- versions.txt | 32 +++++++++---------- 42 files changed, 165 insertions(+), 140 deletions(-) diff --git a/.cloudbuild/cloudbuild-test-a.yaml b/.cloudbuild/cloudbuild-test-a.yaml index dd83a6fcd1..143d1effdc 100644 --- a/.cloudbuild/cloudbuild-test-a.yaml +++ b/.cloudbuild/cloudbuild-test-a.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.24.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.25.0' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.7.1' steps: diff --git a/.cloudbuild/cloudbuild-test-b.yaml b/.cloudbuild/cloudbuild-test-b.yaml index 7f36959540..c37b81706a 100644 --- a/.cloudbuild/cloudbuild-test-b.yaml +++ b/.cloudbuild/cloudbuild-test-b.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.24.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.25.0' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.7.1' steps: diff --git a/.cloudbuild/cloudbuild.yaml b/.cloudbuild/cloudbuild.yaml index 1686b8a5c3..a6950f885e 100644 --- a/.cloudbuild/cloudbuild.yaml +++ b/.cloudbuild/cloudbuild.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.24.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.25.0' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.7.1' steps: # GraalVM A build diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7a1c4674e4..517b0cf98a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.34.0" + ".": "2.35.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 96c80a2b00..a034a206c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## [2.35.0](https://github.com/googleapis/sdk-platform-java/compare/v2.34.0...v2.35.0) (2024-02-13) + + +### Features + +* add `generate_repo.py` ([#2431](https://github.com/googleapis/sdk-platform-java/issues/2431)) ([47b632a](https://github.com/googleapis/sdk-platform-java/commit/47b632aa011874abe04212168ccc74dae50f5fbe)) +* move synthtool templates to `library_generation/owlbot` ([#2443](https://github.com/googleapis/sdk-platform-java/issues/2443)) ([5c95472](https://github.com/googleapis/sdk-platform-java/commit/5c95472ffd9085a6eac3d227f96c0b25097c60ec)) + + +### Bug Fixes + +* Apiary Host returns user set host if set ([#2455](https://github.com/googleapis/sdk-platform-java/issues/2455)) ([5f17e62](https://github.com/googleapis/sdk-platform-java/commit/5f17e62a7b0f10035205ec4197b8f77388b059f8)) +* Cancel the Timeout Task for HttpJson ([#2360](https://github.com/googleapis/sdk-platform-java/issues/2360)) ([b177d9e](https://github.com/googleapis/sdk-platform-java/commit/b177d9e40fd7107bbed67506da0acb021c8f346d)) + + +### Dependencies + +* update dependency commons-codec:commons-codec to v1.16.1 ([#2473](https://github.com/googleapis/sdk-platform-java/issues/2473)) ([8c6e91d](https://github.com/googleapis/sdk-platform-java/commit/8c6e91df765b4e42d0d4de77eaf73936fa43895a)) +* update google api dependencies ([#2469](https://github.com/googleapis/sdk-platform-java/issues/2469)) ([ad4d4e6](https://github.com/googleapis/sdk-platform-java/commit/ad4d4e65c0afae0e13905fe78b8ea711253dcab3)) +* update google auth library dependencies to v1.23.0 ([#2466](https://github.com/googleapis/sdk-platform-java/issues/2466)) ([349a5d3](https://github.com/googleapis/sdk-platform-java/commit/349a5d3b6e31e6184f71d3470a406b2e78eb0775)) +* update google auth library dependencies to v1.23.0 ([#2476](https://github.com/googleapis/sdk-platform-java/issues/2476)) ([6c9127c](https://github.com/googleapis/sdk-platform-java/commit/6c9127cf177ed1965ac2d7823808c9f4a835a44f)) +* update google http client dependencies to v1.44.1 ([#2467](https://github.com/googleapis/sdk-platform-java/issues/2467)) ([87d1435](https://github.com/googleapis/sdk-platform-java/commit/87d143569e3e2fee5050a905b1841995fc20c528)) +* update googleapis/java-cloud-bom digest to ac9893c ([#2472](https://github.com/googleapis/sdk-platform-java/issues/2472)) ([7fff34a](https://github.com/googleapis/sdk-platform-java/commit/7fff34ab3a8e6e0a77b638be81d67fcb4f061686)) +* update grpc dependencies to v1.61.1 ([#2463](https://github.com/googleapis/sdk-platform-java/issues/2463)) ([9ec575b](https://github.com/googleapis/sdk-platform-java/commit/9ec575bae059a96ed3d68af4abc372031d9c4dc7)) + ## [2.34.0](https://github.com/googleapis/sdk-platform-java/compare/v2.33.0...v2.34.0) (2024-01-31) diff --git a/WORKSPACE b/WORKSPACE index 3bc5237b0e..7026f3e523 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -60,7 +60,7 @@ maven_install( repositories = ["https://repo.maven.apache.org/maven2/"], ) -_gapic_generator_java_version = "2.34.1-SNAPSHOT" # {x-version-update:gapic-generator-java:current} +_gapic_generator_java_version = "2.35.0" # {x-version-update:gapic-generator-java:current} maven_install( artifacts = [ diff --git a/api-common-java/pom.xml b/api-common-java/pom.xml index 8b7b11722d..34714dc9b8 100644 --- a/api-common-java/pom.xml +++ b/api-common-java/pom.xml @@ -5,14 +5,14 @@ com.google.api api-common jar - 2.25.1-SNAPSHOT + 2.26.0 API Common Common utilities for Google APIs in Java com.google.api gapic-generator-java-pom-parent - 2.34.1-SNAPSHOT + 2.35.0 ../gapic-generator-java-pom-parent diff --git a/coverage-report/pom.xml b/coverage-report/pom.xml index 717360b8e8..5ba57aae75 100644 --- a/coverage-report/pom.xml +++ b/coverage-report/pom.xml @@ -31,22 +31,22 @@ com.google.api gax - 2.42.1-SNAPSHOT + 2.43.0 com.google.api gax-grpc - 2.42.1-SNAPSHOT + 2.43.0 com.google.api gax-httpjson - 2.42.1-SNAPSHOT + 2.43.0 com.google.api api-common - 2.25.1-SNAPSHOT + 2.26.0
diff --git a/gapic-generator-java-bom/pom.xml b/gapic-generator-java-bom/pom.xml index fa770432a2..626f1675d3 100644 --- a/gapic-generator-java-bom/pom.xml +++ b/gapic-generator-java-bom/pom.xml @@ -4,7 +4,7 @@ com.google.api gapic-generator-java-bom pom - 2.34.1-SNAPSHOT + 2.35.0 GAPIC Generator Java BOM BOM for the libraries in gapic-generator-java repository. Users should not @@ -15,7 +15,7 @@ com.google.api gapic-generator-java-pom-parent - 2.34.1-SNAPSHOT + 2.35.0 ../gapic-generator-java-pom-parent @@ -75,61 +75,61 @@ com.google.api api-common - 2.25.1-SNAPSHOT + 2.26.0 com.google.api gax-bom - 2.42.1-SNAPSHOT + 2.43.0 pom import com.google.api gapic-generator-java - 2.34.1-SNAPSHOT + 2.35.0 com.google.api.grpc grpc-google-common-protos - 2.33.1-SNAPSHOT + 2.34.0 com.google.api.grpc proto-google-common-protos - 2.33.1-SNAPSHOT + 2.34.0 com.google.api.grpc proto-google-iam-v1 - 1.28.1-SNAPSHOT + 1.29.0 com.google.api.grpc proto-google-iam-v2 - 1.28.1-SNAPSHOT + 1.29.0 com.google.api.grpc proto-google-iam-v2beta - 1.28.1-SNAPSHOT + 1.29.0 com.google.api.grpc grpc-google-iam-v1 - 1.28.1-SNAPSHOT + 1.29.0 com.google.api.grpc grpc-google-iam-v2 - 1.28.1-SNAPSHOT + 1.29.0 com.google.api.grpc grpc-google-iam-v2beta - 1.28.1-SNAPSHOT + 1.29.0
diff --git a/gapic-generator-java-pom-parent/pom.xml b/gapic-generator-java-pom-parent/pom.xml index 0869c4338c..52fba6eda1 100644 --- a/gapic-generator-java-pom-parent/pom.xml +++ b/gapic-generator-java-pom-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.api gapic-generator-java-pom-parent - 2.34.1-SNAPSHOT + 2.35.0 pom GAPIC Generator Java POM Parent https://github.com/googleapis/sdk-platform-java diff --git a/gapic-generator-java/pom.xml b/gapic-generator-java/pom.xml index f32331b7a7..38e50d83f3 100644 --- a/gapic-generator-java/pom.xml +++ b/gapic-generator-java/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.google.api gapic-generator-java - 2.34.1-SNAPSHOT + 2.35.0 GAPIC Generator Java GAPIC generator Java @@ -22,7 +22,7 @@ com.google.api gapic-generator-java-pom-parent - 2.34.1-SNAPSHOT + 2.35.0 ../gapic-generator-java-pom-parent @@ -31,7 +31,7 @@ com.google.api gapic-generator-java-bom - 2.34.1-SNAPSHOT + 2.35.0 pom import diff --git a/gax-java/README.md b/gax-java/README.md index 88df3f9977..4414ab4722 100644 --- a/gax-java/README.md +++ b/gax-java/README.md @@ -34,27 +34,27 @@ If you are using Maven, add this to your pom.xml file com.google.api gax - 2.42.0 + 2.43.0 com.google.api gax-grpc - 2.42.0 + 2.43.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.api:gax:2.42.0', - 'com.google.api:gax-grpc:2.42.0' +compile 'com.google.api:gax:2.43.0', + 'com.google.api:gax-grpc:2.43.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.api" % "gax" % "2.42.0" -libraryDependencies += "com.google.api" % "gax-grpc" % "2.42.0" +libraryDependencies += "com.google.api" % "gax" % "2.43.0" +libraryDependencies += "com.google.api" % "gax-grpc" % "2.43.0" ``` [//]: # ({x-version-update-end}) diff --git a/gax-java/dependencies.properties b/gax-java/dependencies.properties index c2ead48d71..9f56719942 100644 --- a/gax-java/dependencies.properties +++ b/gax-java/dependencies.properties @@ -8,16 +8,16 @@ # Versions of oneself # {x-version-update-start:gax:current} -version.gax=2.42.1-SNAPSHOT +version.gax=2.43.0 # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_grpc=2.42.1-SNAPSHOT +version.gax_grpc=2.43.0 # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_bom=2.42.1-SNAPSHOT +version.gax_bom=2.43.0 # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_httpjson=2.42.1-SNAPSHOT +version.gax_httpjson=2.43.0 # {x-version-update-end} # Versions for dependencies which actual artifacts differ between Bazel and Gradle. diff --git a/gax-java/gax-bom/pom.xml b/gax-java/gax-bom/pom.xml index 900b2e48ef..7c9b882227 100644 --- a/gax-java/gax-bom/pom.xml +++ b/gax-java/gax-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.api gax-bom - 2.42.1-SNAPSHOT + 2.43.0 pom GAX (Google Api eXtensions) for Java (BOM) Google Api eXtensions for Java (BOM) @@ -43,55 +43,55 @@ com.google.api gax - 2.42.1-SNAPSHOT + 2.43.0 com.google.api gax - 2.42.1-SNAPSHOT + 2.43.0 test-jar testlib com.google.api gax - 2.42.1-SNAPSHOT + 2.43.0 testlib com.google.api gax-grpc - 2.42.1-SNAPSHOT + 2.43.0 com.google.api gax-grpc - 2.42.1-SNAPSHOT + 2.43.0 test-jar testlib com.google.api gax-grpc - 2.42.1-SNAPSHOT + 2.43.0 testlib com.google.api gax-httpjson - 2.42.1-SNAPSHOT + 2.43.0 com.google.api gax-httpjson - 2.42.1-SNAPSHOT + 2.43.0 test-jar testlib com.google.api gax-httpjson - 2.42.1-SNAPSHOT + 2.43.0 testlib
diff --git a/gax-java/gax-grpc/pom.xml b/gax-java/gax-grpc/pom.xml index 7a3aa9e96a..a92f621943 100644 --- a/gax-java/gax-grpc/pom.xml +++ b/gax-java/gax-grpc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax-grpc - 2.42.1-SNAPSHOT + 2.43.0 jar GAX (Google Api eXtensions) for Java (gRPC) Google Api eXtensions for Java (gRPC) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.42.1-SNAPSHOT + 2.43.0 diff --git a/gax-java/gax-httpjson/pom.xml b/gax-java/gax-httpjson/pom.xml index ca317d124d..925603a52c 100644 --- a/gax-java/gax-httpjson/pom.xml +++ b/gax-java/gax-httpjson/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax-httpjson - 2.42.1-SNAPSHOT + 2.43.0 jar GAX (Google Api eXtensions) for Java (HTTP JSON) Google Api eXtensions for Java (HTTP JSON) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.42.1-SNAPSHOT + 2.43.0 diff --git a/gax-java/gax/pom.xml b/gax-java/gax/pom.xml index 2fddd4045c..3f9e5980c1 100644 --- a/gax-java/gax/pom.xml +++ b/gax-java/gax/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax - 2.42.1-SNAPSHOT + 2.43.0 jar GAX (Google Api eXtensions) for Java (Core) Google Api eXtensions for Java (Core) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.42.1-SNAPSHOT + 2.43.0 diff --git a/gax-java/pom.xml b/gax-java/pom.xml index 2b08c5da14..762a072d40 100644 --- a/gax-java/pom.xml +++ b/gax-java/pom.xml @@ -4,14 +4,14 @@ com.google.api gax-parent pom - 2.42.1-SNAPSHOT + 2.43.0 GAX (Google Api eXtensions) for Java (Parent) Google Api eXtensions for Java (Parent) com.google.api gapic-generator-java-pom-parent - 2.34.1-SNAPSHOT + 2.35.0 ../gapic-generator-java-pom-parent @@ -50,7 +50,7 @@ com.google.api api-common - 2.25.1-SNAPSHOT + 2.26.0 com.google.auth @@ -108,24 +108,24 @@ com.google.api gax - 2.42.1-SNAPSHOT + 2.43.0 com.google.api gax - 2.42.1-SNAPSHOT + 2.43.0 test-jar testlib com.google.api.grpc proto-google-common-protos - 2.33.1-SNAPSHOT + 2.34.0 com.google.api.grpc grpc-google-common-protos - 2.33.1-SNAPSHOT + 2.34.0 io.grpc diff --git a/java-common-protos/grpc-google-common-protos/pom.xml b/java-common-protos/grpc-google-common-protos/pom.xml index fcf837943c..6862555832 100644 --- a/java-common-protos/grpc-google-common-protos/pom.xml +++ b/java-common-protos/grpc-google-common-protos/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-common-protos - 2.33.1-SNAPSHOT + 2.34.0 grpc-google-common-protos GRPC library for grpc-google-common-protos com.google.api.grpc google-common-protos-parent - 2.33.1-SNAPSHOT + 2.34.0 diff --git a/java-common-protos/pom.xml b/java-common-protos/pom.xml index f4586f0184..55d32926d9 100644 --- a/java-common-protos/pom.xml +++ b/java-common-protos/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-common-protos-parent pom - 2.33.1-SNAPSHOT + 2.34.0 Google Common Protos Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.34.1-SNAPSHOT + 2.35.0 ../gapic-generator-java-pom-parent @@ -61,7 +61,7 @@ com.google.cloud third-party-dependencies - 3.24.1-SNAPSHOT + 3.25.0 pom import @@ -75,7 +75,7 @@ com.google.api.grpc grpc-google-common-protos - 2.33.1-SNAPSHOT + 2.34.0 io.grpc @@ -87,7 +87,7 @@ com.google.api.grpc proto-google-common-protos - 2.33.1-SNAPSHOT + 2.34.0 com.google.guava diff --git a/java-common-protos/proto-google-common-protos/pom.xml b/java-common-protos/proto-google-common-protos/pom.xml index 91baefe127..064557d433 100644 --- a/java-common-protos/proto-google-common-protos/pom.xml +++ b/java-common-protos/proto-google-common-protos/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-common-protos - 2.33.1-SNAPSHOT + 2.34.0 proto-google-common-protos PROTO library for proto-google-common-protos com.google.api.grpc google-common-protos-parent - 2.33.1-SNAPSHOT + 2.34.0 diff --git a/java-core/google-cloud-core-bom/pom.xml b/java-core/google-cloud-core-bom/pom.xml index b9ee988026..2b963c658e 100644 --- a/java-core/google-cloud-core-bom/pom.xml +++ b/java-core/google-cloud-core-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-core-bom - 2.32.1-SNAPSHOT + 2.33.0 pom com.google.api gapic-generator-java-pom-parent - 2.34.1-SNAPSHOT + 2.35.0 ../../gapic-generator-java-pom-parent @@ -23,17 +23,17 @@ com.google.cloud google-cloud-core - 2.32.1-SNAPSHOT + 2.33.0 com.google.cloud google-cloud-core-grpc - 2.32.1-SNAPSHOT + 2.33.0 com.google.cloud google-cloud-core-http - 2.32.1-SNAPSHOT + 2.33.0 diff --git a/java-core/google-cloud-core-grpc/pom.xml b/java-core/google-cloud-core-grpc/pom.xml index 88436370a1..cde38d394c 100644 --- a/java-core/google-cloud-core-grpc/pom.xml +++ b/java-core/google-cloud-core-grpc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core-grpc - 2.32.1-SNAPSHOT + 2.33.0 jar Google Cloud Core gRPC @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.32.1-SNAPSHOT + 2.33.0 google-cloud-core-grpc diff --git a/java-core/google-cloud-core-http/pom.xml b/java-core/google-cloud-core-http/pom.xml index fd9b3d18de..54dde4993d 100644 --- a/java-core/google-cloud-core-http/pom.xml +++ b/java-core/google-cloud-core-http/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core-http - 2.32.1-SNAPSHOT + 2.33.0 jar Google Cloud Core HTTP @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.32.1-SNAPSHOT + 2.33.0 google-cloud-core-http diff --git a/java-core/google-cloud-core/pom.xml b/java-core/google-cloud-core/pom.xml index bfddf4bfb6..246acf25e3 100644 --- a/java-core/google-cloud-core/pom.xml +++ b/java-core/google-cloud-core/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core - 2.32.1-SNAPSHOT + 2.33.0 jar Google Cloud Core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.32.1-SNAPSHOT + 2.33.0 google-cloud-core diff --git a/java-core/pom.xml b/java-core/pom.xml index 786e096955..1296d7c7b9 100644 --- a/java-core/pom.xml +++ b/java-core/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-core-parent pom - 2.32.1-SNAPSHOT + 2.33.0 Google Cloud Core Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.34.1-SNAPSHOT + 2.35.0 ../gapic-generator-java-pom-parent @@ -33,7 +33,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.24.1-SNAPSHOT + 3.25.0 pom import diff --git a/java-iam/grpc-google-iam-v1/pom.xml b/java-iam/grpc-google-iam-v1/pom.xml index f4b2be64bd..f6d8f13f63 100644 --- a/java-iam/grpc-google-iam-v1/pom.xml +++ b/java-iam/grpc-google-iam-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v1 - 1.28.1-SNAPSHOT + 1.29.0 grpc-google-iam-v1 GRPC library for grpc-google-iam-v1 com.google.cloud google-iam-parent - 1.28.1-SNAPSHOT + 1.29.0 diff --git a/java-iam/grpc-google-iam-v2/pom.xml b/java-iam/grpc-google-iam-v2/pom.xml index 4f62666294..cc1c9ab10a 100644 --- a/java-iam/grpc-google-iam-v2/pom.xml +++ b/java-iam/grpc-google-iam-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v2 - 1.28.1-SNAPSHOT + 1.29.0 grpc-google-iam-v2 GRPC library for proto-google-iam-v2 com.google.cloud google-iam-parent - 1.28.1-SNAPSHOT + 1.29.0 diff --git a/java-iam/grpc-google-iam-v2beta/pom.xml b/java-iam/grpc-google-iam-v2beta/pom.xml index 5d0052905f..0042f346b4 100644 --- a/java-iam/grpc-google-iam-v2beta/pom.xml +++ b/java-iam/grpc-google-iam-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v2beta - 1.28.1-SNAPSHOT + 1.29.0 grpc-google-iam-v2beta GRPC library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.28.1-SNAPSHOT + 1.29.0 diff --git a/java-iam/pom.xml b/java-iam/pom.xml index 57afa87c0c..56276b4d79 100644 --- a/java-iam/pom.xml +++ b/java-iam/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-parent pom - 1.28.1-SNAPSHOT + 1.29.0 Google IAM Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.34.1-SNAPSHOT + 2.35.0 ../gapic-generator-java-pom-parent @@ -60,7 +60,7 @@ com.google.cloud third-party-dependencies - 3.24.1-SNAPSHOT + 3.25.0 pom import @@ -88,44 +88,44 @@ com.google.api gax-bom - 2.42.1-SNAPSHOT + 2.43.0 pom import com.google.api.grpc proto-google-iam-v2 - 1.28.1-SNAPSHOT + 1.29.0 com.google.api.grpc grpc-google-iam-v2 - 1.28.1-SNAPSHOT + 1.29.0 com.google.api.grpc proto-google-common-protos - 2.33.1-SNAPSHOT + 2.34.0 com.google.api.grpc proto-google-iam-v2beta - 1.28.1-SNAPSHOT + 1.29.0 com.google.api.grpc grpc-google-iam-v1 - 1.28.1-SNAPSHOT + 1.29.0 com.google.api.grpc grpc-google-iam-v2beta - 1.28.1-SNAPSHOT + 1.29.0 com.google.api.grpc proto-google-iam-v1 - 1.28.1-SNAPSHOT + 1.29.0 javax.annotation diff --git a/java-iam/proto-google-iam-v1/pom.xml b/java-iam/proto-google-iam-v1/pom.xml index c770f57004..dd2b177a92 100644 --- a/java-iam/proto-google-iam-v1/pom.xml +++ b/java-iam/proto-google-iam-v1/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v1 - 1.28.1-SNAPSHOT + 1.29.0 proto-google-iam-v1 PROTO library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.28.1-SNAPSHOT + 1.29.0 diff --git a/java-iam/proto-google-iam-v2/pom.xml b/java-iam/proto-google-iam-v2/pom.xml index 182fe2cab3..263ab1137b 100644 --- a/java-iam/proto-google-iam-v2/pom.xml +++ b/java-iam/proto-google-iam-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v2 - 1.28.1-SNAPSHOT + 1.29.0 proto-google-iam-v2 Proto library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.28.1-SNAPSHOT + 1.29.0 diff --git a/java-iam/proto-google-iam-v2beta/pom.xml b/java-iam/proto-google-iam-v2beta/pom.xml index e3643e6e54..a24f01807a 100644 --- a/java-iam/proto-google-iam-v2beta/pom.xml +++ b/java-iam/proto-google-iam-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v2beta - 1.28.1-SNAPSHOT + 1.29.0 proto-google-iam-v2beta Proto library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.28.1-SNAPSHOT + 1.29.0 diff --git a/java-shared-dependencies/README.md b/java-shared-dependencies/README.md index 3199dad83a..4c0e79e467 100644 --- a/java-shared-dependencies/README.md +++ b/java-shared-dependencies/README.md @@ -14,7 +14,7 @@ If you are using Maven, add this to the `dependencyManagement` section. com.google.cloud google-cloud-shared-dependencies - 3.24.0 + 3.25.0 pom import diff --git a/java-shared-dependencies/dependency-convergence-check/pom.xml b/java-shared-dependencies/dependency-convergence-check/pom.xml index 84f876e295..a6c44356bf 100644 --- a/java-shared-dependencies/dependency-convergence-check/pom.xml +++ b/java-shared-dependencies/dependency-convergence-check/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud shared-dependencies-dependency-convergence-test - 3.24.1-SNAPSHOT + 3.25.0 Dependency convergence test for certain artifacts in Google Cloud Shared Dependencies An dependency convergence test case for the shared dependencies BOM. A failure of this test case means diff --git a/java-shared-dependencies/first-party-dependencies/pom.xml b/java-shared-dependencies/first-party-dependencies/pom.xml index 9417419b51..11d8b0c6bb 100644 --- a/java-shared-dependencies/first-party-dependencies/pom.xml +++ b/java-shared-dependencies/first-party-dependencies/pom.xml @@ -6,7 +6,7 @@ com.google.cloud first-party-dependencies pom - 3.24.1-SNAPSHOT + 3.25.0 Google Cloud First-party Shared Dependencies Shared first-party dependencies for Google Cloud Java libraries. @@ -33,7 +33,7 @@ com.google.api gapic-generator-java-bom - 2.34.1-SNAPSHOT + 2.35.0 pom import @@ -45,7 +45,7 @@ com.google.cloud google-cloud-core-bom - 2.32.1-SNAPSHOT + 2.33.0 pom import @@ -69,13 +69,13 @@ com.google.cloud google-cloud-core - 2.32.1-SNAPSHOT + 2.33.0 test-jar com.google.cloud google-cloud-core - 2.32.1-SNAPSHOT + 2.33.0 tests diff --git a/java-shared-dependencies/pom.xml b/java-shared-dependencies/pom.xml index db364746c7..0176a9d98a 100644 --- a/java-shared-dependencies/pom.xml +++ b/java-shared-dependencies/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-shared-dependencies pom - 3.24.1-SNAPSHOT + 3.25.0 first-party-dependencies third-party-dependencies @@ -17,7 +17,7 @@ com.google.api gapic-generator-java-pom-parent - 2.34.1-SNAPSHOT + 2.35.0 ../gapic-generator-java-pom-parent @@ -31,14 +31,14 @@ com.google.cloud first-party-dependencies - 3.24.1-SNAPSHOT + 3.25.0 pom import com.google.cloud third-party-dependencies - 3.24.1-SNAPSHOT + 3.25.0 pom import diff --git a/java-shared-dependencies/third-party-dependencies/pom.xml b/java-shared-dependencies/third-party-dependencies/pom.xml index c0d53349fe..2850a8cd09 100644 --- a/java-shared-dependencies/third-party-dependencies/pom.xml +++ b/java-shared-dependencies/third-party-dependencies/pom.xml @@ -6,7 +6,7 @@ com.google.cloud third-party-dependencies pom - 3.24.1-SNAPSHOT + 3.25.0 Google Cloud Third-party Shared Dependencies Shared third-party dependencies for Google Cloud Java libraries. diff --git a/java-shared-dependencies/upper-bound-check/pom.xml b/java-shared-dependencies/upper-bound-check/pom.xml index c009d3c484..7c317c5385 100644 --- a/java-shared-dependencies/upper-bound-check/pom.xml +++ b/java-shared-dependencies/upper-bound-check/pom.xml @@ -4,7 +4,7 @@ com.google.cloud shared-dependencies-upper-bound-test pom - 3.24.1-SNAPSHOT + 3.25.0 Upper bound test for Google Cloud Shared Dependencies An upper bound test case for the shared dependencies BOM. A failure of this test case means @@ -30,7 +30,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.24.1-SNAPSHOT + 3.25.0 pom import diff --git a/sdk-platform-java-config/pom.xml b/sdk-platform-java-config/pom.xml index 2b809b9e2a..72146826d5 100644 --- a/sdk-platform-java-config/pom.xml +++ b/sdk-platform-java-config/pom.xml @@ -4,7 +4,7 @@ com.google.cloud sdk-platform-java-config pom - 3.24.1-SNAPSHOT + 3.25.0 SDK Platform For Java Configurations Shared build configuration for Google Cloud Java libraries. @@ -17,6 +17,6 @@ - 3.24.1-SNAPSHOT + 3.25.0 \ No newline at end of file diff --git a/showcase/pom.xml b/showcase/pom.xml index 17514fcae2..dcef638272 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.24.1-SNAPSHOT + 3.25.0 pom import diff --git a/versions.txt b/versions.txt index 4dfce48e72..fd529571e3 100644 --- a/versions.txt +++ b/versions.txt @@ -1,19 +1,19 @@ # Format: # module:released-version:current-version -gapic-generator-java:2.34.0:2.34.1-SNAPSHOT -api-common:2.25.0:2.25.1-SNAPSHOT -gax:2.42.0:2.42.1-SNAPSHOT -gax-grpc:2.42.0:2.42.1-SNAPSHOT -gax-httpjson:0.127.0:0.127.1-SNAPSHOT -proto-google-common-protos:2.33.0:2.33.1-SNAPSHOT -grpc-google-common-protos:2.33.0:2.33.1-SNAPSHOT -proto-google-iam-v1:1.28.0:1.28.1-SNAPSHOT -grpc-google-iam-v1:1.28.0:1.28.1-SNAPSHOT -proto-google-iam-v2beta:1.28.0:1.28.1-SNAPSHOT -grpc-google-iam-v2beta:1.28.0:1.28.1-SNAPSHOT -google-iam-policy:1.28.0:1.28.1-SNAPSHOT -proto-google-iam-v2:1.28.0:1.28.1-SNAPSHOT -grpc-google-iam-v2:1.28.0:1.28.1-SNAPSHOT -google-cloud-core:2.32.0:2.32.1-SNAPSHOT -google-cloud-shared-dependencies:3.24.0:3.24.1-SNAPSHOT +gapic-generator-java:2.35.0:2.35.0 +api-common:2.26.0:2.26.0 +gax:2.43.0:2.43.0 +gax-grpc:2.43.0:2.43.0 +gax-httpjson:0.128.0:0.128.0 +proto-google-common-protos:2.34.0:2.34.0 +grpc-google-common-protos:2.34.0:2.34.0 +proto-google-iam-v1:1.29.0:1.29.0 +grpc-google-iam-v1:1.29.0:1.29.0 +proto-google-iam-v2beta:1.29.0:1.29.0 +grpc-google-iam-v2beta:1.29.0:1.29.0 +google-iam-policy:1.29.0:1.29.0 +proto-google-iam-v2:1.29.0:1.29.0 +grpc-google-iam-v2:1.29.0:1.29.0 +google-cloud-core:2.33.0:2.33.0 +google-cloud-shared-dependencies:3.25.0:3.25.0 From cd9e69b8063b3ba2ba2c3514a7ed72c82ed350a0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 23:10:46 +0000 Subject: [PATCH 70/75] chore(main): release 2.35.1-SNAPSHOT (#2482) :robot: I have created a release *beep* *boop* ---
2.35.1-SNAPSHOT ### Updating meta-information for bleeding-edge SNAPSHOT release.
--- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .cloudbuild/cloudbuild-test-a.yaml | 2 +- .cloudbuild/cloudbuild-test-b.yaml | 2 +- .cloudbuild/cloudbuild.yaml | 2 +- WORKSPACE | 2 +- api-common-java/pom.xml | 4 +-- coverage-report/pom.xml | 8 ++--- gapic-generator-java-bom/pom.xml | 26 +++++++-------- gapic-generator-java-pom-parent/pom.xml | 2 +- gapic-generator-java/pom.xml | 6 ++-- gax-java/dependencies.properties | 8 ++--- gax-java/gax-bom/pom.xml | 20 ++++++------ gax-java/gax-grpc/pom.xml | 4 +-- gax-java/gax-httpjson/pom.xml | 4 +-- gax-java/gax/pom.xml | 4 +-- gax-java/pom.xml | 14 ++++---- .../grpc-google-common-protos/pom.xml | 4 +-- java-common-protos/pom.xml | 10 +++--- .../proto-google-common-protos/pom.xml | 4 +-- java-core/google-cloud-core-bom/pom.xml | 10 +++--- java-core/google-cloud-core-grpc/pom.xml | 4 +-- java-core/google-cloud-core-http/pom.xml | 4 +-- java-core/google-cloud-core/pom.xml | 4 +-- java-core/pom.xml | 6 ++-- java-iam/grpc-google-iam-v1/pom.xml | 4 +-- java-iam/grpc-google-iam-v2/pom.xml | 4 +-- java-iam/grpc-google-iam-v2beta/pom.xml | 4 +-- java-iam/pom.xml | 22 ++++++------- java-iam/proto-google-iam-v1/pom.xml | 4 +-- java-iam/proto-google-iam-v2/pom.xml | 4 +-- java-iam/proto-google-iam-v2beta/pom.xml | 4 +-- .../dependency-convergence-check/pom.xml | 2 +- .../first-party-dependencies/pom.xml | 10 +++--- java-shared-dependencies/pom.xml | 8 ++--- .../third-party-dependencies/pom.xml | 2 +- .../upper-bound-check/pom.xml | 4 +-- sdk-platform-java-config/pom.xml | 4 +-- showcase/pom.xml | 2 +- versions.txt | 32 +++++++++---------- 38 files changed, 132 insertions(+), 132 deletions(-) diff --git a/.cloudbuild/cloudbuild-test-a.yaml b/.cloudbuild/cloudbuild-test-a.yaml index 143d1effdc..6727039eb0 100644 --- a/.cloudbuild/cloudbuild-test-a.yaml +++ b/.cloudbuild/cloudbuild-test-a.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.25.0' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.25.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.7.1' steps: diff --git a/.cloudbuild/cloudbuild-test-b.yaml b/.cloudbuild/cloudbuild-test-b.yaml index c37b81706a..219aacc491 100644 --- a/.cloudbuild/cloudbuild-test-b.yaml +++ b/.cloudbuild/cloudbuild-test-b.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.25.0' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.25.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.7.1' steps: diff --git a/.cloudbuild/cloudbuild.yaml b/.cloudbuild/cloudbuild.yaml index a6950f885e..0f26b79b23 100644 --- a/.cloudbuild/cloudbuild.yaml +++ b/.cloudbuild/cloudbuild.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.25.0' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.25.1-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.7.1' steps: # GraalVM A build diff --git a/WORKSPACE b/WORKSPACE index 7026f3e523..9d178ad9a8 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -60,7 +60,7 @@ maven_install( repositories = ["https://repo.maven.apache.org/maven2/"], ) -_gapic_generator_java_version = "2.35.0" # {x-version-update:gapic-generator-java:current} +_gapic_generator_java_version = "2.35.1-SNAPSHOT" # {x-version-update:gapic-generator-java:current} maven_install( artifacts = [ diff --git a/api-common-java/pom.xml b/api-common-java/pom.xml index 34714dc9b8..1cee861f26 100644 --- a/api-common-java/pom.xml +++ b/api-common-java/pom.xml @@ -5,14 +5,14 @@ com.google.api api-common jar - 2.26.0 + 2.26.1-SNAPSHOT API Common Common utilities for Google APIs in Java com.google.api gapic-generator-java-pom-parent - 2.35.0 + 2.35.1-SNAPSHOT ../gapic-generator-java-pom-parent diff --git a/coverage-report/pom.xml b/coverage-report/pom.xml index 5ba57aae75..72b712ed06 100644 --- a/coverage-report/pom.xml +++ b/coverage-report/pom.xml @@ -31,22 +31,22 @@ com.google.api gax - 2.43.0 + 2.43.1-SNAPSHOT com.google.api gax-grpc - 2.43.0 + 2.43.1-SNAPSHOT com.google.api gax-httpjson - 2.43.0 + 2.43.1-SNAPSHOT com.google.api api-common - 2.26.0 + 2.26.1-SNAPSHOT
diff --git a/gapic-generator-java-bom/pom.xml b/gapic-generator-java-bom/pom.xml index 626f1675d3..e0f21fb910 100644 --- a/gapic-generator-java-bom/pom.xml +++ b/gapic-generator-java-bom/pom.xml @@ -4,7 +4,7 @@ com.google.api gapic-generator-java-bom pom - 2.35.0 + 2.35.1-SNAPSHOT GAPIC Generator Java BOM BOM for the libraries in gapic-generator-java repository. Users should not @@ -15,7 +15,7 @@ com.google.api gapic-generator-java-pom-parent - 2.35.0 + 2.35.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -75,61 +75,61 @@ com.google.api api-common - 2.26.0 + 2.26.1-SNAPSHOT com.google.api gax-bom - 2.43.0 + 2.43.1-SNAPSHOT pom import com.google.api gapic-generator-java - 2.35.0 + 2.35.1-SNAPSHOT com.google.api.grpc grpc-google-common-protos - 2.34.0 + 2.34.1-SNAPSHOT com.google.api.grpc proto-google-common-protos - 2.34.0 + 2.34.1-SNAPSHOT com.google.api.grpc proto-google-iam-v1 - 1.29.0 + 1.29.1-SNAPSHOT com.google.api.grpc proto-google-iam-v2 - 1.29.0 + 1.29.1-SNAPSHOT com.google.api.grpc proto-google-iam-v2beta - 1.29.0 + 1.29.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v1 - 1.29.0 + 1.29.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v2 - 1.29.0 + 1.29.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v2beta - 1.29.0 + 1.29.1-SNAPSHOT
diff --git a/gapic-generator-java-pom-parent/pom.xml b/gapic-generator-java-pom-parent/pom.xml index 52fba6eda1..5154540493 100644 --- a/gapic-generator-java-pom-parent/pom.xml +++ b/gapic-generator-java-pom-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.api gapic-generator-java-pom-parent - 2.35.0 + 2.35.1-SNAPSHOT pom GAPIC Generator Java POM Parent https://github.com/googleapis/sdk-platform-java diff --git a/gapic-generator-java/pom.xml b/gapic-generator-java/pom.xml index 38e50d83f3..757862fa37 100644 --- a/gapic-generator-java/pom.xml +++ b/gapic-generator-java/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.google.api gapic-generator-java - 2.35.0 + 2.35.1-SNAPSHOT GAPIC Generator Java GAPIC generator Java @@ -22,7 +22,7 @@ com.google.api gapic-generator-java-pom-parent - 2.35.0 + 2.35.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -31,7 +31,7 @@ com.google.api gapic-generator-java-bom - 2.35.0 + 2.35.1-SNAPSHOT pom import diff --git a/gax-java/dependencies.properties b/gax-java/dependencies.properties index 9f56719942..f869063376 100644 --- a/gax-java/dependencies.properties +++ b/gax-java/dependencies.properties @@ -8,16 +8,16 @@ # Versions of oneself # {x-version-update-start:gax:current} -version.gax=2.43.0 +version.gax=2.43.1-SNAPSHOT # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_grpc=2.43.0 +version.gax_grpc=2.43.1-SNAPSHOT # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_bom=2.43.0 +version.gax_bom=2.43.1-SNAPSHOT # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_httpjson=2.43.0 +version.gax_httpjson=2.43.1-SNAPSHOT # {x-version-update-end} # Versions for dependencies which actual artifacts differ between Bazel and Gradle. diff --git a/gax-java/gax-bom/pom.xml b/gax-java/gax-bom/pom.xml index 7c9b882227..fad06ff2cf 100644 --- a/gax-java/gax-bom/pom.xml +++ b/gax-java/gax-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.api gax-bom - 2.43.0 + 2.43.1-SNAPSHOT pom GAX (Google Api eXtensions) for Java (BOM) Google Api eXtensions for Java (BOM) @@ -43,55 +43,55 @@ com.google.api gax - 2.43.0 + 2.43.1-SNAPSHOT com.google.api gax - 2.43.0 + 2.43.1-SNAPSHOT test-jar testlib com.google.api gax - 2.43.0 + 2.43.1-SNAPSHOT testlib com.google.api gax-grpc - 2.43.0 + 2.43.1-SNAPSHOT com.google.api gax-grpc - 2.43.0 + 2.43.1-SNAPSHOT test-jar testlib com.google.api gax-grpc - 2.43.0 + 2.43.1-SNAPSHOT testlib com.google.api gax-httpjson - 2.43.0 + 2.43.1-SNAPSHOT com.google.api gax-httpjson - 2.43.0 + 2.43.1-SNAPSHOT test-jar testlib com.google.api gax-httpjson - 2.43.0 + 2.43.1-SNAPSHOT testlib
diff --git a/gax-java/gax-grpc/pom.xml b/gax-java/gax-grpc/pom.xml index a92f621943..cabf96e9bf 100644 --- a/gax-java/gax-grpc/pom.xml +++ b/gax-java/gax-grpc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax-grpc - 2.43.0 + 2.43.1-SNAPSHOT jar GAX (Google Api eXtensions) for Java (gRPC) Google Api eXtensions for Java (gRPC) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.43.0 + 2.43.1-SNAPSHOT diff --git a/gax-java/gax-httpjson/pom.xml b/gax-java/gax-httpjson/pom.xml index 925603a52c..b4504dcfcb 100644 --- a/gax-java/gax-httpjson/pom.xml +++ b/gax-java/gax-httpjson/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax-httpjson - 2.43.0 + 2.43.1-SNAPSHOT jar GAX (Google Api eXtensions) for Java (HTTP JSON) Google Api eXtensions for Java (HTTP JSON) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.43.0 + 2.43.1-SNAPSHOT diff --git a/gax-java/gax/pom.xml b/gax-java/gax/pom.xml index 3f9e5980c1..950d4388f9 100644 --- a/gax-java/gax/pom.xml +++ b/gax-java/gax/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax - 2.43.0 + 2.43.1-SNAPSHOT jar GAX (Google Api eXtensions) for Java (Core) Google Api eXtensions for Java (Core) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.43.0 + 2.43.1-SNAPSHOT diff --git a/gax-java/pom.xml b/gax-java/pom.xml index 762a072d40..4ebfbd34a0 100644 --- a/gax-java/pom.xml +++ b/gax-java/pom.xml @@ -4,14 +4,14 @@ com.google.api gax-parent pom - 2.43.0 + 2.43.1-SNAPSHOT GAX (Google Api eXtensions) for Java (Parent) Google Api eXtensions for Java (Parent) com.google.api gapic-generator-java-pom-parent - 2.35.0 + 2.35.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -50,7 +50,7 @@ com.google.api api-common - 2.26.0 + 2.26.1-SNAPSHOT com.google.auth @@ -108,24 +108,24 @@ com.google.api gax - 2.43.0 + 2.43.1-SNAPSHOT com.google.api gax - 2.43.0 + 2.43.1-SNAPSHOT test-jar testlib com.google.api.grpc proto-google-common-protos - 2.34.0 + 2.34.1-SNAPSHOT com.google.api.grpc grpc-google-common-protos - 2.34.0 + 2.34.1-SNAPSHOT io.grpc diff --git a/java-common-protos/grpc-google-common-protos/pom.xml b/java-common-protos/grpc-google-common-protos/pom.xml index 6862555832..2f650fa397 100644 --- a/java-common-protos/grpc-google-common-protos/pom.xml +++ b/java-common-protos/grpc-google-common-protos/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-common-protos - 2.34.0 + 2.34.1-SNAPSHOT grpc-google-common-protos GRPC library for grpc-google-common-protos com.google.api.grpc google-common-protos-parent - 2.34.0 + 2.34.1-SNAPSHOT diff --git a/java-common-protos/pom.xml b/java-common-protos/pom.xml index 55d32926d9..041ea3589c 100644 --- a/java-common-protos/pom.xml +++ b/java-common-protos/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-common-protos-parent pom - 2.34.0 + 2.34.1-SNAPSHOT Google Common Protos Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.35.0 + 2.35.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -61,7 +61,7 @@ com.google.cloud third-party-dependencies - 3.25.0 + 3.25.1-SNAPSHOT pom import @@ -75,7 +75,7 @@ com.google.api.grpc grpc-google-common-protos - 2.34.0 + 2.34.1-SNAPSHOT io.grpc @@ -87,7 +87,7 @@ com.google.api.grpc proto-google-common-protos - 2.34.0 + 2.34.1-SNAPSHOT com.google.guava diff --git a/java-common-protos/proto-google-common-protos/pom.xml b/java-common-protos/proto-google-common-protos/pom.xml index 064557d433..2b9e21566f 100644 --- a/java-common-protos/proto-google-common-protos/pom.xml +++ b/java-common-protos/proto-google-common-protos/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-common-protos - 2.34.0 + 2.34.1-SNAPSHOT proto-google-common-protos PROTO library for proto-google-common-protos com.google.api.grpc google-common-protos-parent - 2.34.0 + 2.34.1-SNAPSHOT diff --git a/java-core/google-cloud-core-bom/pom.xml b/java-core/google-cloud-core-bom/pom.xml index 2b963c658e..f1ae640cc7 100644 --- a/java-core/google-cloud-core-bom/pom.xml +++ b/java-core/google-cloud-core-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-core-bom - 2.33.0 + 2.33.1-SNAPSHOT pom com.google.api gapic-generator-java-pom-parent - 2.35.0 + 2.35.1-SNAPSHOT ../../gapic-generator-java-pom-parent @@ -23,17 +23,17 @@ com.google.cloud google-cloud-core - 2.33.0 + 2.33.1-SNAPSHOT com.google.cloud google-cloud-core-grpc - 2.33.0 + 2.33.1-SNAPSHOT com.google.cloud google-cloud-core-http - 2.33.0 + 2.33.1-SNAPSHOT diff --git a/java-core/google-cloud-core-grpc/pom.xml b/java-core/google-cloud-core-grpc/pom.xml index cde38d394c..6cc246f188 100644 --- a/java-core/google-cloud-core-grpc/pom.xml +++ b/java-core/google-cloud-core-grpc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core-grpc - 2.33.0 + 2.33.1-SNAPSHOT jar Google Cloud Core gRPC @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.33.0 + 2.33.1-SNAPSHOT google-cloud-core-grpc diff --git a/java-core/google-cloud-core-http/pom.xml b/java-core/google-cloud-core-http/pom.xml index 54dde4993d..e8f580f411 100644 --- a/java-core/google-cloud-core-http/pom.xml +++ b/java-core/google-cloud-core-http/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core-http - 2.33.0 + 2.33.1-SNAPSHOT jar Google Cloud Core HTTP @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.33.0 + 2.33.1-SNAPSHOT google-cloud-core-http diff --git a/java-core/google-cloud-core/pom.xml b/java-core/google-cloud-core/pom.xml index 246acf25e3..06a83e5170 100644 --- a/java-core/google-cloud-core/pom.xml +++ b/java-core/google-cloud-core/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core - 2.33.0 + 2.33.1-SNAPSHOT jar Google Cloud Core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.33.0 + 2.33.1-SNAPSHOT google-cloud-core diff --git a/java-core/pom.xml b/java-core/pom.xml index 1296d7c7b9..95715809d0 100644 --- a/java-core/pom.xml +++ b/java-core/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-core-parent pom - 2.33.0 + 2.33.1-SNAPSHOT Google Cloud Core Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.35.0 + 2.35.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -33,7 +33,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.25.0 + 3.25.1-SNAPSHOT pom import diff --git a/java-iam/grpc-google-iam-v1/pom.xml b/java-iam/grpc-google-iam-v1/pom.xml index f6d8f13f63..dec5af5f8c 100644 --- a/java-iam/grpc-google-iam-v1/pom.xml +++ b/java-iam/grpc-google-iam-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v1 - 1.29.0 + 1.29.1-SNAPSHOT grpc-google-iam-v1 GRPC library for grpc-google-iam-v1 com.google.cloud google-iam-parent - 1.29.0 + 1.29.1-SNAPSHOT diff --git a/java-iam/grpc-google-iam-v2/pom.xml b/java-iam/grpc-google-iam-v2/pom.xml index cc1c9ab10a..a5ef2d9d33 100644 --- a/java-iam/grpc-google-iam-v2/pom.xml +++ b/java-iam/grpc-google-iam-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v2 - 1.29.0 + 1.29.1-SNAPSHOT grpc-google-iam-v2 GRPC library for proto-google-iam-v2 com.google.cloud google-iam-parent - 1.29.0 + 1.29.1-SNAPSHOT diff --git a/java-iam/grpc-google-iam-v2beta/pom.xml b/java-iam/grpc-google-iam-v2beta/pom.xml index 0042f346b4..908fc382e7 100644 --- a/java-iam/grpc-google-iam-v2beta/pom.xml +++ b/java-iam/grpc-google-iam-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v2beta - 1.29.0 + 1.29.1-SNAPSHOT grpc-google-iam-v2beta GRPC library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.29.0 + 1.29.1-SNAPSHOT diff --git a/java-iam/pom.xml b/java-iam/pom.xml index 56276b4d79..471c24acc7 100644 --- a/java-iam/pom.xml +++ b/java-iam/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-parent pom - 1.29.0 + 1.29.1-SNAPSHOT Google IAM Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.35.0 + 2.35.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -60,7 +60,7 @@ com.google.cloud third-party-dependencies - 3.25.0 + 3.25.1-SNAPSHOT pom import @@ -88,44 +88,44 @@ com.google.api gax-bom - 2.43.0 + 2.43.1-SNAPSHOT pom import com.google.api.grpc proto-google-iam-v2 - 1.29.0 + 1.29.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v2 - 1.29.0 + 1.29.1-SNAPSHOT com.google.api.grpc proto-google-common-protos - 2.34.0 + 2.34.1-SNAPSHOT com.google.api.grpc proto-google-iam-v2beta - 1.29.0 + 1.29.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v1 - 1.29.0 + 1.29.1-SNAPSHOT com.google.api.grpc grpc-google-iam-v2beta - 1.29.0 + 1.29.1-SNAPSHOT com.google.api.grpc proto-google-iam-v1 - 1.29.0 + 1.29.1-SNAPSHOT javax.annotation diff --git a/java-iam/proto-google-iam-v1/pom.xml b/java-iam/proto-google-iam-v1/pom.xml index dd2b177a92..9d0686668d 100644 --- a/java-iam/proto-google-iam-v1/pom.xml +++ b/java-iam/proto-google-iam-v1/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v1 - 1.29.0 + 1.29.1-SNAPSHOT proto-google-iam-v1 PROTO library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.29.0 + 1.29.1-SNAPSHOT diff --git a/java-iam/proto-google-iam-v2/pom.xml b/java-iam/proto-google-iam-v2/pom.xml index 263ab1137b..5d4c8340d0 100644 --- a/java-iam/proto-google-iam-v2/pom.xml +++ b/java-iam/proto-google-iam-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v2 - 1.29.0 + 1.29.1-SNAPSHOT proto-google-iam-v2 Proto library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.29.0 + 1.29.1-SNAPSHOT diff --git a/java-iam/proto-google-iam-v2beta/pom.xml b/java-iam/proto-google-iam-v2beta/pom.xml index a24f01807a..ef7bda3be4 100644 --- a/java-iam/proto-google-iam-v2beta/pom.xml +++ b/java-iam/proto-google-iam-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v2beta - 1.29.0 + 1.29.1-SNAPSHOT proto-google-iam-v2beta Proto library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.29.0 + 1.29.1-SNAPSHOT diff --git a/java-shared-dependencies/dependency-convergence-check/pom.xml b/java-shared-dependencies/dependency-convergence-check/pom.xml index a6c44356bf..f599b9ddcc 100644 --- a/java-shared-dependencies/dependency-convergence-check/pom.xml +++ b/java-shared-dependencies/dependency-convergence-check/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud shared-dependencies-dependency-convergence-test - 3.25.0 + 3.25.1-SNAPSHOT Dependency convergence test for certain artifacts in Google Cloud Shared Dependencies An dependency convergence test case for the shared dependencies BOM. A failure of this test case means diff --git a/java-shared-dependencies/first-party-dependencies/pom.xml b/java-shared-dependencies/first-party-dependencies/pom.xml index 11d8b0c6bb..ca857100ff 100644 --- a/java-shared-dependencies/first-party-dependencies/pom.xml +++ b/java-shared-dependencies/first-party-dependencies/pom.xml @@ -6,7 +6,7 @@ com.google.cloud first-party-dependencies pom - 3.25.0 + 3.25.1-SNAPSHOT Google Cloud First-party Shared Dependencies Shared first-party dependencies for Google Cloud Java libraries. @@ -33,7 +33,7 @@ com.google.api gapic-generator-java-bom - 2.35.0 + 2.35.1-SNAPSHOT pom import @@ -45,7 +45,7 @@ com.google.cloud google-cloud-core-bom - 2.33.0 + 2.33.1-SNAPSHOT pom import @@ -69,13 +69,13 @@ com.google.cloud google-cloud-core - 2.33.0 + 2.33.1-SNAPSHOT test-jar com.google.cloud google-cloud-core - 2.33.0 + 2.33.1-SNAPSHOT tests diff --git a/java-shared-dependencies/pom.xml b/java-shared-dependencies/pom.xml index 0176a9d98a..c29010084b 100644 --- a/java-shared-dependencies/pom.xml +++ b/java-shared-dependencies/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-shared-dependencies pom - 3.25.0 + 3.25.1-SNAPSHOT first-party-dependencies third-party-dependencies @@ -17,7 +17,7 @@ com.google.api gapic-generator-java-pom-parent - 2.35.0 + 2.35.1-SNAPSHOT ../gapic-generator-java-pom-parent @@ -31,14 +31,14 @@ com.google.cloud first-party-dependencies - 3.25.0 + 3.25.1-SNAPSHOT pom import com.google.cloud third-party-dependencies - 3.25.0 + 3.25.1-SNAPSHOT pom import diff --git a/java-shared-dependencies/third-party-dependencies/pom.xml b/java-shared-dependencies/third-party-dependencies/pom.xml index 2850a8cd09..3eb48c6852 100644 --- a/java-shared-dependencies/third-party-dependencies/pom.xml +++ b/java-shared-dependencies/third-party-dependencies/pom.xml @@ -6,7 +6,7 @@ com.google.cloud third-party-dependencies pom - 3.25.0 + 3.25.1-SNAPSHOT Google Cloud Third-party Shared Dependencies Shared third-party dependencies for Google Cloud Java libraries. diff --git a/java-shared-dependencies/upper-bound-check/pom.xml b/java-shared-dependencies/upper-bound-check/pom.xml index 7c317c5385..9c9f00a1ef 100644 --- a/java-shared-dependencies/upper-bound-check/pom.xml +++ b/java-shared-dependencies/upper-bound-check/pom.xml @@ -4,7 +4,7 @@ com.google.cloud shared-dependencies-upper-bound-test pom - 3.25.0 + 3.25.1-SNAPSHOT Upper bound test for Google Cloud Shared Dependencies An upper bound test case for the shared dependencies BOM. A failure of this test case means @@ -30,7 +30,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.25.0 + 3.25.1-SNAPSHOT pom import diff --git a/sdk-platform-java-config/pom.xml b/sdk-platform-java-config/pom.xml index 72146826d5..709c17b9f3 100644 --- a/sdk-platform-java-config/pom.xml +++ b/sdk-platform-java-config/pom.xml @@ -4,7 +4,7 @@ com.google.cloud sdk-platform-java-config pom - 3.25.0 + 3.25.1-SNAPSHOT SDK Platform For Java Configurations Shared build configuration for Google Cloud Java libraries. @@ -17,6 +17,6 @@ - 3.25.0 + 3.25.1-SNAPSHOT \ No newline at end of file diff --git a/showcase/pom.xml b/showcase/pom.xml index dcef638272..2f69c4a183 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.25.0 + 3.25.1-SNAPSHOT pom import diff --git a/versions.txt b/versions.txt index fd529571e3..dd4ea0a207 100644 --- a/versions.txt +++ b/versions.txt @@ -1,19 +1,19 @@ # Format: # module:released-version:current-version -gapic-generator-java:2.35.0:2.35.0 -api-common:2.26.0:2.26.0 -gax:2.43.0:2.43.0 -gax-grpc:2.43.0:2.43.0 -gax-httpjson:0.128.0:0.128.0 -proto-google-common-protos:2.34.0:2.34.0 -grpc-google-common-protos:2.34.0:2.34.0 -proto-google-iam-v1:1.29.0:1.29.0 -grpc-google-iam-v1:1.29.0:1.29.0 -proto-google-iam-v2beta:1.29.0:1.29.0 -grpc-google-iam-v2beta:1.29.0:1.29.0 -google-iam-policy:1.29.0:1.29.0 -proto-google-iam-v2:1.29.0:1.29.0 -grpc-google-iam-v2:1.29.0:1.29.0 -google-cloud-core:2.33.0:2.33.0 -google-cloud-shared-dependencies:3.25.0:3.25.0 +gapic-generator-java:2.35.0:2.35.1-SNAPSHOT +api-common:2.26.0:2.26.1-SNAPSHOT +gax:2.43.0:2.43.1-SNAPSHOT +gax-grpc:2.43.0:2.43.1-SNAPSHOT +gax-httpjson:0.128.0:0.128.1-SNAPSHOT +proto-google-common-protos:2.34.0:2.34.1-SNAPSHOT +grpc-google-common-protos:2.34.0:2.34.1-SNAPSHOT +proto-google-iam-v1:1.29.0:1.29.1-SNAPSHOT +grpc-google-iam-v1:1.29.0:1.29.1-SNAPSHOT +proto-google-iam-v2beta:1.29.0:1.29.1-SNAPSHOT +grpc-google-iam-v2beta:1.29.0:1.29.1-SNAPSHOT +google-iam-policy:1.29.0:1.29.1-SNAPSHOT +proto-google-iam-v2:1.29.0:1.29.1-SNAPSHOT +grpc-google-iam-v2:1.29.0:1.29.1-SNAPSHOT +google-cloud-core:2.33.0:2.33.1-SNAPSHOT +google-cloud-shared-dependencies:3.25.0:3.25.1-SNAPSHOT From 5dd96f1b39afadb94ccc450335f5b4a4251883d3 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Wed, 14 Feb 2024 15:45:37 +0000 Subject: [PATCH 71/75] chore: add library params (#2457) In this PR: - Add parameters to `LibraryConfig' - `codeowner_team`, found in java-analytics-admin - `excluded_poms`, found in java-iam, java-compute - `excluded_dependencies` found in java-iam, java-compute --- library_generation/model/generation_config.py | 3 +++ library_generation/model/library_config.py | 6 ++++++ .../test/resources/test-config/generation_config.yaml | 3 +++ library_generation/test/unit_tests.py | 6 ++++++ library_generation/utilities.py | 6 ++++++ 5 files changed, 24 insertions(+) diff --git a/library_generation/model/generation_config.py b/library_generation/model/generation_config.py index b6c82f6e26..3a59958a63 100644 --- a/library_generation/model/generation_config.py +++ b/library_generation/model/generation_config.py @@ -79,6 +79,9 @@ def from_yaml(path_to_yaml: str) -> GenerationConfig: release_level=__optional(library, "release_level", "preview"), api_id=__optional(library, "api_id", None), api_reference=__optional(library, "api_reference", None), + codeowner_team=__optional(library, "codeowner_team", None), + excluded_poms=__optional(library, "excluded_poms", None), + excluded_dependencies=__optional(library, "excluded_dependencies", None), client_documentation=__optional(library, "client_documentation", None), distribution_name=__optional(library, "distribution_name", None), googleapis_commitish=__optional(library, "googleapis_commitish", None), diff --git a/library_generation/model/library_config.py b/library_generation/model/library_config.py index 9e3f9c9c61..9d281b912c 100644 --- a/library_generation/model/library_config.py +++ b/library_generation/model/library_config.py @@ -33,8 +33,11 @@ def __init__( release_level: Optional[str] = None, api_id: Optional[str] = None, api_reference: Optional[str] = None, + codeowner_team: Optional[str] = None, client_documentation: Optional[str] = None, distribution_name: Optional[str] = None, + excluded_dependencies: Optional[str] = None, + excluded_poms: Optional[str] = None, googleapis_commitish: Optional[str] = None, group_id: Optional[str] = "com.google.cloud", issue_tracker: Optional[str] = None, @@ -53,6 +56,9 @@ def __init__( self.release_level = release_level if release_level else "preview" self.api_id = api_id self.api_reference = api_reference + self.codeowner_team = codeowner_team + self.excluded_dependencies = excluded_dependencies + self.excluded_poms = excluded_poms self.client_documentation = client_documentation self.distribution_name = distribution_name self.googleapis_commitish = googleapis_commitish diff --git a/library_generation/test/resources/test-config/generation_config.yaml b/library_generation/test/resources/test-config/generation_config.yaml index b73fa4d65d..d84ed3afd2 100644 --- a/library_generation/test/resources/test-config/generation_config.yaml +++ b/library_generation/test/resources/test-config/generation_config.yaml @@ -26,6 +26,9 @@ libraries: release_level: "stable" issue_tracker: "https://issuetracker.google.com/issues/new?component=187210&template=0" api_reference: "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" + codeowner_team: "@googleapis/analytics-dpe" + excluded_poms: proto-google-iam-v1-bom,google-iam-policy,proto-google-iam-v1 + excluded_dependencies: google-iam-policy GAPICs: - proto_path: google/cloud/asset/v1 - proto_path: google/cloud/asset/v1p1beta1 diff --git a/library_generation/test/unit_tests.py b/library_generation/test/unit_tests.py index 04bcd46ccb..a55cf7f6b5 100644 --- a/library_generation/test/unit_tests.py +++ b/library_generation/test/unit_tests.py @@ -192,6 +192,12 @@ def test_from_yaml_succeeds(self): library.api_description, ) self.assertEqual("asset", library.library_name) + self.assertEqual("@googleapis/analytics-dpe", library.codeowner_team) + self.assertEqual( + "proto-google-iam-v1-bom,google-iam-policy,proto-google-iam-v1", + library.excluded_poms, + ) + self.assertEqual("google-iam-policy", library.excluded_dependencies) gapics = library.gapic_configs self.assertEqual(5, len(gapics)) self.assertEqual("google/cloud/asset/v1", gapics[0].proto_path) diff --git a/library_generation/utilities.py b/library_generation/utilities.py index 014b95ae8e..d899dd1773 100755 --- a/library_generation/utilities.py +++ b/library_generation/utilities.py @@ -390,6 +390,12 @@ def generate_prerequisite_files( if library.api_reference: repo_metadata["api_reference"] = library.api_reference + if library.codeowner_team: + repo_metadata["codeowner_team"] = library.codeowner_team + if library.excluded_dependencies: + repo_metadata["excluded_dependencies"] = library.excluded_dependencies + if library.excluded_poms: + repo_metadata["excluded_poms"] = library.excluded_poms if library.issue_tracker: repo_metadata["issue_tracker"] = library.issue_tracker if library.rest_documentation: From 402f32c5f805b8b77cf1f1a5a8d83823f0e1eb23 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Thu, 15 Feb 2024 20:26:07 +0000 Subject: [PATCH 72/75] chore: fix workflow to create additional tags (#2487) The workflow to create additional tags when releasing is failing: https://github.com/googleapis/sdk-platform-java/actions/runs/7893005878/job/21540707818. Delete the local tag before creating one. --- .github/workflows/create_additional_release_tag.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/create_additional_release_tag.yaml b/.github/workflows/create_additional_release_tag.yaml index 892a821788..0bc731c127 100644 --- a/.github/workflows/create_additional_release_tag.yaml +++ b/.github/workflows/create_additional_release_tag.yaml @@ -38,6 +38,8 @@ jobs: # Use fixed tag so that checks in handwritten libraries do not need to # update the version. CHECK_LATEST_TAG="unmanaged-dependencies-check-latest" + # delete and create the tag locally. + git tag --delete ${CHECK_LATEST_TAG} git tag ${CHECK_LATEST_TAG} # delete the tag in remote repo and push again. git push --delete origin ${CHECK_LATEST_TAG} From 01c0dc2b7aa7788e112420dee2e06831482b1bb8 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Thu, 15 Feb 2024 20:40:32 +0000 Subject: [PATCH 73/75] chore: remove beta httpjson (#2358) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #2101 ☕️ --- .../grpcrest/ServiceSettingsClassComposer.java | 15 ++------------- .../rest/HttpJsonServiceStubClassComposer.java | 13 ------------- .../composer/grpcrest/goldens/EchoSettings.golden | 2 -- .../HttpJsonAutoPopulateFieldTestingStub.golden | 2 -- .../goldens/HttpJsonRoutingHeadersStub.golden | 2 -- .../showcase/v1beta1/ComplianceSettings.java | 2 -- .../com/google/showcase/v1beta1/EchoSettings.java | 2 -- .../google/showcase/v1beta1/IdentitySettings.java | 2 -- .../showcase/v1beta1/MessagingSettings.java | 2 -- .../showcase/v1beta1/SequenceServiceSettings.java | 2 -- .../google/showcase/v1beta1/TestingSettings.java | 2 -- .../v1/ConnectionServiceSettings.java | 2 -- .../v1/stub/HttpJsonConnectionServiceStub.java | 2 -- .../cloud/asset/v1/AssetServiceSettings.java | 2 -- .../asset/v1/stub/HttpJsonAssetServiceStub.java | 2 -- .../v1small/stub/HttpJsonAddressesStub.java | 2 -- .../stub/HttpJsonRegionOperationsStub.java | 2 -- .../credentials/v1/IamCredentialsSettings.java | 2 -- .../v1/stub/HttpJsonIamCredentialsStub.java | 2 -- .../library/v1/LibraryServiceSettings.java | 2 -- .../v1/stub/HttpJsonLibraryServiceStub.java | 2 -- .../cloud/redis/v1beta1/CloudRedisSettings.java | 2 -- 22 files changed, 2 insertions(+), 66 deletions(-) diff --git a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpcrest/ServiceSettingsClassComposer.java b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpcrest/ServiceSettingsClassComposer.java index c597be4c8a..c5a735acad 100644 --- a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpcrest/ServiceSettingsClassComposer.java +++ b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpcrest/ServiceSettingsClassComposer.java @@ -45,8 +45,6 @@ protected List createNestedBuilderCreatorMethods( String newBuilderMethodName, String createDefaultMethodName, List annotations) { - AnnotationNode betaApiAnnotaiton = - AnnotationNode.builder().setType(FIXED_TYPESTORE.get("BetaApi")).build(); List methods = new ArrayList<>(); methods.addAll( @@ -59,10 +57,7 @@ protected List createNestedBuilderCreatorMethods( typeStore, "newHttpJsonBuilder", "createHttpJsonDefault", - ImmutableList.builder() - .addAll(annotations) - .add(betaApiAnnotaiton) - .build())); + ImmutableList.builder().addAll(annotations).build())); } return methods; } @@ -77,9 +72,6 @@ protected List createNewBuilderMethods( CommentStatement comment) { List methods = new ArrayList<>(); - AnnotationNode betaApiAnnotaiton = - AnnotationNode.builder().setType(FIXED_TYPESTORE.get("BetaApi")).build(); - Iterator transportNames = getTransportContext().transportNames().iterator(); methods.addAll( @@ -98,10 +90,7 @@ protected List createNewBuilderMethods( typeStore, "newHttpJsonBuilder", "createHttpJsonDefault", - ImmutableList.builder() - .addAll(annotations) - .add(betaApiAnnotaiton) - .build(), + ImmutableList.builder().addAll(annotations).build(), new SettingsCommentComposer(transportNames.next()) .getNewTransportBuilderMethodComment())); } diff --git a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposer.java b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposer.java index 19e7cfbcbb..e631dce36d 100644 --- a/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposer.java +++ b/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposer.java @@ -210,19 +210,6 @@ protected List createOperationsStubGetterMethod( return super.createOperationsStubGetterMethod(service, operationsStubVarExpr); } - @Override - protected List createClassAnnotations(Service service) { - List annotations = super.createClassAnnotations(service); - - TypeNode betaApiType = FIXED_TYPESTORE.get("BetaApi"); - - if (annotations.stream().noneMatch(a -> betaApiType.equals(a.type()))) { - annotations.add(AnnotationNode.builder().setType(betaApiType).build()); - } - - return annotations; - } - @Override protected List createGetMethodDescriptorsMethod( Service service, diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden index 0abf62baec..2456b6cb0c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden @@ -177,7 +177,6 @@ public class EchoSettings extends ClientSettings { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -219,7 +218,6 @@ public class EchoSettings extends ClientSettings { return new Builder(EchoStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(EchoStubSettings.newHttpJsonBuilder()); } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden index 9b5d7c3b8f..6b390feb69 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden @@ -1,6 +1,5 @@ package com.google.auto.populate.field.stub; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -36,7 +35,6 @@ import javax.annotation.Generated; *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonAutoPopulateFieldTestingStub extends AutoPopulateFieldTestingStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonRoutingHeadersStub.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonRoutingHeadersStub.golden index 1987cbc592..b377fe3a18 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonRoutingHeadersStub.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonRoutingHeadersStub.golden @@ -1,6 +1,5 @@ package com.google.explicit.dynamic.routing.header.stub; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -35,7 +34,6 @@ import javax.annotation.Generated; *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonExplicitDynamicRoutingHeaderTestingStub extends ExplicitDynamicRoutingHeaderTestingStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java index 823f9ccb10..f07f55a8c7 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java @@ -212,7 +212,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -254,7 +253,6 @@ private static Builder createDefault() { return new Builder(ComplianceStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(ComplianceStubSettings.newHttpJsonBuilder()); } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java index 360d136fff..aed2c2ea70 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java @@ -228,7 +228,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -270,7 +269,6 @@ private static Builder createDefault() { return new Builder(EchoStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(EchoStubSettings.newHttpJsonBuilder()); } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java index 5b425ed700..252c9aba3e 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java @@ -190,7 +190,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -232,7 +231,6 @@ private static Builder createDefault() { return new Builder(IdentityStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(IdentityStubSettings.newHttpJsonBuilder()); } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java index a28bd4806a..22670dcd5d 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java @@ -248,7 +248,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -290,7 +289,6 @@ private static Builder createDefault() { return new Builder(MessagingStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(MessagingStubSettings.newHttpJsonBuilder()); } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java index 111119b942..a323894e08 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java @@ -200,7 +200,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -242,7 +241,6 @@ private static Builder createDefault() { return new Builder(SequenceServiceStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(SequenceServiceStubSettings.newHttpJsonBuilder()); } diff --git a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java index 13d6defe57..8d49238eb6 100644 --- a/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java +++ b/showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java @@ -207,7 +207,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -249,7 +248,6 @@ private static Builder createDefault() { return new Builder(TestingStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(TestingStubSettings.newHttpJsonBuilder()); } diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java index 6127ea2ae3..4e26180f91 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java @@ -134,7 +134,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -176,7 +175,6 @@ private static Builder createDefault() { return new Builder(ConnectionServiceStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(ConnectionServiceStubSettings.newHttpJsonBuilder()); } diff --git a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java index 434cecd957..8077e81100 100644 --- a/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java +++ b/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java @@ -18,7 +18,6 @@ import static com.google.cloud.apigeeconnect.v1.ConnectionServiceClient.ListConnectionsPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -49,7 +48,6 @@ *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java index d490f6d679..81a6e9bae3 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java @@ -262,7 +262,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -304,7 +303,6 @@ private static Builder createDefault() { return new Builder(AssetServiceStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(AssetServiceStubSettings.newHttpJsonBuilder()); } diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java index fde890bd68..d4825f9180 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java @@ -21,7 +21,6 @@ import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllIamPoliciesPagedResponse; import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllResourcesPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -91,7 +90,6 @@ *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonAssetServiceStub extends AssetServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java index a0caf3d274..3eac03ac83 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java @@ -19,7 +19,6 @@ import static com.google.cloud.compute.v1small.AddressesClient.AggregatedListPagedResponse; import static com.google.cloud.compute.v1small.AddressesClient.ListPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -59,7 +58,6 @@ *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonAddressesStub extends AddressesStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().add(Operation.getDescriptor()).build(); diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java index 81f0e4838b..3eb2ee3c21 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java @@ -16,7 +16,6 @@ package com.google.cloud.compute.v1small.stub; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -54,7 +53,6 @@ *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonRegionOperationsStub extends RegionOperationsStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java index 221ee9c4b8..421e040501 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java @@ -147,7 +147,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -189,7 +188,6 @@ private static Builder createDefault() { return new Builder(IamCredentialsStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(IamCredentialsStubSettings.newHttpJsonBuilder()); } diff --git a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java index 5cb18810cf..4e0a28aa06 100644 --- a/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java +++ b/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java @@ -16,7 +16,6 @@ package com.google.cloud.iam.credentials.v1.stub; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -53,7 +52,6 @@ *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonIamCredentialsStub extends IamCredentialsStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java index 410830a7fe..d6e3b5a5bf 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java @@ -202,7 +202,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -244,7 +243,6 @@ private static Builder createDefault() { return new Builder(LibraryServiceStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(LibraryServiceStubSettings.newHttpJsonBuilder()); } diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceStub.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceStub.java index 7c2e501087..116e6b7614 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceStub.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceStub.java @@ -19,7 +19,6 @@ import static com.google.cloud.example.library.v1.LibraryServiceClient.ListBooksPagedResponse; import static com.google.cloud.example.library.v1.LibraryServiceClient.ListShelvesPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -64,7 +63,6 @@ *

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonLibraryServiceStub extends LibraryServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java index f3045607b8..089c7c5a26 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java @@ -236,7 +236,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -278,7 +277,6 @@ private static Builder createDefault() { return new Builder(CloudRedisStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(CloudRedisStubSettings.newHttpJsonBuilder()); } From 643733a3375f36fc2dc08ceaf0fdad673c96277a Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Thu, 15 Feb 2024 22:06:58 +0000 Subject: [PATCH 74/75] chore: cleanup --- .github/workflows/ci.yaml | 5 ++--- .../java/com/google/showcase/v1beta1/it/ITOtelMetrics.java | 2 +- showcase/pom.xml | 5 ----- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 10093ae828..64b648607d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -219,8 +219,7 @@ jobs: mvn verify \ -P enable-integration-tests \ --batch-mode \ - --no-transfer-progress \ - -T 2 + --no-transfer-progress showcase-native: runs-on: ubuntu-22.04 @@ -296,7 +295,7 @@ jobs: run: | mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip - name: Validate gapic-generator-java-bom - uses: googleapis/java-cloud-bom/tests/validate-bom@ac9893c4ba759cda192b11c2e8bac0d5a6bd60a5 + uses: googleapis/java-cloud-bom/tests/validate-bom@8bc17e9ae3c6354f04df2fdf2d57aeafa63add66 with: bom-path: gapic-generator-java-bom/pom.xml diff --git a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java index be6b998e08..214521a7bc 100644 --- a/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java +++ b/showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelMetrics.java @@ -75,7 +75,7 @@ public void testHttpJson_OperationSucceded_recordsMetrics() throws Exception { String method = pointData.getAttributes().get(AttributeKey.stringKey("method_name")); String status = pointData.getAttributes().get(AttributeKey.stringKey("status")); Truth.assertThat(method).isEqualTo("google.showcase.v1beta1.Echo/Echo"); - Truth.assertThat(status).isEqualTo("CANCELLED"); + Truth.assertThat(status).isEqualTo("OK"); } } } diff --git a/showcase/pom.xml b/showcase/pom.xml index 2f69c4a183..9651f01eb9 100644 --- a/showcase/pom.xml +++ b/showcase/pom.xml @@ -78,14 +78,9 @@ io.opentelemetry opentelemetry-sdk - - io.opentelemetry - opentelemetry-exporter-otlp - io.opentelemetry opentelemetry-sdk-metrics-testing - 1.13.0-alpha From f3df69721187b1b630623fbc44d5443a0a289192 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit Date: Thu, 15 Feb 2024 22:10:05 +0000 Subject: [PATCH 75/75] chore: cleanup --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 64b648607d..5344f99886 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -295,7 +295,7 @@ jobs: run: | mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip - name: Validate gapic-generator-java-bom - uses: googleapis/java-cloud-bom/tests/validate-bom@8bc17e9ae3c6354f04df2fdf2d57aeafa63add66 + uses: googleapis/java-cloud-bom/tests/validate-bom@ac9893c4ba759cda192b11c2e8bac0d5a6bd60a5 with: bom-path: gapic-generator-java-bom/pom.xml