grpc / grpc/grpc-java

Extracting all keys from CallOptions objects

Offen
#4,251 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Java
Sterne
12.1k
Forks
4k
Ø Merge
2 T. 17 Std.
Gemergte PRs (30 T.)
37

Beschreibung

In [gax-java](https://github.com/googleapis/gax-java/), we would like to be able to merge two [CallOptions](https://github.com/grpc/grpc-java/blob/master/core/src/main/java/io/grpc/CallOptions.java) objects together. We are able to partially implement this merging of `CallOptions` using the `with` methods available on `CallOptions`, such as here: https://github.com/googleapis/gax-java/blob/master/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcCallContext.java#L223

However, currently it is not possible to extract the full set of custom options from the `CallOptions` object, which means we are not able to create a merged set of custom options.

Is there any way to extract the full set of keys from a `CallOptions` object currently? If not, would grpc-java consider adding either (a) a `merge()` method on `CallOptions`, or (b) a way to extract the complete set of custom options, to allow us to implement merging?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginnen Sie mit der CallOptions-Klasse von grpc-java und der Referenz in gax-java GrpcCallContext.java um Zeile 223. Bestimmen Sie, ob die angeforderte Änderung benutzerdefinierte Option-Schlüssel offenlegen oder eine Zusammenführung bereitstellen sollte, und definieren Sie das API-Verhalten und die Tests, die erforderlich sind, um zu überprüfen, dass zwei CallOptions-Objekte kombiniert werden können.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
api
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.