Skip to content

Conversation

@olavloite
Copy link
Collaborator

The Connection API used the (proto) enum Priority internally, while the actual connection property uses the public-facing
com.google.cloud.spanner.RpcPriority in public APIs. This change modifies the internal parser to also directly use the public-facing enum, instead of going through the proto enum definition first, only to translate to the public enum at a later moment.

The Connection API used the (proto) enum Priority internally, while the
actual connection property uses the public-facing
`com.google.cloud.spanner.RpcPriority` in public APIs. This change modifies
the internal parser to also directly use the public-facing enum, instead of
going through the proto enum definition first, only to translate to the
public enum at a later moment.
@olavloite olavloite requested a review from a team as a code owner September 9, 2024 10:38
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner API. labels Sep 9, 2024
@rahul2393 rahul2393 merged commit 4076b09 into main Sep 12, 2024
@rahul2393 rahul2393 deleted the use-rpc-priority-in-connection-api branch September 12, 2024 08:47
lqiu96 pushed a commit that referenced this pull request Sep 19, 2024
The Connection API used the (proto) enum Priority internally, while the
actual connection property uses the public-facing
`com.google.cloud.spanner.RpcPriority` in public APIs. This change modifies
the internal parser to also directly use the public-facing enum, instead of
going through the proto enum definition first, only to translate to the
public enum at a later moment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/java-spanner API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants