Repository navigation
docs(gapic-generator-java): fix Wave 1 Javadoc markdown, accuracy, missing docs, and sample hygiene - #86
Open
lqiu96 wants to merge 1 commit into
Open
docs(gapic-generator-java): fix Wave 1 Javadoc markdown, accuracy, missing docs, and sample hygiene#86lqiu96 wants to merge 1 commit into
lqiu96 wants to merge 1 commit into
Conversation
…ssing docs, and sample hygiene
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Covers
GAPIC-0a,GAPIC-0c,GAPIC-0d,GAPIC-0e,GAPIC-0f,GAPIC-0g,GAPIC-0h, andGAPIC-0i(Wave 1 generator comment/sample hygiene; zero runtime behavioral changes).Changes
GAPIC-0a(SettingsCommentComposer): Replace raw Markdown[RetrySettings](...)(legacy 301 host) and[Client Side Retry Guide](...)links with{@link com.google.api.gax.retrying.RetrySettings}and a<p>HTML anchor tohttps://docs.cloud.google.com/java/docs/client-retries.GAPIC-0c(ServiceClientCommentComposer): Replace the obsolete*Clientresource-name paragraph (which falsely claimed*Clientcontainsformat/parsemethods) with accurate guidance pointing to generated*Nameclasses (of,format,parse,isParsableFrom), and fix double-space typos (parse method,based on).GAPIC-0d(ServiceClientCommentComposer): Replace raw Markdown backticks around`OperationFuture`in the HTML methods table with{@link com.google.api.gax.longrunning.OperationFuture}.GAPIC-0e(ClientLibraryPackageInfoComposer): Replace"The interfaces provided are listed below"and ASCII===dividers in generatedpackage-info.javafiles with accurate client-class wording,<h2>{@link *Client}</h2>headings, and{@link *Client}sample labels.GAPIC-0f(SettingsCommentComposer): Replace the misleading idempotency retry bullet with an accurate statement that default retries and timeouts come from the service's retry configuration, and clarifyapplyToAllUnaryMethodsscope (applies to unary, paged, batching, and LRO initial-call settings; does not apply to streaming methods or LRO polling<method>OperationSettings()).GAPIC-0g(SettingsCommentComposer,ServiceClientCommentComposer,AbstractServiceClientClassComposer,AbstractServiceSettingsClassComposer,AbstractServiceStubSettingsClassComposer,grpc/,grpcrest/,rest/): DifferentiatefooSettings()(LRO initial calls) vsfooOperationSettings()(LRO polling + initial-call settings) andgetOperationsClient()(gRPC) vsgetHttpJsonOperationsClient()(HTTP/JSON); add concise Javadocs togetSettings()(documenting@Nullablereturn when built from a stub),getStub(),protected *Client(*Stub),protected *Settings(Builder),create(*StubSettings),defaultTransportChannelProvider(),defaultApiClientHeaderProviderBuilder()(plus transport-specific variants),getStubSettingsBuilder(),Builder.build(), andcreateStub().GAPIC-0h(ServiceClientHeaderSampleComposer,ServiceClientMethodSampleComposer,ServiceClientCallableMethodSampleComposer): Fix undeclaredmyCredentialsandmyEndpointidentifiers (eliminating bogusimport <pkg>.myCredentials/import <pkg>.myEndpointimports) with compilableGoogleCredentials.getApplicationDefault()and"my-endpoint:443"declarations plus shutdownclose()lines, derive transport overload disambiguation dynamically fromtransportBuilderMethodinstead of hardcoding"useHttpJsonTransport", and fix typos ("emtpy"->"empty","reveive"->"receive").GAPIC-0i(ServiceClientCommentComposer,AbstractServiceSettingsClassComposer,SettingsCommentComposer): Emit a non-empty fallback@paramdescription when a proto request field has no comment (eliminating bare@paramdoclint warnings), and aligngetDefaultEndpoint()Javadoc ({@link #getEndpoint()}/{@link #getUniverseDomain()}) and@ObsoleteApi("Use getEndpoint() instead")across*Settingsand*StubSettings.Integration Goldens Note
sdk-platform-java/test/integration/goldens/(managed separately via Bazelbazelisk run //sdk-platform-java/test/integration:update_*, not invoked by the Mavengapic-generator-javatest suite) is intentionally not hand-edited in this PR and should be regenerated via Bazel when upstreaming.Verification
mvn -f sdk-platform-java/gapic-generator-java/pom.xml fmt:check -Dfmt.skip=false(JDK 21): 320 files, 0 non-complyingmvn -f sdk-platform-java/gapic-generator-java/pom.xml test(JDK 25): 1,183 tests run, 0 failures, 0 errors (1 pre-existing@Disabledtest)javac: compiled regeneratedSyncCreateSetCredentialsProvider.goldenandSyncCreateSetEndpoint.goldenagainst showcase classes (0 errors)javadoc -Xdoclint:all,-missing: 0 errors, 0 warnings across updatedShowcaseWithEchoPackageInfo.golden,EchoSettings.golden, andEchoStubSettings.golden; verified 0no description for @paramwarnings on updatedEchoClient.goldenunder-Xdoclint:all