Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 8, 2026. It is now read-only.

RFC: Allow REST transport for PubSub Java client.#2075

Closed
sanjivr wants to merge 1 commit into
googleapis:maingoogleapis/java-pubsub:mainfrom
sanjivr:mainsanjivr/java-pubsub:mainCopy head branch name to clipboard
Closed

RFC: Allow REST transport for PubSub Java client.#2075
sanjivr wants to merge 1 commit into
googleapis:maingoogleapis/java-pubsub:mainfrom
sanjivr:mainsanjivr/java-pubsub:mainCopy head branch name to clipboard

Conversation

@sanjivr

@sanjivr sanjivr commented Jun 13, 2024

Copy link
Copy Markdown

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Supports googleapis/google-cloud-java#13049

This leverages capabilities added in #1162

We're looking for input on whether

  • this approach is feasible or not
  • the SDK might consider making this generally available after the approach has been ratified and unit tests are included.

@sanjivr sanjivr requested a review from a team June 13, 2024 16:55
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: pubsub Issues related to the googleapis/java-pubsub API. labels Jun 13, 2024
this.publishContextWithCompression =
GrpcCallContext.createDefault()
.withCallOptions(CallOptions.DEFAULT.withCompression(GZIP_COMPRESSION));
this.enableRESTJsonTransport

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: If the user attempts to enable compression on the JSON transport, should the SDK throw an exception or silently ignore the same as the HttpJsonCallContext does not support compression ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: pubsub Issues related to the googleapis/java-pubsub API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.