From a6b2a857d84413519d6fe8ee09e0537ef58e65e5 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Fri, 12 Jul 2024 16:12:23 -0400 Subject: [PATCH] chore: Update ObsoleteApi text --- .../common/AbstractServiceStubSettingsClassComposer.java | 3 +-- .../composer/grpc/goldens/ApiVersionTestingStubSettings.golden | 3 +-- .../composer/grpc/goldens/DeprecatedServiceStubSettings.golden | 3 +-- .../gapic/composer/grpc/goldens/EchoStubSettings.golden | 3 +-- .../composer/grpc/goldens/LoggingServiceV2StubSettings.golden | 3 +-- .../gapic/composer/grpc/goldens/PublisherStubSettings.golden | 3 +-- .../gapic/composer/grpcrest/goldens/EchoStubSettings.golden | 3 +-- .../gapic/composer/grpcrest/goldens/WickedStubSettings.golden | 3 +-- .../gapic/composer/rest/goldens/ComplianceStubSettings.golden | 3 +-- .../rest/goldens/HttpJsonApiVersionTestingStubSettings.golden | 3 +-- .../google/showcase/v1beta1/stub/ComplianceStubSettings.java | 3 +-- .../com/google/showcase/v1beta1/stub/EchoStubSettings.java | 3 +-- .../com/google/showcase/v1beta1/stub/IdentityStubSettings.java | 3 +-- .../google/showcase/v1beta1/stub/MessagingStubSettings.java | 3 +-- .../showcase/v1beta1/stub/SequenceServiceStubSettings.java | 3 +-- .../com/google/showcase/v1beta1/stub/TestingStubSettings.java | 3 +-- .../apigeeconnect/v1/stub/ConnectionServiceStubSettings.java | 3 +-- .../google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java | 3 +-- .../google/cloud/asset/v1/stub/AssetServiceStubSettings.java | 3 +-- .../cloud/bigtable/data/v2/stub/BigtableStubSettings.java | 3 +-- .../cloud/compute/v1small/stub/AddressesStubSettings.java | 3 +-- .../compute/v1small/stub/RegionOperationsStubSettings.java | 3 +-- .../iam/credentials/v1/stub/IamCredentialsStubSettings.java | 3 +-- .../iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java | 3 +-- .../cloud/kms/v1/stub/KeyManagementServiceStubSettings.java | 3 +-- .../example/library/v1/stub/LibraryServiceStubSettings.java | 3 +-- .../cloud/logging/v2/stub/ConfigServiceV2StubSettings.java | 3 +-- .../cloud/logging/v2/stub/LoggingServiceV2StubSettings.java | 3 +-- .../cloud/logging/v2/stub/MetricsServiceV2StubSettings.java | 3 +-- .../com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java | 3 +-- .../google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java | 3 +-- .../google/cloud/pubsub/v1/stub/SubscriberStubSettings.java | 3 +-- .../cloud/redis/v1beta1/stub/CloudRedisStubSettings.java | 3 +-- .../src/com/google/storage/v2/stub/StorageStubSettings.java | 3 +-- 34 files changed, 34 insertions(+), 68 deletions(-) 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 cd30aaf694..557b94663c 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 @@ -1195,8 +1195,7 @@ private List createDefaultHelperAndGetterMethods( ImmutableList.of( AnnotationNode.builder() .setType(FIXED_TYPESTORE.get(ObsoleteApi.class.getSimpleName())) - .setDescription( - "See https://github.com/googleapis/sdk-platform-java/issues/2346 for more information") + .setDescription("Use getEndpoint() instead") .build())) .build()); diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden index 7727609675..0920230bd1 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden @@ -92,8 +92,7 @@ public class EchoWithVersionStubSettings extends StubSettings { } /** Returns the default service endpoint. */ - @ObsoleteApi( - "See https://github.com/googleapis/sdk-platform-java/issues/2346 for more information") + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "localhost:7469"; } 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 ca27444037..39984fb5a7 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 @@ -434,8 +434,7 @@ public class LoggingServiceV2StubSettings extends StubSettings { } /** Returns the default service endpoint. */ - @ObsoleteApi( - "See https://github.com/googleapis/sdk-platform-java/issues/2346 for more information") + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "pubsub.googleapis.com:443"; } 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 7d3665627e..afb4998b5b 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 @@ -308,8 +308,7 @@ public class EchoStubSettings extends StubSettings { } /** Returns the default service endpoint. */ - @ObsoleteApi( - "See https://github.com/googleapis/sdk-platform-java/issues/2346 for more information") + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "localhost:7469"; } 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 f5ee0b8e34..5a555d7001 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 @@ -106,8 +106,7 @@ public class WickedStubSettings extends StubSettings { } /** Returns the default service endpoint. */ - @ObsoleteApi( - "See https://github.com/googleapis/sdk-platform-java/issues/2346 for more information") + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "localhost:7469"; } 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 eac9314369..0c6ab1cc1c 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 @@ -138,8 +138,7 @@ public class ComplianceStubSettings extends StubSettings } /** Returns the default service endpoint. */ - @ObsoleteApi( - "See https://github.com/googleapis/sdk-platform-java/issues/2346 for more information") + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "localhost:7469"; } diff --git a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden index 5d500e38e0..08b311156c 100644 --- a/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden +++ b/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden @@ -92,8 +92,7 @@ public class EchoWithVersionStubSettings extends StubSettings