diff --git a/Google.Api.Gax.Grpc/Rest/RestServiceCollection.cs b/Google.Api.Gax.Grpc/Rest/RestServiceCollection.cs index e91b97d3..38a1e7fc 100644 --- a/Google.Api.Gax.Grpc/Rest/RestServiceCollection.cs +++ b/Google.Api.Gax.Grpc/Rest/RestServiceCollection.cs @@ -37,7 +37,8 @@ internal static RestServiceCollection Create(ApiMetadata metadata) var typeRegistry = TypeRegistry.FromFiles(fileDescriptors.ToArray()); var parser = new JsonParser(JsonParser.Settings.Default.WithIgnoreUnknownFields(true).WithTypeRegistry(typeRegistry)); var methodsByName = services.SelectMany(service => service.Methods) - .Where(x => true) // TODO: filter out streaming methods. + // We don't yet support streaming methods. + .Where(x => !x.IsClientStreaming && !x.IsServerStreaming) .Select(method => RestMethod.Create(metadata, method, parser)) .ToDictionary(restMethod => restMethod.FullName); return new RestServiceCollection(new ReadOnlyDictionary(methodsByName));