Skip to content

docs(bigquerystorage): add missing public Javadocs, @Deprecated annotations, and v1 steering - #91

Open
lqiu96 wants to merge 1 commit into
mainfrom
docs/bqs-0e-missing-docs-deprecated
Open

lqiu96 wants to merge 1 commit into
mainfrom
docs/bqs-0e-missing-docs-deprecated

Conversation

@lqiu96

@lqiu96 lqiu96 commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Summary (BQS-0e)

Wave 1 missing public Javadocs, @Deprecated annotations, and v1 steering for java-bigquerystorage (zero behavioral changes):

  • Added missing Javadocs:
    • ProtoSchemaConverter (class + convert(Descriptor))
    • BigDecimalByteStringEncoder (class + all 4 static encode/decode methods)
    • ToProtoConverter (interface + convertToProtoMessage)
    • StreamWriter.Builder.{setMaxInflightRequests, setMaxInflightBytes, setCompressorName}
    • BigQueryReadClient.{disableOpenTelemetryTracing, enableDefaultOpenTelemetryTracing, enableOpenTelemetryTracing}
    • BigQueryReadSettings.RetryAttemptListener and builder setters (setReadRowsRetryAttemptListener, setEnableOpenTelemetryTracing, setOpenTelemetryTracerProvider)
  • Added @Deprecated + @deprecated Javadoc on already-deprecated/no-op APIs:
    • Exceptions.AppendSerializtionError -> AppendSerializationError
    • Exceptions.JsonDataHasUnknownFieldException -> DataHasUnknownFieldException
    • JsonStreamWriter.Builder.setReconnectAfter10M(boolean) (no-op)
    • v1beta2/BigDecimalByteStringEncoder -> v1.BigDecimalByteStringEncoder
  • Explicit v1 preference across legacy packages:
    • Replaced stale v1beta2/package-info.java (removed @Generated and added to librarian.yaml keep:), steering both Read and Write API callers to com.google.cloud.bigquery.storage.v1.
    • Added v1 preference notes to v1beta1/BigQueryStorageClient and v1beta2/BigQueryReadClient.
  • Complete streamOrTableName documentation: Documented acceptance of named streams, /_default streams, and bare table names (auto-writing to _default) on all JsonStreamWriter.newBuilder and SchemaAwareStreamWriter.newBuilder overloads.

Verification

  • mvn -B -f java-bigquerystorage/google-cloud-bigquerystorage/pom.xml -Dlint checkstyle:check@checkstyle test-compile javadoc:javadoc test -Dtest=ProtoSchemaConverterTest,BigDecimalByteStringEncoderTest,BigQueryReadClientTest — PASS (0 checkstyle violations, 0 javadoc errors, 23/23 tests passing).

…ations, and v1 steering (BQS-0e)

- Add missing Javadocs on ProtoSchemaConverter, BigDecimalByteStringEncoder, ToProtoConverter, StreamWriter.Builder.{setMaxInflightRequests,setMaxInflightBytes,setCompressorName}, BigQueryReadClient OTel toggles, and BigQueryReadSettings.RetryAttemptListener + builder setters
- Add @deprecated and @deprecated Javadoc on Exceptions.AppendSerializtionError, Exceptions.JsonDataHasUnknownFieldException, JsonStreamWriter.Builder.setReconnectAfter10M, and v1beta2/BigDecimalByteStringEncoder
- Update v1beta2/package-info.java (and register in librarian.yaml keep:) plus v1beta1/BigQueryStorageClient and v1beta2/BigQueryReadClient to steer callers to v1
- Document stream, /_default, and bare table name acceptance on all JsonStreamWriter.newBuilder and SchemaAwareStreamWriter.newBuilder overloads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant